a:focus {
    border-bottom: 2px solid blue !important;
}

.btn:focus-within {
    border: 2px solid blue !important;
}

.image-gallery {
    margin-left: -4px;
    margin-right: -4px;
}

.image-gallery .gallery-image-frame {
    padding: 4px 4px 4px 4px;
}

.image-gallery .gallery-image {
    display: block;
    width: 100%;
    padding-bottom: 60%;
    border: solid 1px #d0d0d0;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
}

.goog-te-gadget-simple {
    position: absolute;
    right: 0;
    z-index: 1;
}

[class*="u-badge"]:not([class*="--top-left"]):not([class*="--bottom-left"]):not([class*="--bottom-right"]) {
    top: 3px;
    right: 5px;
    -webkit-transform: translate(50%, -50%);
    -ms-transform: translate(50%, -50%);
    transform: translate(50%, -50%);
}

.grecaptcha-badge {
	  display: none !important;
}

.top-section-img {
    padding-bottom: 300px;
    min-width: 300px; 
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat; 
    position: relative;
}

.top-section-logo {
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute; 
    left: 0; right: 0; 
    top: 0; bottom: 0; 
    text-align: center;
}

.slogan-img {
    max-width: 490px;
    max-height: 40px;
    margin-top: 6px;
}

.slogan2-img {
    max-width: 490px;
    max-height: 60px;
    margin-top: 0px;
}

.logo-img {
    max-height: 100%;
}

.logo-text {
    font-size: 75px;
    line-height: 0.8;
    font-weight: 600; 
    font-variant-caps: all-small-caps; 
    color: #fff;
    text-shadow: -1px -1px 0 #555, 1px -1px 0 #555, -1px 1px 0 #555, 1px 1px 0 #555;
}

.startpage-header {
    font-weight: 600; 
    font-size: 30px; 
    color: #555;
    text-align: center;
}

.startpage-section {
    padding-top: 30px;
    text-align: center;
}

.footer-logo {
    text-align: left;
}

.footer-ul {
    max-width: 270px;
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome and Opera */
  cursor: default;
}

article:focus-within {
    border: 2px solid blue !important;
}

.forening-article {
    border: solid 1px #f0f0f0; 
    position: relative; 
    overflow: hidden; 
    cursor: pointer; 
    box-shadow: 0 1px 4px rgb(0 0 0 / 20%)
}

.forening-article:hover {
    box-shadow: 4px 4px 12px rgb(0 0 0 / 20%)
}

.forening-description {
    font-weight: 400; 
    font-size: 13px; 
    font-family: 'Open Sans', Helvetica, Arial, sans-serif; 
    line-height: 1.6; 
    color: #666 !important;
    text-decoration: none !important;
}

.tone-out:after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    height: 40px;
    width: 100%;
    background: linear-gradient(rgba(255,255,255,.1), #fff);
}

.tone-out-forening:after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    height: 30px;
    width: 100%;
    background: linear-gradient(rgba(255,255,255,.1), #fff);
}

.activity-category-img {
    display: block;
    width: 100%;
    padding-bottom: 300px;
    border: 0;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
}

