﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification\ 
for details on configuring this project to bundle and minify static web assets. */
body {
    /*padding-top: 50px;*/
    padding-bottom: 20px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Carousel */
.carousel-caption p {
    font-size: 20px;
    line-height: 1.4;
}

/* Make .svg files in the carousel display properly in older browsers */
.carousel-inner .item img[src$=".svg"] {
    width: 100%;
}

/* QR code generator */
#qrCode {
    margin: 15px;
}

.navbar-brand {
    height: 72px;
    font-size: 28px;
}

    .navbar-brand > img {
        height: 72px;
        margin-top: -15px;
        margin-left: -15px;
    }

.navbar-toggle {
    height: 72px;
}

@media screen and (max-width: 768px) {
    .side-menu .side-menu-container > .navbar-nav {
        top: 64px;
    }
}

.side-menu .side-menu-container > .navbar-nav {
    overflow-y: auto;
    padding-bottom: 73px;
    max-height: 100vh;
}

/* Hide/rearrange for smaller screens */
@media screen and (max-width: 767px) {
    /* Hide captions */
    .carousel-caption {
        display: none;
    }
}


.docbox {
    position: relative;
    min-height: 130px;
    margin-bottom: 20px;
    padding: 20px;
    background: #F9F9F9;
    border: 1px solid #DDDDDD;
    border-radius: 4px;
}

.request-doc-body {
    padding: 10px 20px;
    margin: 0 0 20px;
    border-left: 5px solid #94C6F1;
}

.menu-dropdown.active > .collapse {
    display: initial;
}

@media (max-width: 768px) {
    .request-doc-body {
        display: none;
    }
}


li.L0, li.L1, li.L2, li.L3,
li.L5, li.L6, li.L7, li.L8 {
    list-style-type: decimal !important;
}

:focus {
    outline: none;
}

.row {
    margin-right: 0;
    margin-left: 0;
}
/*
        Sometimes the sub menus get too large for the page and prevent the menu from scrolling, limiting functionality
        A quick fix is to change .side-menu to

        -> position:absolute

        and uncomment the code below.
        You also need to uncomment

        -> <div class="absolute-wrapper"> </div> in the html file

        you also need to tweek the animation. Just uncomment the code in that section
        --------------------------------------------------------------------------------------------------------------------
        If you want to make it really neat i suggest you look into an alternative like http://areaaperta.com/nicescroll/
        This will allow the menu to say fixed on body scoll and scoll on the side bar if it get to large
    */
/*.absolute-wrapper{
        position: fixed;
        width: 300px;
        height: 100%;
        background-color: #f8f8f8;
        border-right: 1px solid #e7e7e7;
    }*/

.side-menu {
    position: fixed;
    width: 300px;
    height: 100%;
    background-color: #f8f8f8;
    border-right: 1px solid #e7e7e7;
}

    .side-menu .navbar {
        border: none;
    }

    .side-menu .navbar-header {
        width: 100%;
        border-bottom: 1px solid #e7e7e7;
        background-color: lightgrey;
    }

    .side-menu .navbar-nav {
        width: 100%;
        padding: 0;
    }

        .side-menu .navbar-nav .active a {
            background-color: transparent;
            margin-right: -1px;
            border-right: 5px solid #e7e7e7;
        }

        .side-menu .navbar-nav li {
            display: block;
            width: 100%;
            border-bottom: 1px solid #e7e7e7;
        }

            .side-menu .navbar-nav li a {
                padding: 15px;
            }

                .side-menu .navbar-nav li a .glyphicon {
                    padding-right: 10px;
                }

    .side-menu .menu-dropdown {
        border: 0;
        margin-bottom: 0;
        border-radius: 0;
        background-color: transparent;
        box-shadow: none;
    }

        .side-menu .menu-dropdown .caret {
            float: right;
            margin: 9px 5px 0;
        }

        .side-menu .menu-dropdown .indicator {
            float: right;
        }

        .side-menu .menu-dropdown > a {
            border-bottom: 1px solid #e7e7e7;
        }

        .side-menu .menu-dropdown .panel-body {
            padding: 0;
            background-color: #f3f3f3;
        }

            .side-menu .menu-dropdown .panel-body .navbar-nav {
                width: 100%;
            }

                .side-menu .menu-dropdown .panel-body .navbar-nav li {
                    padding-left: 15px;
                    border-bottom: 1px solid #e7e7e7;
                }

                    .side-menu .menu-dropdown .panel-body .navbar-nav li:last-child {
                        border-bottom: none;
                    }

            .side-menu .menu-dropdown .panel-body .panel > a {
                margin-left: -20px;
                padding-left: 35px;
            }

            .side-menu .menu-dropdown .panel-body .panel-body {
                margin-left: -15px;
            }

                .side-menu .menu-dropdown .panel-body .panel-body li {
                    padding-left: 30px;
                }

                    .side-menu .menu-dropdown .panel-body .panel-body li:last-child {
                        border-bottom: 1px solid #e7e7e7;
                    }

    .side-menu #search-trigger {
        background-color: #f3f3f3;
        border: 0;
        border-radius: 0;
        position: absolute;
        top: 0;
        right: 0;
        padding: 15px 18px;
    }

    .side-menu .brand-name-wrapper {
        min-height: 50px;
    }

        .side-menu .brand-name-wrapper .navbar-brand,
        .side-menu .brand-name-wrapper .navbar-brand img {
            display: inline-block;
        }

    .side-menu #search {
        position: relative;
        z-index: 1000;
    }

        .side-menu #search .panel-body {
            padding: 0;
        }

            .side-menu #search .panel-body .navbar-form {
                padding: 0;
                padding-right: 50px;
                width: 100%;
                margin: 0;
                position: relative;
                border-top: 1px solid #e7e7e7;
            }

                .side-menu #search .panel-body .navbar-form .form-group {
                    width: 100%;
                    position: relative;
                }

                .side-menu #search .panel-body .navbar-form input {
                    border: 0;
                    border-radius: 0;
                    box-shadow: none;
                    width: 100%;
                    height: 50px;
                }

                .side-menu #search .panel-body .navbar-form .btn {
                    position: absolute;
                    right: 0;
                    top: 0;
                    border: 0;
                    border-radius: 0;
                    background-color: #f3f3f3;
                    padding: 15px 18px;
                }
