﻿/* bootstrap 3 resets for SharePoint */

/* Set back some sharepoint look */
.ms-dlg-heading, h2.ms-dlg-heading {
    line-height: normal;
    margin: auto;
    font-weight: normal;
}

a:hover, a:focus {
    text-decoration: none;
}

input[type="radio"] {
    margin: 3px 3px 0 5px;
    padding: initial;
}

/*border-box causes many issues with SP*/
*, *:before, *:after {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}
    /*reset elements that B3 is expecting to be border-box*/
    * [class*="col-"], * [class*="col-"]:before, * [class*="col-"]:after,
    .container, .container:before, .container:after,
    .container-fluid, .container-fluid:before, .container-fluid:after,
    .row, .row:before, .row:after,
    nav *, .nav *, .navbar-toggle,
    .table, .table-responsive, .form-control, .btn-block, .caret, .dropdown-menu, .navbar-toggle, .page-navigation *, .icon-bar, .breadcrumb, .progress-bar, .modal-dialog,
    legend, fieldset, code, pre {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

img {
    max-width: none;
    width: auto;
}
/*
* [class*="col-"] img {
    max-width: 100%; 
}*/

.ms-listviewtable img,
img.ms-webpart-menuArrowImg,
#applist img,
.ms-core-menu-icon > img,
#searchImg, #navImg,
.ms-toolbar > img,
.ms-cui-img-cont-float > img,
span[class^="ms-"] > img,
.mediaPlayerContainer img,
.ms-blog-linkCommandImage img {
    width: auto; /*within a span may still need to have width of image not 100% for SP2013 OOTB features/imges*/
    max-width: none;
}

.ms-descriptiontext.ms-inputformdescription {
    white-space:normal;
}
.ms-descriptiontext.ms-inputformdescription > table td {
    white-space:nowrap;
}
.UserSectionHead {
    white-space:nowrap;
}
.ms-siteactions-imgspan {
    float: none;
    margin: 0;
}

input.ms-cui-cb-input {
    height: 14px;
    padding: 3px 7px 2px;
}

select, input[type="file"] {
    height: auto;
    line-height: 20px;
}

.navbar-toggle {
    min-width: 0;
}

a:focus {
    outline: none;
}

a.btn:visited {
    color:#fff;
}
a.btn-default:visited {
    color:#333;
}

button::-moz-focus-inner {
    border: 0;
}

.ms-authoringcontrols label {
    display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
}
/*end bootstrap resets*/

/* Prevent web parts from leaking out of it's container 
    during editing */
.InDesignMode .ms-WPBody.ms-WPBorder.ms-wpContentDivSpace {
    overflow: hidden;
}

/* Modal */
.modal input[type=button],
.modal input[type=reset],
.modal input[type=submit],
.modal button {
    min-width:0;
}

/* Carousel */
.carousel-inner > .item {
    padding: 0;
    clear: none;
}

/* Give some leading on the header */
.col-md-12 {
    width: 100%;
  }

/*SharePoint overrides some B3 classes, reset back*/
.container {
    background-color: transparent;
    border: 1px transparent none;
    color: inherit;
    margin: 0 auto;
    width: auto;
}
/*end SP resets*/

/*template styles*/
/*Main SP containers*/
/*end Main SP containers*/
#s4-bodyContainer {
    width: auto !important;
}
/* ribbon*/
#suiteBar {
    display: block;
    height: 60px;
}

#suiteBarLeft, #suiteBarRight {
    display: inline-block;
    width: 100%;
}

    #suiteBarRight .ms-core-deltaSuiteBarRight {
        float: right;
    }

#s4-ribbonrow [class*="col-"] {
    float: none;
    margin-left: 0;
}

#pageStatusBar[class], .ms-status-msg {
    margin-bottom: 0;
}

#suiteBarLeft {
    background-color: #0088CC;
}

.ms-cui-dd-text, input.ms-cui-cb-input, input[type="text"].ms-cui-cb-input {
    border-color: #D3D6D9;
    -moz-border-image: none;
    -o-border-image: none;
    -webkit-border-image: none;
    border-image: none;
    border-style: solid;
    border-width: 1px 0 1px 1px;
    cursor: default;
    display: block;
    height: 14px;
    padding: 3px 7px 2px;
    white-space: nowrap;
    font-size: inherit;
}

.ms-cui-ctl-large:hover, .ms-cui-ctl-medium:hover, .ms-cui-ctl-large:focus, .ms-cui-ctl-medium:focus, .ms-cui-ctl:hover, .ms-cui-ctl:focus, .ms-cui-dd-arrow-button:hover, .ms-cui-dd-arrow-button:focus {
    text-decoration: none;
}
/*header*/
.header {
    margin-top: 10px;
}

