/*This sets up our Ribbon for a fixed position. */
body #s4-ribbonrow {
    z-index: 1000;
}

* html #s4-ribbonrow {
    position: absolute;
}

    /* Set the ribbon popups to be fixed position also */
    #s4-ribbonrow .ms-MenuUIPopupBody, #s4-ribbonrow .ms-popoutMenu, .ms-cui-menu[id ^= "Ribbon."], .ms-cui-tooltip {
        position: fixed !important;
    }

    * html #s4-ribbonrow .ms-MenuUIPopupBody, * html #s4-ribbonrow .ms-popoutMenu, * html .ms-cui-menu[id ^= "Ribbon."], * html .ms-cui-tooltip {
        position: absolute !important;
    }

/*Make sure there are no scroll bars on our popup overlays*/
.ms-dlgOverlay {
    width: 100% !important;
}

/* used to reset the ootb styles on the title row tag in the Starter Collab master page; used for the fullscreen button in SP */
#s4-titlerow {
    background-color: transparent;
    margin: 0;
    padding: 0;
    height: auto;
}

/* body */
#s4-bodyContainer {
    padding-bottom: 0px !important;
}

a:visited {
    color: initial;
}

/* Navigation Menu*/
#zz1_TopNavigationMenu a.static {
    border-bottom-style: solid !important;
}

#zz1_TopNavigationMenu a.popout {
    background-image: none !important;
    padding-right: 0 !important;
}

#zz1_TopNavigationMenu ul.dynamic {
    z-index: 1000 !important;
}

ul.level1 {
    position: static !important;
}

li.has-popup {
    position: static !important;
}

ul.dynamic {
    border: 0px;
    box-shadow: none;
}

#nav > div > ul > li > a {
    white-space: normal;
}

/* Quick Launch Menu */
ul.quick-launch-dynamic {
    display: block !important;
    position: inherit !important;
}

[id$='_QuickLaunchMenu'] a {
    white-space: normal !important;
}

    [id$='_QuickLaunchMenu'] a.popout {
        background-image: none !important;
        padding-right: 36px !important;
    }

[id$='_QuickLaunchMenu'] ul {
    width: 240px !important;
}

.sidenav ul .has-popup > a:after {
    content: "" !important;
    position: absolute !important;
    top: 23px !important;
    right: 24px !important;
    width: 12px !important;
    height: 7px !important;
    background: none !important;
}

.sidenav ul ul a {
    background: #fff !important;
    border-color: #d9d9d9 !important;
}

/* Header */
#header h1 {
    margin-top: 24px !important;
}

.weather:before {
    width: auto !important;
    background: none !important;
}

.search-form {
    padding-top: 5px;
}

.search-form-2 + div.ms-webpart-zone div.ms-webpart-cell-vertical, .search-form-2 + div.ms-webpart-zone div.ms-webpart-cell-vertical div.ms-webpart-chrome-vertical {
    display: block !important;
}

/* Gallery */
.gallery .box h2 {
    color: #fff;
}

/* Newsletter */
.newsletter-form h3 {
    color: #fff;
}

.newsletter-item {
    margin-bottom: 9px;
}

.newsletter-error-text {
    display: none;
}

.newsletter-error .newsletter-error-text {
    display: block;
    top: 100%;
    left: 5px;
    font-size: 12px;
    line-height: 14px;
    padding: 3px 0 0;
    color: #e34347;
    font-style: italic;
}

/* Content Search Web Parts*/
.width-auto .ms-fullWidth {
    width: auto !important;
}

.ms-fullWidth .ms-webpartzone-cell {
    margin-bottom: 0px !important;
}

.ms-webpart-zone {
    display: block !important;
}

/* MPP Home Page */
.right {
    float: right;
}

/* Logo area */
.logo-box > a {
    float: left;
    margin: 0px 18px 0 -10px;
}

/* Content Pages */
#map-canvas {
    width: 650px;
    height: 378px;
}

#twocolumns {
    padding-bottom: 50px;
}

#content .article-section div h2 {
    text-decoration: none;
    color: #5e5e5e !important;
}

/* Search Page */
.ms-srch-item {
    width: auto;
    padding: 0px;
    margin: 0px;
    overflow: inherit;
}

h2.ms-srch-error-header {
    float: left !important;
    font: 100% 'bitterregular', Arial, Helvetica, sans-serif !important;
    margin: 0 6px 0 0 !important;
    color: #8c8c8c !important;
}

    h2.ms-srch-error-header + div {
        display: none;
    }

.ms-srch-result-noResults {
    color: #8c8c8c;
}

.social-networks a {
    background: none !important;
    text-indent: 0px !important;
}


/* Register form */
.register-form .item {
    clear: none !important;
}

.register-form {
    width: 631px;
}

.logo-box img {
    max-height: 110px;
}

.gallery .box a {
    text-decoration: none;
}

    .gallery .box a p {
        color: #ffffff;
    }

.event-box .list .date em {
    font-size: 9px;
}

/* login button */
div.welcome-message {
    float: right;
    margin: 27px 15px 0 0;
    font-size: 11px;
    line-height: 15px;
    font-weight: bold;
    color: #f5f1ea;
}

.welcome-message a, .welcome-message a:visited {
    color: #f5f1ea;
}

.register-form .error-note {
    float: left;
    padding: 4px 0 0;
    font-size: 13px;
    color: #e34347;
}

.register-form .new-line {
    clear: both;
}

/* Refinement Panel */
.mpp-refiner-control {
    padding-top: 0px !important;
}

.sidenav div.ms-ref-ctrl {
    padding-top: 15px !important;
}

.search-page-container > div.ms-webpart-zone:first-child {
    float: left !important;
    width: 240px !important;
    padding: 26px 0 0 !important;
    margin-right: 70px;
}

.ms-srch-hover-outerContainer {
    left: 512px !important;
}

/* Calendar View */
.calendar .drop .frame h4 {
    color: #fff !important;
}

/* Footer logo */
.footer-logo {
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Flavors */
#nav > div > ul > li:hover > a.selected {
    color: #ffffff !important;
}

/* Template agregattor */
#footer .logo-list-2 .social-networks {
    display: block !important;
}

/* Image map */
.map {
    background: none !important;
}

    .map .hovers li a {
        position: absolute;
    }

    .map .hovers span {
        position: absolute;
    }
