/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 60px;
}


/*
 * Global add-ons
 */

.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
    border: 0;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 1000;
    display: block;
    overflow: hidden;
    background-color: #151E26;
    margin: 0;
    height: 46px;
    -webkit-transition: all 1s;
    transition: all 1s;
}

.hamburger-button{
    display: inherit;
    z-index: 1000;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #151E26;
    width: 100%;
    text-align: center;
    height: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hamburger-button a{
    width: 100%;
    color: #B8C7CE;
    font-size: 15px;
    line-height: 1em;
    display: block;
    padding: 15px 0px;
}

.include-page .container-fluid{
    overflow: auto;
    min-height: 100%;
}

.hamburger-button a:hover, .hamburger-button a:focus{
    color: #FFF;
}
.admin-sub-page-position {
    top: 46px;
}
.open-status {
    height: calc(100% - 60px);
    -webkit-transition: all 1s;
    transition: all 1s;
}
@media (max-width: 991px) {
    .sidebar {
        width: 100%;
    }
    .include-page .container-fluid{
        min-height: calc( 100% - 46px );
        margin-top: 46px;
    }
    .admin-include{
        overflow-y: hidden;
    }
}
@media (min-width: 992px) {
    .hamburger-button{
        display: none;
    }
    .sidebar {
        position: fixed;
        top: 60px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: #151E26;
        border-right: 1px solid #eee;
        height: 100%;
    }
    .admin-sub-page-position {
        top: 0px;
    }
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 0px;
    margin-left: -20px;
}
.nav-sidebar > li > a {
    font-size: 13px;
    padding: 15px 15px;
    line-height: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #B8C7CE;
}


.nav-sidebar > li:first-of-type > a {
    border-top: none;
}

.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: #fff;
    background-color: #2D3E50;
}

.nav-sidebar > li > a:hover,
.nav-sidebar > li > a:focus {
    text-decoration: none;
    color: #fff;
    background-color: transparent !important;
}

.nav-sidebar > li > a i {
    padding-right: 1em;
}
/*
 * Main content
 */

.main {
    padding: 20px;
}
@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}
.main .page-header {
    margin-top: 0;
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}
.placeholders h4 {
    margin-bottom: 0;
}
.placeholder {
    margin-bottom: 20px;
}
.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

@media (max-width: 992px){
    .col-sm-offset-3 {
        margin-left: 0 !important;
    }
    .col-sm-9 {
        width: 100%;
    }
}