.separator {
    display: block;
    border: none;
    color: white;
    height: 1px;
    margin: 40px;
    background: black;
    background: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 300, from(#8AB63E), to(#fff));
}

.bg-green {
    background-color: #73C02C !important;
}

.bg-green1 {
    background-color: #EDF6EA !important;
}

.news-image {
    display: block;
    width: 100%;
    padding-bottom: 45%;
    border: 0;
    background-repeat: no-repeat;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center;
}

.news-image-override {
    padding-bottom: 363px !important;
}

.thumbnails-v1 {
  margin-bottom: 20px;
}

.thumbnail-img {
  margin-bottom: 3px !important;
  border: solid 1px #e0e0e0;
}

.caption {

}

.caption h3 {
    color: #666;
    font-size: 15px;
    text-transform: uppercase;  
}

.event-line::before {
    content: "";
    position: absolute;
    left: -20px;
    right: auto;
    width: 30px;
    height: 0;
    border-top-width: 1px;
    border-color: #ccc;
    top: 50%;
    border-top-style: solid;
}

.u-btn-outline-facebook:hover {
    color: #fff !important;
    background-color: #3b5998 !important;
}

.u-btn-outline-twitter:hover {
    color: #fff !important;
    background-color: #00acee !important; 
}

.form-control {
    background-color: #fff;
    border: 1px solid #ced4da !important;
}

.bootstrap-select > .btn-light {
    background-color: #fff !important;
}

/*Blog Posts
------------------------------------*/ 
.posts .dl-horizontal a {
    color: #555;
}

.posts .dl-horizontal { 
    margin-bottom: 15px;
    overflow: hidden;
}

.posts .dl-horizontal dt { 
    width: 77px; 
    float: left;
}

.posts .dl-horizontal dt img { 
    width: 60px; 
    height: 60px;
    padding: 2px;
    margin-top: 2px; 
    border: solid 1px #ddd;
}

.posts .dl-horizontal dd { 
    margin-left: 90px;
}

.posts .dl-horizontal dd p { 
    margin: 0;
}

.posts .dl-horizontal dd a {
    font-size: 14px;
    line-height: 16px !important; 
}

.posts .dl-horizontal dd a:hover { 
    color: #72c02c; 
    text-decoration: none;
}

.posts .dl-horizontal:hover dt img,
.posts .dl-horizontal:hover dd a { 
    color: #72c02c;
    border-color: #72c02c !important;
    -webkit-transition: all 0.2s ease-in-out;
    -moz-transition: all 0.2s ease-in-out;
    -o-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
}

/* ### ACCORDION STYLES ### */
.ac-label {
    font-weight: 700;
    position: relative;
    padding: .5em 1em;
    margin-bottom: .5em;
    display: block;
    cursor: pointer;
    color: #fff;
    background-color: #a0bc51;
    transition: background-color .15s ease-in-out;
}

.ac-input:checked + label, .ac-label:hover {
    background-color: #8AB63E;
}

.ac-label:after, .ac-input:checked + .ac-label:after {
    content: "+";
    position: absolute;
    display: block;
    right: 0;
    top: 0;
    width: 2em;
    height: 100%;
    line-height: 2.7em;
    text-align: center;
    color: #fff;
    background-color: #8AB63E;
    transition: background-color .15s ease-in-out;
}

.ac-label:hover:after, .ac-input:checked + .ac-label:after {
    background-color: #8AB63E;
}

.sub2-bg {
    background-color: lightGray;
}

.ac-input:checked + .ac-label:after {
    content: "-";
}

.ac-input {
    display: none;
}

.ac-text, .ac-sub-text {
    opacity: 0;
    height: 0;
    transition: opacity .5s ease-in-out;
    overflow: hidden;
}

.ac-text p {
    margin-left: 15px;
}

.ac-input:checked ~ .ac-text, .ac-sub .ac-input:checked ~ .ac-sub-text {
    opacity: 1;
    height: auto;
}

.ac-mainsub {
    margin-left: 10px;
}

.ac-mainsub2 {
    margin-left: 20px;
}

.ac-sub .ac-label {
    background: none;
    font-weight: 600;
    padding: .5em 2em;
    margin-bottom: 0;
}

.ac-sub .ac-label:checked {
    background: none;
    border-bottom: 1px solid whitesmoke;
}

.ac-sub .ac-label:after, .ac-sub .ac-input:checked + .ac-label:after {
    left: 0;
    background: none;
}

.ac-sub .ac-input:checked + label, .ac-sub .ac-label:hover {
    background: none;
}

.ac-sub-text {
    padding: 0 1em 0 2em;
}

.activity-mobile {
    display: none;
}

.activity-desktop {
    display: flex;
}

.mapsHoverInfoTitle {
    color: #72c02c; 
    font-weight: 600; 
    font-size: 1.15rem;
    overflow: hidden; 
    margin-right: 10px;
}

.mapsInfoboxTitle {
    color: #72c02c; 
    font-weight: 600; 
    font-size: 1.15rem;
    overflow: hidden; 
    margin-right: 10px;
    margin-bottom: 8px;
    text-align: left;
}

.mapsInfoboxPhone {
    display: block;
    margin-bottom: 4px;
    margin-top: 8px;
    color: #555;
    text-align: left;    
}

.mapsInfoboxEmail {
    display: block;
    margin-bottom: 4px;
    color: #555;
    text-align: left;    
}

.mapsInfoboxWeb {
    display: block;
    margin-bottom: 4px;
    color: #555;
    text-align: left;
}

.fielderror {
    background-color: #FCEBEE;
    color: red;
}

.fielderror .fg-line:not([class*=has-]):after {
    background-color: red;
}

.calendar-timeline-item::before {
    width: 27% !important;
}

.faded-horizontal-line {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(172,207,132, 1), rgba(172,207,132, 1), rgba(172,207,132, 0.2));
}

.activity-box-link {
    text-decoration: none !important;
}