.headtitle {
    margin-left: 10px;
}

#pageTitle {
    margin: 0 0 5px;
    font-size: 2em;
}
/* breadcrumb*/
ul.s4-breadcrumb {
    margin-bottom: 5px;
    padding: 0;
}

    ul.s4-breadcrumb, ul.s4-breadcrumb ul {
        margin: 0 0 5px;
        padding: 0;
        list-style: none inside none;
        display: inline-block;
    }

        ul.s4-breadcrumb .s4-breadcrumb-arrowcont {
            display: inline-block;
            width: 16px;
            height: 16px;
            background: transparent url('../img/glyphicons-halflings.png') no-repeat -262px -92px;
        }

            ul.s4-breadcrumb .s4-breadcrumb-arrowcont img {
                display: none !important;
            }

        ul.s4-breadcrumb > li:first-child > span.s4-breadcrumb-arrowcont {
            display: none;
        }

        ul.s4-breadcrumb a.s4-breadcrumbCurrentNode {
            color: #000;
        }

.breadcrumb a:visited {
    color: #428bca;
}
/* end breadcrumb*/

/*search box*/
.header .searchbox {
    display: block;
    float: none;
    clear: both;
}
/*end search box*/
/*end header*/

/*top nav */
/*on mobile devices top nav bar will be a drop down, so we want to show across*/
.ms-core-listMenu-horizontalBox, #ctl00_PlaceHolderTopNavBar_TopNav {
    display: block;
}

    .ms-core-listMenu-horizontalBox li.static > .ms-core-listMenu-item, #ctl00_PlaceHolderTopNavBar_TopNav .ms-core-listMenu-horizontalBox li.static > .ms-core-listMenu-item{
        border: none;
    }


.navbar-default .navbar-nav li.static > .menu-item.selected,
.navbar-default .navbar-nav li.static > .menu-item.selected:hover,
.navbar-default .navbar-nav li.static > .menu-item.selected:focus {
    background-color: #e7e7e7;
}

.nav li.static > .menu-item {
    position: relative;
    display: block;
    padding: 10px 15px;
    margin-left: 10px;
}

.navbar-nav li.static > .menu-item {
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 20px;
}

.nav .ms-core-navigation ul,
.nav .ms-core-navigation ul > li {
    float: none;
    list-style: none outside none;
    margin: 0;
    padding: 0;
}

.nav ul.static {
    display: block;
    position: relative;
    text-align: left;
}

.nav li.static {
    display: block;
    width: 100%;
    position: relative;
}

/*images within nav should not use responsive properties*/
.nav .ms-core-navigation img {
    max-width: none;
}
/*hide the edit nav button on mobile devices*/
.nav ul.root > li.ms-navedit-editArea {
    display: none;
}
/*hide or provide padding for down arrow*/
.nav .ms-core-listMenu-horizontalBox .dynamic-children.additional-background {
    width: 100%;
    display: block;
    background-image: url("/_layouts/15/images/menu-down.gif");
}

/* dynamic menus should not appear */
.nav ul.dynamic {
    display: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    box-shadow: none;
    margin-left:25px;
    margin-right: 45px;
    margin-bottom: 20px;
    z-index:500;
    background-color: #222;
}

.nav li.shown > ul.dynamic {
    display: block !important;
}

.nav ul.dynamic > li {
    background: transparent none;
    border-right: medium none;
    display: block;
    float: none;
    height: auto;
}

.nav .ms-core-navigation li.dynamic .menu-item {
    padding: 15px;
}

.nav .ms-core-listMenu-horizontalBox .dynamic .dynamic-children.additional-background {
    background-image: url("/_layouts/15/images/menu-down.gif");
}
/*end top nav */

/*left nav */
#ctl00_PlaceHolderLeftNavBar_TreeViewNavigationManagerV4 {
    overflow:hidden;
}

.menu-item-text, .level1 {
    font-family: 'Segoe UI','Open Sans',Verdana,Arial,Helvetica,sans-serif;
    letter-spacing: .02em;
    -ms-word-wrap: normal;
    word-wrap: normal;
    color: #000;
    font-weight: 700;
    font-size: 1.0803em;
    line-height: normal;
}
/*end left nav */

/* main content areas */
.ms-vl-apptitleouter > a {
    -ms-word-break: normal;
    word-break: normal;
}

div.table {
    margin: 0; /*added by design manager admin page, ruins rd layout*/
}

* [class*="col-"] .ms-table {
    display: inherit;
}

* [class*="col-"] .tableCol-75 {
    display: inherit;
}

#ms-core-tableNoSpace {
    display: block;
}

/* App settings */
td.ms-authoringcontrols > span {
    white-space: nowrap;
}