/* Main body section */

/* Hide/rearrange for smaller screens */
@media screen {
    .side-body {
        margin-left: 310px;
    }
}
/* small screen */
@media (max-width: 768px) {
    


    .side-menu {
        position: relative;
        width: 100%;
        height: 0;
        border-right: 0;
        border-bottom: 1px solid #e7e7e7;
    }

        .side-menu .brand-name-wrapper .navbar-brand {
            display: inline-block;
        }
    /* Slide in animation */
    @-moz-keyframes slidein {
        0% {
            left: -300px;
        }

        100% {
            left: 10px;
        }
    }

    @-webkit-keyframes slidein {
        0% {
            left: -300px;
        }

        100% {
            left: 10px;
        }
    }

    @keyframes slidein {
        0% {
            left: -300px;
        }

        100% {
            left: 10px;
        }
    }

    @-moz-keyframes slideout {
        0% {
            left: 0;
        }

        100% {
            left: -300px;
        }
    }

    @-webkit-keyframes slideout {
        0% {
            left: 0;
        }

        100% {
            left: -300px;
        }
    }

    @keyframes slideout {
        0% {
            left: 0;
        }

        100% {
            left: -300px;
        }
    }

    
    /* Slide side menu*/
    /* Add .absolute-wrapper.slide-in for scrollable menu -> see top comment */
    .side-menu-container > .navbar-nav.slide-in {
        -moz-animation: slidein 300ms forwards;
        -o-animation: slidein 300ms forwards;
        -webkit-animation: slidein 300ms forwards;
        animation: slidein 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }

    .side-menu-container > .navbar-nav {
        /* Add position:absolute for scrollable menu -> see top comment */
        position: fixed;
        left: -300px;
        width: 300px;
        top: 43px;
        height: 100%;
        border-right: 1px solid #e7e7e7;
        background-color: #f8f8f8;
        -moz-animation: slideout 300ms forwards;
        -o-animation: slideout 300ms forwards;
        -webkit-animation: slideout 300ms forwards;
        animation: slideout 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
    /* Uncomment for scrollable menu -> see top comment */
    /*.absolute-wrapper{
            width:285px;
            -moz-animation: slideout 300ms forwards;
            -o-animation: slideout 300ms forwards;
            -webkit-animation: slideout 300ms forwards;
            animation: slideout 300ms forwards;
            -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
        }*/
    @-moz-keyframes bodyslidein {
        0% {
            left: 0;
        }

        100% {
            left: 300px;
        }
    }

    @-webkit-keyframes bodyslidein {
        0% {
            left: 0;
        }

        100% {
            left: 300px;
        }
    }

    @keyframes bodyslidein {
        0% {
            left: 0;
        }

        100% {
            left: 300px;
        }
    }

    @-moz-keyframes bodyslideout {
        0% {
            left: 300px;
        }

        100% {
            left: 0;
        }
    }

    @-webkit-keyframes bodyslideout {
        0% {
            left: 300px;
        }

        100% {
            left: 0;
        }
    }

    @keyframes bodyslideout {
        0% {
            left: 300px;
        }

        100% {
            left: 0;
        }
    }
    /* Slide side body*/
    @media screen {
        .side-body {
            margin-left: 5px;
            margin-top: 70px;
            position: relative;
            -moz-animation: bodyslideout 300ms forwards;
            -o-animation: bodyslideout 300ms forwards;
            -webkit-animation: bodyslideout 300ms forwards;
            animation: bodyslideout 300ms forwards;
            -webkit-transform-style: preserve-3d;
            transform-style: preserve-3d;
        }
    }

    .body-slide-in {
        -moz-animation: bodyslidein 300ms forwards;
        -o-animation: bodyslidein 300ms forwards;
        -webkit-animation: bodyslidein 300ms forwards;
        animation: bodyslidein 300ms forwards;
        -webkit-transform-style: preserve-3d;
        transform-style: preserve-3d;
    }
    /* Hamburger */
    .navbar-toggle {
        border: 0;
        float: left;
        padding: 18px;
        margin: 0;
        border-radius: 0;
        background-color: #f3f3f3;
    }
    /* Search */
    #search .panel-body .navbar-form {
        border-bottom: 0;
    }

        #search .panel-body .navbar-form .form-group {
            margin: 0;
        }

    .navbar-header {
        /* this is probably redundant */
        position: fixed;
        z-index: 3;
        background-color: #f8f8f8;
    }
    /* Dropdown tweek */
    .menu-dropdown .panel-body .navbar-nav {
        margin: 0;
    }
}


@media print {
    .side-body {
        margin-left: 0;
    }

    .container-fluid {
        margin: 0;
        padding: 0;
    }

    .docbox {
        margin: 0;
        padding: 0;
        border: none;
        background: none;
    }

    h1, h2, h3, h4, strong {
        page-break-after: avoid;
        page-break-before: avoid;
    }
    table, pre, ul {
        page-break-inside: avoid;
        page-break-before: avoid;
    }
    pre{
        max-height: initial !important;
    }


}