.activity-box-link:hover {
    text-decoration: none !important;
    -webkit-box-shadow: 2px 2px 7px #d0d0d0;
    -moz-box-shadow: 2px 2px 7px #d0d0d0;
    box-shadow: 2px 2px 7px #d0d0d0;
}

#article h1 {
    font-family: "Open Sans",helvetica,arial,sans-serif; 
    font-weight: 800; 
    font-style: normal; 
    color: #454545; 
    font-size: 36px;
}

#article .lead {
    font-weight: 600; 
    font-size: 20px;
    line-height: 28px;
}

#article .posts .dl-horizontal {
    height: 50px !important;
}

#article .posts-header {
   font-size: 20px !important; 
   margin-bottom: 10px !important; 
   font-weight: 800 !important; 
   color: #444 !important;
}

#article .posts-box:hover .posts-title {
    color: #222 !important;
}

#article .posts-box:hover .posts-lead {
    color: #777 !important;
}

#article .posts-title {
    color: #666 !important;
    font-size: 14px;
    font-weight: 600;
    margin-top: -3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#article .posts-lead {
    color: #b0b0b0;
    font-weight: 400;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 15px;
}

#article p {
    font-size: 16px;
    color: #454545;
}

#article blockquote {
    font-style: italic;
    margin-left: 14px;
    padding-left: 10px;
    border-left: solid 2px #8DBF59;
}

#article blockquote p {
    color: #656565;
}

#article ol {
    padding-inline-start: 30px;
}

#article ul:not(.social) {
    padding-inline-start: 30px;
}

#article li {
    margin-top: 10px;
    font-size: 16px;
    line-height: 22px;
    color: #454545;
}

#article .fr-view h1 {
    font-family: "Open Sans",helvetica,arial,sans-serif; 
    font-weight: 800; 
    font-style: normal; 
    color: #444;
    font-size: 24px;
    margin-top: 22px;
}

#article .fr-view h2 {
    font-family: "Open Sans",helvetica,arial,sans-serif; 
    font-weight: 800; 
    font-style: normal; 
    color: #444;
    font-size: 20px;
    margin-top: 22px;
}

#article .fr-view h3 {
    font-family: "Open Sans",helvetica,arial,sans-serif; 
    font-weight: 800; 
    font-style: normal; 
    color: #444;
    font-size: 17px;
    margin-top: 22px;
}

#article .fr-view h4 {
    font-family: "Open Sans",helvetica,arial,sans-serif; 
    font-weight: 600; 
    font-style: normal; 
    color: #444;
    font-size: 16px;
    margin-top: 20px;
}

#article .small {
  line-height: 1.2;
  margin-top: 3px;
}
/* ### MEDIA QUERIES ### */ 

@media (max-width: 768px) {
    .top-section-img {
        padding-bottom: 150px;
        background-position: center center;
    }

    .news-image-override {
        padding-bottom: 200px !important;
    }   

    .activity-category-img {
        padding-bottom: 150px;
    }

    .startpage-header {
        font-size: 18px;
    }

    .footer-logo {
        margin-bottom: 50px;
        text-align: center;
    }

    .footer-ul {
        max-width: 100%;
    }

    .activity-mobile {
        display: block;
        max-width: 600px; 
        margin: 0 auto;         
    }

    .activity-desktop {
        display: none;
    }

    .goog-te-menu-value span:first-child {
        display: none !important;
    }

    #slogan-bottom {
        margin-bottom: 6px;
    }

    .slogan-img {
        max-width: 235px;
        margin-top: 1px;
    }

    .logo-text {
        font-size: 50px;
    }

    .calendar-timeline-item::before {
        display: none !important;
    }

}

/*\
 * Restore Bootstrap 3 "hidden" utility classes.
\*/

/* Breakpoint XS */
@media (max-width: 575px)
{
    .hidden-xs-down, .hidden-sm-down, .hidden-md-down, .hidden-lg-down, .hidden-xl-down, 
    .hidden-xs-up, 
    .hidden-unless-sm, .hidden-unless-md, .hidden-unless-lg, .hidden-unless-xl
    {
        display: none !important;
    }

}

/* Breakpoint SM */
@media (min-width: 576px) and (max-width: 767px)
{
    .hidden-sm-down, .hidden-md-down, .hidden-lg-down, .hidden-xl-down, 
    .hidden-xs-up, .hidden-sm-up, 
    .hidden-unless-xs, .hidden-unless-md, .hidden-unless-lg, .hidden-unless-xl
    {
        display: none !important;
    } 
}