/* site settings */
/*Settings page - Add app page*/
#idStorefrontManagementLeftNavBar.ms-core-sideNavBox-removeLeftMargin {
    margin-left: 0;
}

a.ms-storefront-selectanchor, a.ms-storefront-selectanchor:link, a.ms-storefront-selectanchor:visited {
    clear: both;
    width: auto;
}
/*end site settings*/

/*web part zones*/
* [class*="col-"] .ms-webpart-zone, * [class*="col-"] .ms-webpart-cell-vertical, * [class*="col-"] .ms-webpart-chrome-vertical {
    display: block; /*forces zone to stay within confines of responsive zone*/
}

* [class*="col-"] .ms-WPBody > table, * [class*="col-"] .ms-WPBody > table > tbody, * [class*="col-"] .ms-WPBody > table > tbody > tr,
* [class*="col-"] .ms-WPBody > table > tbody > tr > td {
    display: block;
    width: 100%;
}

    * [class*="col-"] .ms-WPBody > table img {
        width: 100%; /*reset back to bootstrap for web part images*/
    }

.ms-SPZone.ms-webpart-zone {
    padding: 5px;
}

.ms-SPZone > .s4-wpcell, .ms-SPZone > .s4-wpcell-plain, .ms-rtestate-write > .ms-rte-wpbox > div > .s4-wpcell, .ms-rtestate-write > .ms-rte-wpbox > div > .s4-wpcell-plain {
    padding: 5px 5px 10px;
}
/*web part properties*/
/*edit mode table fixes*/
#MSOTlPn_WebPartPageDiv > tbody > tr > td:first-child {
    padding-right: 10px; /*without the padding the left column overflows over the webpart properties toolpane*/
}
/*end edit mode table fixes*/

.ms-ToolPaneBody select, .ms-ToolPaneBody textarea, .ms-ToolPaneBody input[type="text"], .ms-ToolPaneBody input[type="password"], .ms-ToolPaneBody input[type="datetime"], .ms-ToolPaneBody input[type="datetime-local"], .ms-ToolPaneBody input[type="date"], .ms-ToolPaneBody input[type="month"], .ms-ToolPaneBody input[type="time"], .ms-ToolPaneBody input[type="week"], .ms-ToolPaneBody input[type="number"], .ms-ToolPaneBody input[type="email"], .ms-ToolPaneBody input[type="url"], .ms-ToolPaneBody input[type="search"], .ms-ToolPaneBody input[type="tel"], .ms-ToolPaneBody input[type="color"], .ms-ToolPaneBody .uneditable-input {
    margin-bottom: 0;
    width: auto;
    height: auto;
    line-height: 20px;
}

.ms-webpart-titleText {
    margin-top:0;
    margin-bottom:0;
    line-height:normal;
}

.ms-ToolPaneBody label {
    display: inline-block;
    margin-bottom: 0;
}
/*end web part properties*/


/* Blog */
.ms-blog-postList,
.ms-blog-MainArea {
    max-width: none;
}

@-moz-document url-prefix() {
    .ms-blog-postBody img {
        max-width: 100%;
        width: 100%;
    }
}
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .ms-blog-postBody img {
        max-width: 100%;
        width: 100%;
    }
}


/* End Blog */


/*Gallery Grid in Banner/Homepage2*/
ul.three-up {
    display: block;
    overflow: hidden;
    margin: 0 -8px;
    padding: 0;
}

    ul.three-up > li {
        display: block;
        float: left;
        height: auto;
        margin: 0 8px 8px;
        width: 27%;
        list-style: none;
    }

        ul.three-up > li:nth-child(3n+1) {
            clear: none;
        }
/*end web part zones*/
/* end main content areas */

/*Fullscreen*/
.ms-fullscreenmode #DeltaPlaceHolderMain,
.b3-fullscreenmode #DeltaPlaceHolderMain {
    margin-left: 0;
    width: 100%;
}
.ms-fullscreenmode #sideNavBox,
.b3-fullscreenmode #sideNavBox {
    display: none;
}
.ms-fullscreenmode [role=menubar],
.b3-fullscreenmode  [role=menubar] {
    display: none;
}
/*end template styles */


/* The cell where you can add a user or group has no proper width. */
.ms-core-form-section .ms-table {
    display: table;
}


