/*
 * Small devices - Tablets (768px)
*/
@media (max-width: 991px) {
    body {
        padding-top: 101px;
    }
    body.header-menu-open {
        padding-top: 0;
    }
    header,header.sticky {
        position: fixed;
        top:0; left: 0;
        width: 100%;
        height: auto; max-height: 100%;
        z-index: 1000;
    }
    body.header-menu-open header {
        position: relative !important;
    }
    body.header-menu-open #backdrop {
        display: block;
    }
    header.transition, header .transition {
        -webkit-transition: none;
        -moz-transition: none;
        -ms-transition: none;
        -o-transition: none;
        transition: none;
    }
    header #logo, header.sticky #logo {
        display: block;
        float: left;
        position: relative;
        max-width: 50%; max-height: 100%;
        margin: 21px 23px;
        text-align: left;
        overflow: visible;
    }
    header .navbar {
        margin-bottom: 0;
    }
    header .navbar-header > * {
        padding: 11px 14px;
        margin: 26px 22px 0 0;
    }

    header .navbar-collapse {
        padding: 0;
        max-height: none;
    }

    header #menu-primary {
        margin: 0;
        height: auto;
    }
    header #tyler-navigation.text-fit {
        max-height: none;
    }

    header ul li {
        display: block;
        position: relative;
        background: #3d3d3d;
        border-bottom: 1px solid #35aadc;
        color: #fff;
        text-align: left;
    }
    header > ul li.expand {
        background-color: #5c5c5c;
    }

    header ul ul {
        position: relative;
    }
    header ul ul ul {
        display: block;
    }
    header ul ul li {
        background-color: #818181;
        border: none;
    }

    h2 + .btn-header, .btn-group-header {
        margin-top: 0;
    }

    /* heading */
    .heading .nav {
        width: 20%;
        font-size: 30px;
        white-space: nowrap;
    }
    .heading .nav a {
        color: #fff;
        margin: 0 8px;
    }

    .row.row-sm,.row.row-xs {
        margin-top: -15px;
        margin-bottom: -15px;
    }
    .row.row-sm > *[class^=col-md], .row.row-sm > *[class^=col-lg],
    .row.row-xs > *[class^=col-sm], .row.row-xs > *[class^=col-md], .row.row-xs > *[class^=col-lg]{
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .widget {
        margin-bottom: 3em;
    }

    header #menu-primary > .menu-item-has-children .expand-children{
        font-size: 2em;
        position: absolute;
        top: -1px;
        right: 15px;
        font-weight: 300;
    }
}

/*
 * Extra small devices - Phones (<768px)
*/

@media (max-width: 767px) {
    html, body {
        font-size: 14px;
    }
    body {
        padding-top: 65px;
    }
    header #logo, header.sticky #logo {
        margin: 16px 0 0 9px;
    }
/*    header #logo img, header.sticky #logo img {
        max-height: 33px;
    }
*/
    header .navbar-header > * {
        padding: 11px 14px;
        margin: 10px;
    }
    header .navbar-toggle [class^=icon] {
        margin-top: 3px;
        margin-bottom: -3px;
    }
}