/* Breakpoint MD */
@media (min-width: 768px) and (max-width: 991px)
{
    .hidden-md-down, .hidden-lg-down, .hidden-xl-down, 
    .hidden-xs-up, .hidden-sm-up, .hidden-md-up, 
    .hidden-unless-xs, .hidden-unless-sm, .hidden-unless-lg, .hidden-unless-xl
    {
        display: none !important;
    } 
}

/* Breakpoint LG */
@media (min-width: 992px) and (max-width: 1199px)
{
    .hidden-lg-down, .hidden-xl-down, 
    .hidden-xs-up, .hidden-sm-up, .hidden-md-up, .hidden-lg-up, 
    .hidden-unless-xs, .hidden-unless-sm, .hidden-unless-md, .hidden-unless-xl
    {
        display: none !important;
    } 
}

/* Breakpoint XL */
@media (min-width: 1200px)
{
    .hidden-xl-down, 
    .hidden-xs-up, .hidden-sm-up, .hidden-md-up, .hidden-lg-up, .hidden-xl-up, 
    .hidden-unless-xs, .hidden-unless-sm, .hidden-unless-md, .hidden-unless-lg
    {
        display: none !important;
    } 
}


.ribbon {
    position: absolute;
    right: -5px;
    top: -5px;
    z-index: 1;
    overflow: hidden;
    width: 75px;
    height: 75px;
    text-align: right;
}

.ribbon span {
    font-size: 10px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    font-weight: bold;
    line-height: 20px;
    transform: rotate(45deg);
    width: 100px;
    display: block;
    background: #79A70A;
    background: linear-gradient(#F70505 0%, #8F0808 100%);
    box-shadow: 0 3px 10px -5px rgba(0,0,0,1);
    position: absolute;
    top: 19px;
    right: -21px;
}

.ribbon span::before {
    content: '';
    position: absolute;
    left: 0%;
    top: 100%;
    z-index: -1;
    border-left: 3px solid #5b3c3c;
    border-right: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #5b3c3c;
}

.ribbon span::after {
    content: '';
    position: absolute;
    right: 0%;
    top: 100%;
    z-index: -1;
    border-right: 3px solid #5b3c3c;
    border-left: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-top: 3px solid #5b3c3c;
}

.survey-subheaders {
    width:100%;
    display: inline-block;
    margin-top: 10px;
}

.survey-subheader {
    position: relative;
    float: left;
    font-size: 15px;
    font-weight: bold;
    padding: 6px 27px 7px 37px;
    margin: 20px 20px 15px -22px !important;
    color: #fff;
    background-color: #3D9187;
    -webkit-box-shadow: 0px 2px 4px #999;
    -moz-box-shadow: 0px 2px 4px #999;
    box-shadow: 0px 2px 4px #999;
}

.survey-subheader:after {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: 0;
    bottom: -5px;
    border-style: solid;
    border-color: #1d776b #1d776b transparent transparent;
}


/* FORENINGSPORTAL */

/* ### TOP SECTION ### */

.top-section {
    padding-bottom: 250px;
    background-size: cover; 
    background-position: center center; 
    background-repeat: no-repeat;
    position: relative;
}

.top-section .overlay {
    background-color: rgba(0, 0, 0, 0.4);
    position: absolute; 
    left: 0; right: 0; 
    top: 0; bottom: 0; 
    text-align: center;
}

.top-section .no-overlay {
    background-color: rgba(0, 0, 0, 0);
    position: absolute; 
    left: 0; right: 0; 
    top: 0; bottom: 0; 
    text-align: center;
}

.top-section .headlines-container {
    height: 84%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}

.top-section .headlines {
    display: block;
    text-transform: uppercase; 
    color: white; 
    cursor: pointer;
}

.headlines-container .headlines-prefix {
    font-size: 20px;
    font-family: "Open Sans",helvetica,arial,sans-serif; 
    font-weight: 600; 
    font-style: normal;
}

.headlines-container .headlines-main {
    font-size: 65px;
    line-height: 1.3;
    font-family: "Open Sans",helvetica,arial,sans-serif; 
    font-weight: 800; 
    font-style: normal; 
}

.top-section .menu-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    width: 100%;
}

.menu-container .item {
    font-family: Open Sans,helvetica,arial,sans-serif; 
    font-weight: 500; 
    font-style: normal; 
    color: #fff; 
    border-top: none;
    cursor: pointer;
    white-space: nowrap;
}

