﻿/* SharePoint Overrides */
#suiteBarLeft {
    background-repeat: no-repeat;
    background-position: 100% top;
}
#pageStatusBar[class], .ms-status-msg {
    margin-bottom: 0;
}

#s4-workspace .ms-core-menu-separator,
#s4-workspace .ms-core-menu-separatorHr {
    margin: 0;
}
#s4-workspace .ms-linksectionitemdescription {
  padding-left: 3px;
  padding-top: 7px;
}
#s4-workspace { overflow-x: auto; }
#s4-workspace .ms-vh-icon,
#s4-workspace .ms-vh-icon-empty, 
#s4-workspace .ms-vh2-nofilter,
#s4-workspace .ms-vh2-nofilter-notextalign,
#s4-workspace .ms-vh2-nofilter-perm,
#s4-workspace .ms-vb-icon,
#s4-workspace .ms-vb2,
#s4-workspace .ms-vb-title,
#s4-workspace .ms-vh2 {
    padding: 5px 7px;
}
#s4-workspace .ms-breadcrumb-box {
height: auto;
}
#s4-workspace .ms-webpartzone-cell {
    margin: auto;
}
#s4-workspace .nav.sidenav>li.heading {
    margin-bottom: 12px;
    font-size: 17px;
    color: #333;   
}
#s4-workspace .nav.sidenav ul {
    margin-left: 20px;
}
#s4-workspace .nav.sidenav li {
    position: relative;
    display: block;
}
#s4-workspace .nav.sidenav li a {
    padding: 8px 0;
    position: relative;
    display: block;
}
#s4-workspace .nav.sidenav li a:hover{
    background:none;
}
#s4-workspace .nav.sidenav li.active a {
    color: #444;
}
#s4-workspace .ms-siteicon-img {
    max-width: 100%;
    max-height: 100%;
}

#s4-workspace .ms-siteicon-a {
    max-width: 100%;
    max-height: 100%;
}

/* Bootstrap Overrides/Additions */
#s4-workspace textarea.form-control {
    height: auto;
}

/* System Master Page Styles */
#s4-workspace h1,
#s4-workspace h2,
#s4-workspace h3,
#s4-workspace h4,
#s4-workspace h5,
#s4-workspace h6 {
    margin-top: 5px;
    margin-bottom: 20px;
    color: #000;
}
#s4-workspace h2.ms-webpart-titleText {
    margin-bottom: 10px;
}
#s4-workspace h1 {
    font-size: 24px;
}
#s4-workspace h2 {
    font-size: 18px;
}
#s4-workspace h3 {
    font-size: 15px;
}
#s4-workspace h4 {
    font-size: 13px;
}
#s4-workspace label { display: inline; }

/* Header Styles */
#header {
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 170px;
    position: relative;
    background-position: 50% 25%;
}
.ms-fullscreenmode #header {
    display: none;
}
#siteIcon {
    position: relative;   
    display: inline-block;
}
#siteIcon {
    top: 10px;
    height: auto;
    line-height: normal;
}
.container-fluid #siteIcon { left: 10px; }
#siteIcon img { height: 90px; }


/* Scaffolding Styles */
#s4-workspace {
    font-family:"Segoe UI","Segoe",Tahoma,Helvetica,Arial,sans-serif;
}
#s4-workspace #contentRow { padding-top: 0;}

/* Typography Styles */
#s4-workspace h1 {
    margin-top: 0;
}

/* Header Search Box Styles */
#searchInputBox {
     position: relative; 
     top: 45px;      
     margin: 0;
        background: #fff;
}
.ms-srch-sb {
    width: 100%;
}
.ms-srch-sb>input {
    width: 100%;
}
#searchInputBox input {
    padding: 7px;
    height: auto;
    border: 1px solid #ddd;
    width: 300px;
}
#searchInputBox .ms-srch-sb-border {
    border: 0;
    position: relative;
}
#searchInputBox .ms-srch-sb-searchLink {
    position: absolute;
    top: 6px;
    right: 5px;
}
#searchInputBox .ms-srch-sb-navLink {
   position: absolute;
    top: 6px;
    right: 25px;
}

/* Navigation Styles */
#s4-workspace .dropdown-menu {
    z-index: 10000;
}
#s4-workspace .navbar-default .navbar-nav>li.dropdown:hover>a {
  background-color: #e7e7e7;  
}
#s4-workspace ul.root { padding-left: 0; }
#s4-workspace .navbar-toggle {
    min-width: 0 !important;
}

/* Breadcrumb Styles */
#s4-workspace .breadcrumb {
    background: none;
    padding: 5px 0;
}

/* News Rollup */
.news-rollup {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-rollup li {
    margin-bottom:15px;
}
.news-rollup .image {
    float: left;
    width: 70px;
}

.news-rollup .image img {
    width: 100%;
}
.news-rollup .content {
    margin-left: 80px;
}
.news-rollup .description {
    margin: 6px 0;
}
.news-rollup .date {
    font-size: 12px;
}
.news-rollup.events .date {
    margin-bottom: 6px;
}
.news-rollup li:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
    }
* html .news-rollup li            { zoom: 1; } /* IE6 */
*:first-child+html .news-rollup li { zoom: 1; } /* IE7 */

/* Image Rotator */
.nivoSlider {
    height: 100% !important;
}

/* REST Styles */
[data-action="SearchTemplate"]{
    min-height: 32px;
}
[data-action="SearchTemplate"].loading {
    background-color:transparent;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
}
[data-action="SearchTemplate"] .template,
[data-action="SearchTemplate"] .noresults {
    display: none;
}

/* Footer Styles */
#footer {
    border-top: 1px solid #eee;
    margin-top: 20px;
    padding-top: 40px;
}

/* Responsive Styles */
@media screen and (min-width: 768px){
    #s4-workspace .navbar-nav>li.dropdown:hover>.dropdown-menu {
        display: block;
    }
    #s4-workspace .dropdown-submenu {
        position:relative;
    }
	/*
    #s4-workspace .dropdown-submenu>.dropdown-menu {
        top:0;
        left:100%;
        margin-top:-6px;
        margin-left:-1px;
        -webkit-border-radius:0 6px 6px 6px;
        -moz-border-radius:0 6px 6px 6px;
        border-radius:0 6px 6px 6px;
    }
    #s4-workspace .dropdown-submenu:hover>.dropdown-menu {
        display:block;
    }
    #s4-workspace .dropdown-submenu>a:after {
        display:block;
        content:" ";
        float:right;
        width:0;
        height:0;
        border-color:transparent;
        border-style:solid;
        border-width:5px 0 5px 5px;
        border-left-color:#cccccc;
        margin-top:5px;
        margin-right:-10px;
    }
	*/
    #s4-workspace .dropdown-submenu:hover>a:after {
        border-left-color:#ffffff;
    }
    #s4-workspace .dropdown-submenu.pull-left {
        float:none;
    }
    #s4-workspace .dropdown-submenu.pull-left>.dropdown-menu {
        left:-100%;
        margin-left:10px;
        -webkit-border-radius:6px 0 6px 6px;
        -moz-border-radius:6px 0 6px 6px;
        border-radius:6px 0 6px 6px;
    }
}
@media screen and (max-width: 992px){  
     #searchInputBox {
        top: 56px;
    }
}
@media screen and (min-width: 992px){
    #header {
        min-height: 130px;
    }
    #searchInputBox {
        display: inline-block;
    
        float: right;
    }
    .container-fluid #searchInputBox { right: 20px; }
}
@media screen and (max-width: 1044px){
    #pageTitle {
      position: static;
      top: 0;
      left: 0;
    }
}