/* Layout for sidene som bruker NavSearchSmall.master (søkeresultater, bedriftssidene,
   roller og eiere). Flyttet fra en inline <style> i masteren.

   Lastes bare av NavSearchSmall.master, via HeadContent i Nav.Master, fordi mange av
   selektorene er generelle (.nav_container, .logo, .ui-menu ...) og ellers ville
   truffet alle andre sider. */

.ui-widget.ui-widget-content {
    max-width: 490px;
}

.nav_container {
    max-width: 1090px;
}

.mobile-btns-cont-black {
    display: none;
}

.dropdownMenu-container {
    margin-top: 65px;
}

.nav-res-container {
    display: none;
}

.mobile-btns-cont-black {
    display: none !important;
}

.search_input.search_input-other {
    min-width: 420px;
    min-width: 490px;
    padding-right: 154px;
}

.search-container {
    margin-left: 60px;
}


@media screen and (max-width: 767px) {
    .nav-res-container {
        /*position:fixed;*/
        display: flex;
        z-index: 1000;
        flex-direction: column;
        padding-top: 10px;
        height: 95px;
        justify-content: space-between;
        width: 100%;
        padding: 10px 10px;
        padding: 10px 20px;
        gap: 10px;
        align-items: center;
        height: 100%;
        padding-top: 10px;
        height: 121px;
        height: 134px;
        padding-bottom: 15px;
        background: white;
        -webkit-transform: translateZ(0);
        overflow-y: hidden;
        overscroll-behavior: none;
    }

    .ui-autocomplete-category {
        padding: 7px 22px 7px 45px;
    }

    .ui-menu > .ui-autocomplete-category:first-child {
        padding: 7px 20px 7px 20px;
    }

    .first-category-item {
        padding-top: 10px !important;
        padding-left: 25px;
        border-top: solid 1px lightgray !important;
    }

    .ui-menu .ui-menu-item {
        padding: 0px 20px 0px 45px;
    }

    .search_input.search_input-other {
        padding-left: 45px;
        height: 44px;
        display: unset !important;
        min-width: 250px;
        padding-right: 20px !important;
    }

    .clear-button {
        top: 70% !important;
        right: 38px !important;
    }

    .tabs_wrapper {
        top: 120px;
        top: 133px;
        gap: 15px !important;
        gap: 0px !important;
    }

    .sticky-regnskap {
        top: 165px;
        top: 182px;
    }

    .search-icon {
        top: 70% !important;
        top: 73% !important;
        /* right: 38px !important;*/
        left: 38px !important;
    }

    .logo {
        position: absolute;
        top: 14px;
        top: 10px;
        top: 17px;
        left: 20px;
        width: 185px !important;
        width: 210px !important;
        width: 230px !important;
    }


    @media screen and (max-width:360px) {
        .logo {
            width: 210px !important;
        }
    }

    .nav_menu-button {
        right: 15px;
        top: 18px;
        width: 110px;
        height: 28px;
    }

    .nav-mobile {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: flex-end;
    }

    .nav_botton-contact-responsive {
        width: 185px;
        margin-left: 15px;
        margin-left: 0px;
        margin-top: 3px;
    }

    .upper-nav-res-cont {
        display: flex;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        align-items: center;
    }


    .first-category-item {
        padding-top: 10px !important;
    }

    .ui-menu {
        margin-left: 46px;
        margin-right: 15px;
        width: calc(100% - 92px) !important;
        margin-top: 13px;
        margin-left: 20px;
        margin-right: 15px;
        width: calc(100% - 40px) !important;
        margin-top: 28px;
    }

    .ui-widget-content {
        box-shadow: 0 9px 8px -3px rgba(64, 60, 67, .24), 8px 5px 8px -7px rgba(64, 60, 67, .24), -7px 6px 8px -7px rgba(64, 60, 67, .24);
    }
}



.section.padding-top-40px {
    padding-top: 35px;
}


.clear-button {
    position: absolute;
    top: 49%;
    right: 23px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    color: #5f5f5f;
}

.nav_link:hover {
    color: black;
}


/* Tidligere style-attributter i NavSearchSmall.master */

/* Rediger-knappene øverst til høyre for innloggede brukere */
.nav-edit-btns {
    position: absolute;
    right: 0;
    display: flex;
    gap: 10px;
}

.nav_link.nav-edit-btn {
    background: white;
    border-radius: 99px;
    color: black;
    padding: 10px 18px;
}