.menu-container .item-active {
    color: #454545;
    border-radius: 3px 3px 0 0;
    background-color: rgba(255, 255, 255, 1);
}

.menu-container .item-active .item-title {
    display: inline-block !important;
}

.top-section .container-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

/* ### END TOP SECTION ### */


/* ### KALENDER TOPP ### */

.daterangepicker .ranges ul {
    width: 100% !important;
}

.daterangepicker .ranges li {
    font-size: 1rem !important;
}

.filter-option-inner-inner {
  color: #000000;
}
.bootstrap-select>.dropdown-toggle:after {
    margin-top: -15px;
    margin-right: 6px;
}

/* CHANGE IMAGE OVERLAY */

.editable {    
    position: relative;
    cursor: pointer;
}

.editable .overlay {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: #f0f0f095;
    transition: .5s ease;
    opacity: 0;
}

.editable .overlay:hover {
    opacity: 1;
}

.editable .overlay > i {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 40px;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .editable .overlay {
        opacity: 1;
        background-color: none;
    }
}


/* END CHANGE IMAGE OVERLY */

/* Selected button */
button.active,
a.btn.active,
td.active {
    background-color: #e1f0ff !important;
}

.u-nav-v1-1.u-nav-dark .nav-link.active {
    color: #fff;
    background-color: #555;
}

.g-brd-bottom--md {
    border-bottom: solid 1px #777 !important;
}

/* ### MEDIA QUERIES ### */

@media (max-width: 768px) {

    .u-nav-v1-1.u-nav-dark .nav-link.active {
        color: #fff;
        background-color: #555;
    }

    .g-brd-bottom--md {
        border-bottom: solid 1px #777 !important;
    }

    .top-section {
        padding-bottom: 150px;
        background-position: center center;
    }

    .goog-te-menu-value span:first-child {
        display: none !important;
    }

    .headlines-container .headlines-prefix {
        font-size: 15px;
    }

    .headlines-container .headlines-main {
        font-size: 35px;
        line-height: 1;
    }

    .menu-container .item {
        padding-left: 8px;
        padding-right: 8px;
        font-size: 15px;
    }

    .menu-container .home {
        padding-left: 13px;
        padding-right: 12px;
        font-size: 16px;
    }

    .menu-container .item .item-title {
        display: none;
    }

    .forening-description {
        font-size: 15px !important;
    }
}

/* Diverse stiler fra wps */

.imagetext-section-container .text-container {
    text-align: left;
}

.imagetext-section-container .text-container .title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #454545 !important;
}

.imagetext-section-container .text-container .description {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

@media (max-width: 991px) {
    .imagetext-section-container .text-container {
        text-align: center;
    }

    .imagetext-section-container img {
       padding-bottom: 30px;
    }
}

/* ### END MEDIA QUERIES ### */

/* ===== KALENDER V4 ===== */


/* ===== GENERELT ===== */

#portalCalendar {
  background: #f9f9f9;
  padding: 18px 0 40px;
}

#portalCalendarDetail {
  display: none;
}

/* ===== FILTER ===== */

#portalCalendarFilters .row {
  margin-bottom: 4px;
}

#portalCalendarFilters .form-control {
  height: 34px;
  font-size: 14px;
}

#portalCalendarFilters .input-group {
  margin-top: 10px;
}

#portalCalendarFilters .portal-calendar-date-range {
  background-color: #fff0b3;
  cursor: pointer;
  padding: 6px 10px;
  border: 1px solid #e0c96a;
  border-radius: 3px;
  color: #000;
  position: relative;
  height: 34px;
  line-height: 20px;
}

#portalCalendarFilters .portal-calendar-date-range::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  transform: rotate(45deg);
  pointer-events: none;
}

.daterangepicker {
  width: auto !important;
  min-width: 0 !important;
}

.daterangepicker .ranges li.active,
.daterangepicker .ranges li.active:hover {
  background-color: #cce5ff !important;
  color: #000 !important;
}

.daterangepicker td.active.start-date,
.daterangepicker td.active.end-date {
  background-color: #0088cc !important;
  color: #fff !important;
}

.daterangepicker td.in-range {
  background-color: #b3e6ff !important;
}

.portal-search-wrapper {
  position: relative;
}

.portal-search-wrapper .search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #888;
  cursor: pointer;
  display: none;
}

.portal-search-wrapper .search-clear:hover {
  color: #333;
}

#portalCalendarFilters select.filter-active option:checked {
  background-color: #337ab7;
  color: #fff;
}

#portalCalendarFilters select.filter-active option:hover {
  background-color: #f3f3f3;
  color: #333;
}