/* responsive - Larger that iPad 2 Landscape */
@media (min-width: 1025px) {
    /*fix ribbon back to normal*/
    #suiteBar {
        display: table-row;
        height: 30px;
    }

    #suiteBarLeft, #suiteBarRight {
        display: table-cell;
        width: 100%;
    }

    #suiteBarRight {
        width: auto;
    }

        #suiteBarRight .ms-core-deltaSuiteBarRight {
            float: none;
        }
    /*end ribbon*/

    /*search box*/
    .header .searchbox {
        display: block;
        float: right;
        clear: none;
    }
    /*end search box*/

    /*top nav*/
    /*because of the nested nature of OOTB top nav, we must treat the first element differently*/

    /*reset back to in-line for normal view*/
    .nav .ms-core-listMenu-root {
        padding-left: 0px;
    }
    .nav .ms-core-listMenu-horizontalBox, #ctl00_PlaceHolderTopNavBar_TopNav {
        display: block;
        float: none !important;
    }
    .nav ul.static, ul .level1 {
        display: block;
        float: none !important;
    }

    .nav li.static {
        display: block !important;
        width: auto !important;
        float: none !important;
    }

    .navbar-nav li.static > .menu-item {
        display: inline-block;
        padding-top: 10px;
        padding-bottom: 10px;
        margin: 0;
    }

    /* hide or provide padding for down down arrow */
    .nav .ms-core-listMenu-horizontalBox .dynamic-children.additional-background, #ctl00_PlaceHolderTopNavBar_TopNav .dynamic-children.additional-background{
        padding-right: 20px;
        display: inline;
        background-image: url("/_layouts/15/images/menu-down.gif");
    }

    /* we need to override where SP is placing dynamic nav items */
    .nav ul.dynamic {
        margin:0;
    }
    .nav ul.static > li.dynamic-children > ul.dynamic {
        position: absolute !important;
        top: 40px !important;
        left: 0 !important;
    }

    .nav ul.dynamic > li {
        min-width: 150px;
        position: relative;
        white-space: nowrap;
    }

        .nav ul.dynamic > li:first-child {
            border-top: 0 transparent none;
        }

    .nav li.dynamic-children.hover > ul.dynamic {
        display: block !important;
    }

    .nav li.dynamic > .menu-item {
        line-height: 7px;
        margin: 0;
    }

    .nav .ms-core-listMenu-horizontalBox .dynamic .dynamic-children.additional-background {
        background-image: url("/_layouts/15/images/menu-right.gif");
    }
    /*3rd level +*/
    .nav ul.dynamic > li.dynamic-children > ul {
        position: absolute !important;
        top: 0 !important;
        left: 100% !important;
    }
    ul .level2{
	padding: 5px;
	min-width: 0px;
	white-space: normal;
	}
	ul .level3{
	padding:0px;
	white-space: normal;
	}

    /*end top nav*/
}

@media (min-width: 1240px) {
    /*show the edit nav link again for larger devices*/
    .nav ul.root > li.ms-navedit-editArea {
        display: inline-block;
    }
    .nav .ms-navedit-editLinksText {
        /* height: 47px; */
        line-height: 1em;
        padding: 10px 0 10px 10px;
        display: block;
    }
}

/*end responsive*/

/* Sane BS3 Defaults*/
[data-name=QuickLaunch] .affix {
    left: 0;
    z-index: 200;
}

/* Collapse nav at different point */
@media (max-width: 1024px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        max-height: none;
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-collapse.collapse.in {
        display: block!important;
    }
    .navbar-nav {
        margin: 7.5px -15px;
    }
    .navbar li {
		display: block !important;
		float: none !important;
	}
	li .dynamic{
		position: relative !important;
}
    /*
        Makes ipad nav weird
    .navbar-nav>li {
        float: none;
    }
        */
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }

}

/*
 * Off Canvas
 * --------------------------------------------------
 */

.toggle-offcanvas {
    display:none;
}

@media (max-width: 1200px) {

    .toggle-offcanvas {
        display:block;
    }

    #s4-workspace {
        overflow-x: hidden;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .row-offcanvas {
        position: relative;
        -webkit-transition: all .25s ease-out;
        -moz-transition: all .25s ease-out;
        -o-transition: all .25s ease-out;
        transition: all .25s ease-out;
    }

    .row-offcanvas-right {
        right: 0;
    }

    .row-offcanvas-left {
        left: 0;
    }

    .row-offcanvas-right .sidebar-offcanvas {
        right: -50%; /* 6 columns */
    }

    .row-offcanvas-left:not(.active) .sidebar-offcanvas {
        left: -1000px; /* hide */
    }
    .row-offcanvas-left.active .sidebar-offcanvas {
        left: -50%; /* 6 columns */
    }

    .row-offcanvas-right.active {
        right: 50%; /* 6 columns */
    }

    .row-offcanvas-left.active {
        left: 50%; /* 6 columns */
    }

    .sidebar-offcanvas {
        position: absolute;
        top: 0;
        width: 50%; /* 6 columns */
        margin-left:15px;
    }
}

/* Keep stuff from leaking out of div */
.jumbotron {
    overflow: auto;
}

label+.radio, label+.checkbox {
    margin-top: 0;
}

/* extras */
.col-centered {
    float: none;
    margin: 0 auto;
}