/* New header design */
body:not(#saml) #header {
    padding-bottom: 10px;
}

body:not(#saml) #header #header-inner {
    height: auto;
    flex-wrap: wrap;
}

body:not(#saml) #header #header-inner #logo {
    width: 50%;
    position: relative;
    margin: 0;
    max-width: unset;
}

body:not(#saml) #header #header-inner #logo img {
    max-height: 135px;
    margin-bottom: 10px;
}

@media (max-width: 767px) {
    body:not(#saml) #header #header-inner #logo {
        left: 0;
        transform: none;
        justify-content: start;
    }

    body:not(#saml) #header #header-inner #logo a img {
        max-height: 70px;
        margin-bottom: 0;
    }
}

body:not(#saml) #header #header-inner #search-keyword {
    width: -moz-fit-content;
    width: fit-content;
    position: absolute;
    top: 1em;
}

body:not(#saml) #header #header-inner #navigation {
    width: 100%;
    justify-content: center;
}

body:not(#saml) #header #header-inner #navigation>#primarynav {
    flex: unset;
}




/* New footer styling */
#footer-custom {
    width: 80%;
    margin: auto;
    padding: 3px 20px 0;
    box-sizing: border-box;
    font-size: 15px;
}

#footer-custom * {
    color: white !important;
    display: inline;
    margin-right: 10px;
}




/* New class for blog buttons */
a.blog-button {
    max-width: 96%;
    padding: 12px 10px;
    background: #d8a054;
    color: white !important;
    border: none;
    border-radius: 4px;
    display: inline-block !important;
}




/* Blog widget - removing scroll bar bug */
.ig-widget-blogarticles .ig-widget-layout-default {
    overflow: hidden;
}




/* Blog load more button */
.blog-widget-entry .loadmore {
    color: #d8a054;
}




/* Fixing space navigation page bugs */
.ig-navigation.admincontent .mif-tree-node-wrapper {
    margin-bottom: 10px;
}

.blog-widget-entry .loadmore.outline {
    border: none !important;
}




/* Fixing bug where site admin options can't be clicked - caused by main z index being low */
body:not(#saml) #main {
    position: unset;
}




/* Changing colour of folder channel change name text */
.ig-channeltype-folderchannel #eip input.eipta {
    color: #4d3f47 !important;
}




/* Making folder/file names fold onto 2 rows */
body.ig-channeltype-folderchannel #folderView .ig-filename {
    white-space: break-spaces !important;
}




/* New Mobile Design Demo */
@media (max-width: 767px) {
    body#ig-page-newmobiledesigndemo #navigation-expand {
        float: none;
        align-self: flex-end;
        margin-right: -42px;
        align-self: flex-end;
        order: 3;
        z-index: 1004;
    }

    body#ig-page-newmobiledesigndemo #navigation-mobile {
        position: fixed;
        top: 0;
        bottom: 0;
        right: -250px;
        left: unset;
        float: right;
        z-index: 1004;
        display: block;
        width: 250px;
        height: 100%;
        -webkit-overflow-scrolling: touch;
        overflow-x: hidden;
        overflow-y: auto;
        background: #333;
    }
}

@media (max-width: 767px) and (max-width: 767px) {
    body#ig-page-newmobiledesigndemo.navigation-active #navigation-mobile {
        left: unset;
        right: -250px;
        transition: transform 0.5s ease;
    }

    body#ig-page-newmobiledesigndemo.navigation-active #navigation-mobile,
    body#ig-page-newmobiledesigndemo.navigation-active #page,
    body#ig-page-newmobiledesigndemo.navigation-active #userbar {
        transform: translate3d(-250px, 0, 0);
    }
}

@media (max-width: 767px) {
    body#ig-page-newmobiledesigndemo #search-expand {
        align-self: flex-start;
        order: 0;
        margin-right: -10px;
        margin-left: -42px;
    }
}




/* Tightening mobile design */
@media (max-width: 767px) {
    body:not(#saml) #content {
        width: 90%;
        margin: 20px auto 0 auto;
    }
}




/* Mobile nav from links widget */
#mobile-nav-container {
    display: none;
}

.ig-cpt.mobile-navigation {
    display: none !important;
}

@media (max-width: 767px) {
    #logo {
        width: -moz-fit-content !important;
        width: fit-content !important;
        min-width: unset;
    }

    #mobile-nav-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        grid-column-gap: 10px;
        flex: 1 1;
        margin-left: 20px;
    }

    #mobile-nav-container a {
        color: #f4f3e9;
        font-size: 16px;
    }
}




/* Hiding bookmarks trigger in user panel */
#ig-usrpanel #ig-bookmarks-trigger {
    display: none !important;
}




/* Popup */
#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

#popup #popup-content {
    width: -moz-fit-content;
    width: fit-content;
    height: -moz-fit-content;
    height: fit-content;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px 20px 16px 16px;
    border: 1px solid #f2f3f4;
    border-radius: 8px !important;
    box-shadow: 1px 1px 5px grey;
}

#popup #popup-content button {
    background: #d8a054;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 9px 8px 6px;
    font-weight: 700;
    width: auto;
}

@media (max-width: 767px) {
    #popup #popup-content {
        top: 300px !important;
    }
}