/* Bootstrap-select: vanlig knapp */
#portalCalendarFilters .bootstrap-select > .dropdown-toggle {
  background-color: #fff !important;
  border: 1px solid #ced4da !important;
  color: #333 !important;
  box-shadow: none !important;
}

/* Bootstrap-select: aktivt filter */
#portalCalendarFilters .bootstrap-select > .dropdown-toggle.filter-active {
  background-color: #fff0b3 !important;
  border: 1px solid #e0c96a !important;
  color: #333 !important;
}

/* Aktivt valgt element i �pnet dropdown */
#portalCalendarFilters .bootstrap-select .dropdown-menu li.selected > a,
#portalCalendarFilters .bootstrap-select .dropdown-menu li.active > a {
  background-color: #b9d7f0 !important;
  color: #222 !important;
}

/* Hover i �pnet dropdown */
#portalCalendarFilters .bootstrap-select .dropdown-menu li > a:hover,
#portalCalendarFilters .bootstrap-select .dropdown-menu li > a:focus {
  background-color: #dfe3e6 !important;
  color: #222 !important;
}

/* S�kefelt i dropdown */
#portalCalendarFilters .bootstrap-select .bs-searchbox input {
  border: 1px solid #ced4da !important;
  box-shadow: none !important;
}

#portalCalendarFilters .filter-active {
  background-color: #fff0b3;
  border-color: #e0c96a;
}

#portalCalendarFilters input.filter-active {
  background-color: #fff0b3;
  border-color: #e0c96a;
}

#portalCalendarFilters select.filter-active option,
#portalCalendarFilters select.filter-active optgroup {
  background-color: #fff;
  color: #333;
}

#portalCalendarFilters select.filter-active option:checked {
  background-color: #337ab7;
  color: #fff;
}

#portalCalendarFilters select.filter-active option:hover {
  background-color: #f3f3f3;
  color: #333;
}

#portalCalendarFilters .filter-count-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  min-width: 20px;
  text-align: center;
  background: #e0e3e6;
  color: #333;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

#portalCalendarFilters .bootstrap-select .dropdown-menu li.selected .filter-count-badge,
#portalCalendarFilters .bootstrap-select .dropdown-menu li.active .filter-count-badge {
  background: rgba(255,255,255,0.55);
  color: #222;
}

/* ===== TOOLBAR ===== */

#portalCalendar .portal-calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 12px;
}

#portalCalendar .portal-calendar-count {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: #333;
}

#portalCalendar .portal-calendar-count-changed {
  animation: portalCalendarCountPop 0.35s ease;
}

@keyframes portalCalendarCountPop {
  0% {
    transform: scale(1);
    background-color: transparent;
  }
  35% {
    transform: scale(1.18);
    background-color: #fff3bf;
  }
  100% {
    transform: scale(1);
    background-color: transparent;
  }
}

#portalCalendarRecordCount {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 5px;
}

#portalCalendar .portal-calendar-viewlinks {
  display: inline-flex;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

#portalCalendar .portal-calendar-viewlinks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  color: #555;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
  border-left: 1px solid #ddd;
  transition: background 0.2s ease, color 0.2s ease;
}

#portalCalendar .portal-calendar-viewlinks a:first-child {
  border-left: 0;
}

/* Hover = n�ytral gr� */
#portalCalendar .portal-calendar-viewlinks a:hover {
  background: #f1f3f5;
  color: #333;
}

/* Aktiv = gr�nn */
#portalCalendar .portal-calendar-viewlinks a.active {
  background: #4fa369;
  color: #fff;
}

/* Hover p� aktiv (litt m�rkere gr�nn) */
#portalCalendar .portal-calendar-viewlinks a.active:hover {
  background: #3c8c55;
}

/* Fjern bl� fokus-strek */
#portalCalendar .portal-calendar-viewlinks a:focus {
  outline: none;
  box-shadow: none;
}

/* ===== DATO HEADER ===== */

#portalCalendar .kalender-dateheader {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px;
  margin: 20px 0 10px;
  border-radius: 2px;
  width: 100%;
  background-color: #454545;
  color: #fff;
  font-weight: 600;
  border: 1px solid #d0d0d0;
  font-size: 16px;
}

/* ===== KORT ===== */

#portalCalendar .kalenderkort {
  border: solid 1px #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
  background: #fff;
  height: auto;
  transition: all 0.2s ease;
}

#portalCalendar .kalenderkort:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

#portalCalendar .kalenderkort-body {
  height: 170px;
  overflow: hidden;
}

#portalCalendar .kalenderkort-internal {
  background-color: #fff9db !important;
}

#portalCalendar .kort-lenke {
  display: block;
  color: inherit;
  text-decoration: none;
  /* fjernet height:100% */
}

/* ===== BILDE ===== */

#portalCalendar .news-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
  padding-bottom: 0;
}

/* ===== TEKST ===== */

#portalCalendar .kalender-tittel {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #333;
}

#portalCalendar .kalender-tekst {
  color: #333;
}

/* ===== INFO-LISTE ===== */

#portalCalendar .kalender-info {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#portalCalendar .kalender-info div {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0;
}

#portalCalendar .kalender-info i {
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 20px;
  text-align: center;
}

#portalCalendar .link-button {
  background: none;
  border: none;
  padding: 8px 0;
  color: #4fa369;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#portalCalendar .link-button:hover {
  text-decoration: underline;
  color: #3c8c55;
}

#portalCalendar .portal-calendar-viewlinks a,
#portalCalendar .portal-calendar-viewlinks a.active {
  border-bottom: none !important;
}

/* ===== AGENDA ===== */

#portalCalendar .agenda-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

#portalCalendar .agenda-item:hover {
  background: #f5f7f9;
  box-shadow: 0 5px 12px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

#portalCalendar .agenda-item-internal {
  background-color: #fff9db !important;
}

#portalCalendar .agenda-item-internal:hover {
  background-color: #fff3bf !important;
}

#portalCalendar .agenda-time {
  width: 90px;
  flex: 0 0 90px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
  padding-top: 1px;
}

#portalCalendar .agenda-image-wrap {
  width: 82px;
  height: 58px;
  flex: 0 0 82px;
  background: #eee;
  overflow: hidden;
  border-radius: 3px;
}

#portalCalendar .agenda-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#portalCalendar .agenda-main {
  flex: 1;
  min-width: 0;
}

#portalCalendar .agenda-title {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.25;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#portalCalendar .agenda-meta {
  color: #444;
  font-size: 14px;
  line-height: 1.4;
}

#portalCalendar .agenda-meta span {
  display: inline-block;
  margin-right: 14px;
}

@media (max-width: 575px) {
  #portalCalendar .agenda-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-areas:
      "time main"
      "image main";
    gap: 6px 12px;
    align-items: start;
  }

  #portalCalendar .agenda-time {
    grid-area: time;
    width: 100%;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
    padding-top: 2px;
  }

  #portalCalendar .agenda-image-wrap {
    grid-area: image;
    width: 80px; 
    height: 64px;
    align-self: start;
    justify-self: start;
  }

  #portalCalendar .agenda-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
  }

  #portalCalendar .agenda-main {
    grid-area: main;
    min-width: 0;
    padding-left: 2px;
  }

  #portalCalendar .agenda-title {
    font-size: 16px;
    line-height: 1.25;
    margin: 0 0 4px 0;
  }

  #portalCalendar .agenda-meta {
    font-size: 14px;
    line-height: 1.35;
  }

  #portalCalendar .agenda-meta span {
    display: block;
  }
  
}

/* ===== KALENDER ===== */

#portalCalendar .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid #d8dde2;
  background: #fff;
  width: 100%;
}

#portalCalendar .calendar-weekday,
#portalCalendar .calendar-cell {
  min-width: 0;
}

#portalCalendar .calendar-weekday {
  padding: 8px;
  font-weight: 700;
  background: #454545;
  color: #fff;
  border-right: 1px solid #666;
}

#portalCalendar .calendar-cell {
  min-height: 90px;
  padding: 6px;
  border-right: 1px solid #e1e5e8;
  border-bottom: 1px solid #e1e5e8;
  background: #fff;
}

#portalCalendar .calendar-cell-empty {
  background: #f4f4f4;
}

#portalCalendar .calendar-date {
  display: inline-block;
  padding: 3px 7px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #eef0f2;
  color: #222;
  font-weight: 700;
  font-size: 13px;
}

#portalCalendar .calendar-date-saturday {
  background: #eef5fb;
}

#portalCalendar .calendar-date-sunday {
  background: #f8eeee;
}

#portalCalendar .calendar-new-month {
  border-left: 2px solid #777;
}

#portalCalendar .calendar-event {
  font-size: 13px;
  line-height: 1.25;
  padding: 3px 4px;
  margin-bottom: 3px;
  background: #f5f7f9;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  position: relative;
}