/* Testing modal positioning - broken on android */
@media (max-width: 767px) {
    .modalcontainer {
        top: 150px !important;
    }

    .ig-suggestions-dropdown,
    .ig-suggestions-dropdown ul {
        min-height: 475px;
    }
}




/* Fixing bug where logo overlaps modal container */
#blanket,
.modalcontainer {
    z-index: 1002 !important;
}




/* Bug fixes for android content creation popup */
/* These are duplicated in the theme but I wanted to have them here to avoid a cache reset */
/* Popup on mobile labels white on white */
.fr-popup.fr-mobile.fr-active label {
    color: #4d3f47 !important;
}

/* Microblog popup channel select not scrolling on Android */
#js-microblogMenu #js-microblog-channel-menu>.ig-mb-channellist {
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
}




/* Fixing search box overlapping add content popup */
@media (min-width: 961px) {
    #search-keyword {
        z-index: 10 !important;
    }
}




/* Hiding user's email on @ mentions */
.ig-mentions .ig-mentions__sub-title {
    display: none;
}




/* Custom description links class */
body.ig-channels #content-body #customcontent.editable a.description-link {
    display: inline-block;
    width: -moz-fit-content;
    width: fit-content;
    text-align: center;
    word-break: break-all;
    padding: 10px;
    margin: 5px;
    border-radius: 10px;
    color: white;
    background-size: 50%;
}

body.ig-channels.ig-space-staffroom-marketing #content-body #customcontent.editable a.description-link {
    background-color: #bf6b81;
    background-image: url(/download/theme/mellors_theme/description_link_backgrounds/fruit_and_veg_wallpaper_background_a4_pinkpng);
}

body.ig-channels.ig-space-staffroom-healthandsafety2 #content-body #customcontent.editable a.description-link {
    background-color: #82d39e;
    background-image: url(/download/theme/mellors_theme/description_link_backgrounds/fruit_and_veg_wallpaper_background_a4_bluepng);
}

body.ig-channels.ig-space-staffroom-hr #content-body #customcontent.editable a.description-link {
    background-color: #bacf46;
    background-image: url(/download/theme/mellors_theme/description_link_backgrounds/fruit_and_veg_wallpaper_background_a4_greenpng~1);
}

body.ig-channels.ig-space-staffroom-training #content-body #customcontent.editable a.description-link {
    background-color: #da983d;
    background-image: url(/download/theme/mellors_theme/description_link_backgrounds/fruit_and_veg_wallpaper_background_a4_orangepng);
}

body.ig-channels.ig-space-staffroom-procurement #content-body #customcontent.editable a.description-link {
    background-color: #f7faeb;
    color: #6d6399;
    background-image: url(/download/theme/mellors_theme/description_link_backgrounds/fruit_and_veg_wallpaper_background_a4_greyjpg);
}

body.ig-channels.ig-space-staffroom-foodandnutrition #content-body #customcontent.editable a.description-link {
    background-color: #6d6399;
    background-image: url(/download/theme/mellors_theme/description_link_backgrounds/fruit_and_veg_wallpaper_background_a4_purplepng);
}

body.ig-channels.ig-space-staffroom-operations #content-body #customcontent.editable a.description-link {
    background-color: #000000;
    background-image: url(/download/theme/mellors_theme/description_link_backgrounds/fruit_and_veg_wallpaper_background_a4_greenpng~1);
}

/* Hide email address in search results */

.ig-member-info div .small {
    display: none;
}




/* Profile view fixes */
/* Title options arrow */
#ig-dashboardMenu .ig-arrow {
    background-position-y: 25px;
}

/* Userpanel links colour */
body#myprofile #ig-usrctlpanelcontent ul li a {
    color: white !important;
}

/* Contact requests positioning */
@media (min-width: 767px) {
    body#myprofile.mycontacts .two-column {
        display: flex;
    }

    body#myprofile.mycontacts .two-column .column-main-inner {
        margin-right: 20px
    }

    body#myprofile.mycontacts .two-column .column-secondary {
        float: unset;
        margin-left: unset;
    }

    body#myprofile.mycontacts .two-column:after {
        display: none;
    }
}

/* Stars not displaying correctly */
body#myprofile span.stars,
body#myprofile ul.stars,
body#myprofile ul.stars li a:hover {
    display: block;
}




/* Making load more button on homepage blog bigger */
body#ig-page-home .ig-cpt.ig-widget-type-blog a.loadmore {
    overflow-anchor: none;
    background-color: #d8a054;
    color: white;
    border: none;
    border-radius: 4px;
    display: block !important;
    padding: 5px 20px !important;
    border-radius: 4px;
    float: none;
    width: -moz-fit-content;
    width: fit-content;
    height: auto;
    margin: 20px auto 0;
    font-size: 12px;
    line-height: normal;
}

/* new comment button design for autumn party */

.ig-app-mellors_autumn_party_ .ig-meta-footer .ig-comments a {
    background-color: #4d3f47 !important;
    color: white !important;
    border: none;
    border-radius: 4px;
    display: inline-block;
    padding: 1px 8px;
    transition: all 0.2s ease;
}

.ig-app-mellors_autumn_party_ .ig-meta-footer .ig-comments a:hover {
    text-decoration: none!important;
    background-color: #86B2A6!important;
}




/* Making forgot password page text white */
body#signin #content .heading2,
body#signin #content .ig-formitem > label {
color: white;
}