#portalCalendar .calendar-weekday {
  position: sticky;
  top: 0;
  z-index: 40;
}

#portalCalendar .calendar-event:hover {
  background: #dfe3e6;
}

#portalCalendar .calendar-event-internal {
  background-color: #fff3bf;
}

#portalCalendar .calendar-event-internal:hover {
  background-color: #ffe8a3;
}

#portalCalendar .calendar-event-time {
  font-weight: 700;
  margin-right: 4px;
}

#portalCalendar .calendar-event-last-opened {
  outline: 2px solid #4fa369;
  outline-offset: 1px;
  background: #eef8f1;
}

#portalCalendar .calendar-event-last-opened.calendar-event-internal {
  background: #fff3bf;
}

#portalCalendar .calendar-cell-no-events {
  background: #fafafa;
}

#portalCalendar .calendar-cell-no-events .calendar-date {
  background: transparent;
  color: #aaa;
  font-weight: 600;
}

#portalCalendar .calendar-count-badge {
  display: none;
}

#portalCalendar .calendar-day-panel {
  display: none;
}

#portalCalendar .calendar-day-panel-item-internal {
  background-color: #fff9db;
}

#portalCalendar .calendar-day-panel-item-internal:hover {
  background-color: #fff3bf;
}

#portalCalendarFilters .bootstrap-select .dropdown-menu li a:has(.missing-option-content) {
  margin-top: 8px;
  margin-bottom: 6px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: 1px solid #d0d0d0;
  background-color: #f1f3f5;
  font-style: italic;
  color: #555;
}

#portalCalendarFilters .bootstrap-select .dropdown-menu li a:has(.missing-option-content):hover,
#portalCalendarFilters .bootstrap-select .dropdown-menu li.selected a:has(.missing-option-content),
#portalCalendarFilters .bootstrap-select .dropdown-menu li.active a:has(.missing-option-content) {
  background-color: #dfe3e6 !important;
  color: #222 !important;
}

#portalCalendarFilters .bootstrap-select .dropdown-menu .missing-option-content {
  display: block;
}

#portalCalendarFilters .bootstrap-select .dropdown-menu .missing-option-content .filter-count-badge {
  background: #dcdcdc;
  color: #333;
}

#portalCalendarFilters .bootstrap-select .dropdown-menu li:has(.missing-option-content) {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

#portalCalendarFilters .bootstrap-select .dropdown-menu li a:has(.missing-option-content) {
  margin-bottom: 0 !important;
  border-bottom: none;
}

@media (max-width: 991px) {
  #portalCalendar .calendar-event {
    display: none;
  }

  #portalCalendar .calendar-cell {
    min-height: 78px;
    cursor: pointer;
    text-align: center;
  }

  #portalCalendar .calendar-count-badge {
    display: flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #4fa369;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    margin: 7px auto 0;    
  }

  #portalCalendar .calendar-cell-no-events .calendar-count-badge {
    display: none;
  }

  #portalCalendar .calendar-cell-selected {
    background: #eef8f1;
    outline: 2px solid #4fa369;
    outline-offset: -2px;
  }

  #portalCalendar .calendar-day-panel {
    display: block;
    grid-column: 1 / -1;
    background: #fff;
    border-bottom: 1px solid #d8dde2;
    padding: 12px;
  }

  #portalCalendar .calendar-day-panel-title {
    font-weight: 700;
    margin-bottom: 8px;
  }

  #portalCalendar .calendar-day-panel-item {
    padding: 7px 8px;
    border-bottom: 1px solid #eceff1;
    cursor: pointer;
  }

  #portalCalendar .calendar-day-panel-item:hover {
    background: #f5f7f9;
  }

  #portalCalendar .calendar-day-panel-item-internal {
    background-color: #fff9db;
  }

  #portalCalendar .calendar-day-panel-item-internal:hover {
    background-color: #fff3bf;
  }

  #portalCalendar .calendar-day-panel-time {
    font-weight: 700;
    margin-right: 8px;
  }
  
  #portalCalendar .calendar-weekday {
    text-align: center;
    padding: 8px 4px;
  }

  #portalCalendar .calendar-date {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 410px) {
  #portalCalendar .portal-calendar-toolbar {
    display: block;
  }

  #portalCalendar .portal-calendar-count {
    margin-bottom: 8px;
  }

  #portalCalendar .portal-calendar-viewlinks {
    display: flex;
    width: 100%;
  }

  #portalCalendar .portal-calendar-viewlinks a {
    flex: 1;
    justify-content: center;
    padding: 6px 8px;
  }
}

