/*------------------------------------------------------------------
[1. Layouts]
*/
html {
    height: 100%;
}
/* Body Triggers for layout options
------------------------------------------------------------------
*/
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: $color-master-lightest;
    -moz-osx-font-smoothing: grayscale;
    &.fixed-header {
        .header {
            position: fixed;
            left: 0;
            top: 0;
        }
    }
    &.mobile{
        .sidebar-menu {
            overflow: scroll;
             -webkit-overflow-scrolling: touch;
        }
        .sidebar-menu > ul {
            height: auto !important;
            overflow: visible !important;
            -webkit-overflow-scrolling: touch !important;
        }
        .page-sidebar .sidebar-menu .menu-items {
            li{
                &:hover{
                    a{
                        color:$color-menu-light;
                    }
                    .icon-thumbnail{
                        color:$color-menu-light !important;
                    }
                }
                &.active, &.open{
                    & > a{
                        color:#fff;
                    }
                    & > .icon-thumbnail{
                        color:#fff;
                    }
                }
            }
        }
        .drager{
            overflow: auto;
            -webkit-overflow-scrolling: touch;
        }
    }
    &.sidebar-visible{
        .page-sidebar{
            .scroll-element{
                visibility: visible;
            }
            .menu-items {
                .icon-thumbnail{
                    @include translate3d(-14px,0,0);
                }
            }
            .sidebar-header .sidebar-header-controls{
                @include translate3d(48px,0,0);
            }
        }

    }
    &.no-header{
        .page-container .page-content-wrapper .content{
            padding-top: 0px;
        }
        .header{
            border-bottom-color: transparent;
        }
    }
    &.dashboard{
        background: $dashboard-background;
        .page-container{
            background: $dashboard-background;
        }
    }
    &.menu-pin{
        .overlay{
            padding-left:0;
            .overlay-brand{
                margin-left: 0;
            }
        }
    }
}

.zig-zag-top:before{
    background: linear-gradient(-45deg, #ffffff 16px, #ffffff 16px, #ffffff 16px, transparent 0), linear-gradient(45deg, #ffffff 16px, transparent 0);
    background-position: left top;
    background-repeat: repeat-x;
    background-size: 22px 32px;
    content: " ";
    display: block;
    height: 32px;
    width: 100%;
    position: relative;
    bottom: 0px;
    left:0;
}

.zig-zag-bottom{
    margin: 32px 0;
    margin-top: 0;
    background: #1ba1e2;
}

/* Page Loader
------------------------------------
*/
.pace{
    .pace-progress{
        background: $color-success;
        height: 3px;
    }
    .pace-progress-inner{
        box-shadow: none;
    }
    .pace-activity{
        -webkit-animation: none;
        animation: none;
        top: 73px;
        background: url('#{$base-img-url}/progress/progress-circle-success.svg') no-repeat top left;
        background-size: 100% auto;
        margin: 0 auto;
        border-width: 0;
        border-radius: 0;
        width: 28px;
        height: 40px;
        right: 19px;
    }
}
/* Header
------------------------------------
*/
.header{
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    height: $layout-header-height;
    width: 100%;
    padding: 0 20px 0 0;
    z-index: $zIndex-navbar;
    background-color: #fff;
    border-bottom: 1px solid fade($color-master-light, 70%);
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
     -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    a{
        color: $color-master;
        &:hover,&:active,&:focus{
            color: $color-master;
        }
    }
    //Used only in Boxed layout
    .header-inner{
        height: inherit;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -ms-flex-align: center;
        align-items: center;
         -webkit-box-pack: justify;
        -webkit-justify-content: space-between;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    &.transparent {
        background-color: transparent !important;
    }
    .brand {
        vertical-align: middle;
        width: $layout-sidepanel-width;
        text-align: center;
    }


    .bubble{
        border-radius:100%;
        height:12px;
        width:12px;
        background-color:$color-danger;
        color:$color-white;
        position:absolute;
        top:-6px;
        float:right;
        right:-5px;
    }
    .notification-list{
        display:inline-block;
        line-height: 23px;
    }
    .search-link{
        display:inline-block;
        margin-left:15px;
        color : $color-master;
        opacity: .7;
        font-size:14px;
        vertical-align: middle;
        line-height: 12px;
        font-family:$base-font-family;
        i{
            margin-right:15px;
            font-size:16px;
        }
        &:hover{
           opacity: 1;
        }
    }
    .pg{
        font-size: 16px;
    }
    ul{
        li{
            line-height: 12px;
            vertical-align: middle;
        }
    }
    .dropdown{
        line-height: 12px;
    }
}
/* Bootstrap navbar
------------------------------------
*/
.navbar{
    min-height: 50px;
    position: relative;
    margin-bottom: 20px;
    border: 1px solid transparent;
    top: -1px;
}
.navbar-nav > li {
    & > a{
        position: relative;
        display: block;
        padding: 10px 15px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}
.navbar-default{
    background-color: $color-white;
    .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus{
    background-color:transparent;
    }
    .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:hover, .navbar-default .navbar-nav>.active>a:focus{
          background-color:transparent;
    }

}

.navbar-toggle{
    border-radius: 0;
    background-color: transparent !important;
}

.navbar-default .navbar-nav>li>a {
    color: $color-master;
}
/* Main Menu Sidebar
------------------------------------
*/
.page-sidebar{
    width: $layout-sidepanel-width;
    background-color:$color-menu;
    z-index: $zIndex-sidebar;
    left:$layout-sidepanel-width-collapsed - $layout-sidepanel-width;
    position: fixed;
    bottom: 0;
    top: 0;
    right: auto;
    overflow: hidden;
-webkit-transition: -webkit-transform 400ms cubic-bezier($menu-bezier);
   -moz-transition: -moz-transform 400ms cubic-bezier($menu-bezier);
     -o-transition: -o-transform 400ms cubic-bezier($menu-bezier);
        transition: transform 400ms cubic-bezier($menu-bezier);
-webkit-backface-visibility: hidden;
    a,button {
        color:$color-menu-light;
        &:hover,&:active{
            color:$color-menu-link-hover;
        }
        &:visited,&:focus{
           color:$color-menu-light;
        }
    }
    .scroll-element{
        visibility: hidden;
    }
    .sidebar-header{
        /* Side-bar header */
        display: block;
        height: $layout-header-height;
        line-height:$layout-header-height;
        background-color:$color-menu-darker;
        border-bottom: 1px solid mix($color-menu-darker, #000, 90%);
        color: $color-white;
        width: 100%;
        padding: 0 20px;
        padding-left: 30px;
        clear: both;
        z-index: 10;
        position: relative;
        .sidebar-header-controls{
            display: inline-block;
            -webkit-transition: -webkit-transform 0.4s cubic-bezier($menu-bezier);
            transition: transform 0.4s cubic-bezier($menu-bezier);
            -webkit-backface-visibility: hidden;
        }
        .sidebar-slide-toggle i{
            @include transition(all 0.12s ease);
        }
        .sidebar-slide-toggle.active i{
             @include rotate(-180deg);
        }
    }
    .close-sidebar{
        position: absolute;
        right: 19px;
        top: 14px;
        padding: 9px;
        z-index: 1;
        & > i{
            color: rgba(255,255,255,0.57);
        }
    }
    .sidebar-overlay-slide{
        /* Side-bar Top Slider */
        width: 100%;
        height: 100%;
        background-color:$color-menu-darker;
        display:block;
        z-index: 9;
        padding: $layout-header-height+20 20px 20px 20px;
        &.from-top{
            top:-100%;
            position: absolute;
            @include transition(all .2s ease);
            &.show{
                @include translate(0,100%);
            }
        }
    }
    .sidebar-menu{
        /* Side-bar Menu */
        height: calc(100% - 50px);
        position: relative;
        width: 100%;
        .outer-tab-nav-section {
            display: inline-block;
            width: 45px;
            position: absolute;
            height: 100%;
            background-color: #0aa699 !important;
        }
         .menu-items {
            /* Side-bar Menut Items */
            list-style: none;
            margin: 0;
            padding: 0;
            margin: 0;
            padding: 0;
            position: relative;
            overflow: auto;
            -webkit-overflow-scrolling: touch;
            height: calc(100% - 10px);
            width: 100%;
            li{
                &:hover, &.open, &.active{
                    & > .icon-thumbnail{
                        color: $color-menu-link-hover;
                    }
                    & > a{
                        color: $color-menu-link-hover;
                    }
                }
                & > a{
                    white-space: nowrap;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    width: 65%;
                }
            }
            & > li {
                display: block;
                padding:0;
                clear: right;

                &:after, &:before{
                    display: table;
                    content: " ";
                    clear: both;
                }

                & > a {
                    font-family: Arial, sans-serif;
                    display: inline-block;
                    padding-left: 32px;
                    min-height: $menu-icon-size;
                    line-height: $menu-icon-size;
                    font-size: 14px;
                    clear: both;
                    &.open {
                        background: #313131;
                    }
                    & > .arrow {
                        float: right;
                        padding-right: 30px;
                        &:before {
                            float: right;
                            display: inline;
                            font-size: 16px;
                            font-family: FontAwesome;
                            height: auto;
                            content: "\f104";
                            font-weight: 300;
                            text-shadow: none;
                            @include transition(all 0.12s ease);
                        }
                        &.open {
                            &:before {
                                @include rotate(-90deg);
                            }
                        }
                    }
                    & > .badge {
                        margin-top: 12px;
                    }
                    & > .title{
                        float: left;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;
                        width: 65%;
                    }
                    & > .details{
                        font-size: 12px;
                        opacity: 0.4;
                        display: block;
                        clear: both;
                    }
                    &.detailed{
                        & > .title{
                            line-height: 28px;
                        }
                        & > .details{
                            line-height: 16px;
                        }
                    }
                }
                &.active {
                    & > ul {
                        &.sub-menu {
                            display: block;
                        }
                    }
                }
                & > .icon-thumbnail{
                    &:first-letter {
                        text-transform: uppercase;
                    }
                }
                & > ul {
                    &.sub-menu {
                        & > li {
                            ul {
                                &.sub-menu {
                                    li {
                                        padding-left: 10px;
                                        padding-right: 3px
                                    }
                                    .icon-thumbnail {
                                        width: 25px;
                                        height: 25px;
                                        line-height: 25px;
                                        font-size: 10px;
                                    }
                                }
                            }
                        }
                        li {
                            & > a {
                                & > .arrow {
                                    &:before {
                                        float: right;
                                        margin-top: 1px;
                                        margin-right: 20px;
                                        display: inline;
                                        font-size: 16px;
                                        font-family: FontAwesome;
                                        height: auto;
                                        content: "\f104";
                                        font-weight: 300;
                                        text-shadow: none;
                                        @include transition(all 0.12s ease);
                                    }
                                    &.open {
                                        &:before {
                                            float: right;
                                            margin-top: 1px;
                                            margin-right: 18px;
                                            display: inline;
                                            font-family: FontAwesome;
                                            height: auto;
                                            font-size: 16px;
                                            @include rotate(-90deg);
                                            font-weight: 300;
                                            text-shadow: none;
                                        }
                                    }
                                }
                            }

                        }
                    }
                }
                ul {
                    &.sub-menu {
                        display: none;
                        list-style: none;
                        clear: both;
                        margin: 0 0 10px 0;
                        background-color: $color-menu-dark;
                        padding: 18px 0 10px 0;
                        & > li {
                            background: none;
                            padding: 0px 20px 0 40px;
                            margin-top: 1px;
                            &:hover{
                                & > .icon-thumbnail{
                                    color: $color-menu-link-hover;
                                }
                            }
                            & > a {
                                display: inline-block;
                                padding: 5px 0px;
                                font-size: 13px;
                                font-family: Arial, sans-serif;
                                white-space: normal;
                            }
                            .icon-thumbnail {
                                width: 30px;
                                height: 30px;
                                line-height: 30px;
                                margin: 0;
                                background-color: $color-menu;
                                font-size: 14px;
                            }
                        }
                    }
                }
            }
        }
        .muted {
            color: #afafaf;
            opacity:.45;
        }
    }
    .icon-thumbnail [class^="bg-"], [class*="bg-"]{
        color: #fff;
    }
}
[data-toggle-pin="sidebar"]{
    & > i:before{
        content: "\f10c";
    }
}
/* Sidebar icon holder
------------------------------------
*/
.icon-thumbnail {
    display: inline-block;
    background: $color-menu-dark;
    height: $menu-icon-size;
    width: $menu-icon-size;
    line-height: $menu-icon-size;
    text-align: center;
    vertical-align: middle;
    position: relative;
    left: 0;
    float: right;
    margin-right: 14px;
    color:$color-menu-light;
    font-size: 16px;
    -webkit-transition: -webkit-transform 0.4s cubic-bezier($menu-bezier);
    transition: transform 0.4s cubic-bezier($menu-bezier);
    -webkit-backface-visibility: hidden;
    font-family: "Segoe UI","Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing:antialiased;
    -webkit-text-size-adjust:100%;
    -ms-text-size-adjust:100%;
    font-weight: bold;
    &.icon-12 {
        height: 12px;
        width: 12px;
        line-height: 12px;
    }
    &.icon-25 {
        height: 25px;
        width: 25px;
        line-height: 25px;
    }
    &.icon-35 {
        height: 35px;
        width: 35px;
        line-height: 35px;
    }
    &.icon-50 {
        height: 50px;
        width: 50px;
        line-height: 50px;
    }
    &.icon-75 {
        height: 75px;
        width: 75px;
        line-height: 75px;
    }
    &.icon-100 {
        height: 100px;
        width: 100px;
        line-height: 100px;
    }
    & > i{
        font-size: 14px;
    }
    & > svg{
        width: auto;
        height: auto;
        display: inline;
    }
}

.nav-collapse {
    &.collapse {
        height: 100%  !important;
    }
}

/* Secondary App Menu */
.toggle-secondary-sidebar{
    display: none;
}

.secondary-sidebar {
    background: $sidebar-background-color;
    width: $secondary-sidebar-width;
    float: left;
    padding-left: 47px;
    height: 100%;
    position: fixed;
    &.not-fixed{
        position: inherit;
    }
    &.open{
        position: fixed;
        visibility: hidden;
        display: block;
    }
    .btn-compose {
        font-size: 13px;
        font-weight: normal;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }
    .menu-title {
        color: rgba($color-menu-light, .70);
        font-size: 10.8px;
        font-family: 'Montserrat';
        font-weight: normal;
        letter-spacing: 0.03em;
    }
    .main-menu {
        padding-left: 0;
        & > li{
            list-style: none;

            &.active{
                & > a{
                    color: $color-complete;
                    &:hover{
                       color: $color-complete;
                    }
                    & > .title{
                        position: relative;
                        &:after{
                            background: $color-complete;
                            border-radius: 50%;
                            content: "";
                            height: 7px;
                            position: absolute;
                            right: -14px;
                            top: 6.5px;
                            width: 7px;
                        }

                    }
                }
            }
            a{
                font-size: 14px;
                color: $color-menu-light;
                line-height: 37px;
                &:hover{
                    color: #fff;
                }
                & > .title{
                    i{
                            margin-right: 6px;
                            opacity: .9;
                        }
                }
            }
        }
    }
    .sub-menu{
        margin-left: 23px;
        li{
            list-style: none;
            padding: 0;
            &.active{
                a{
                    color: #fff !important;
                }
            }
            a{
                color: rgba($color-menu-light,.89);
                line-height: 25px;
                &:hover{
                    color: #fff;
                }
            }
        }
    }
    .sub-menu li a, .main-menu li a {

        .badge {
           background: transparent;
           font-size: 13px;
           color: $color-menu-light;
           line-height: 25px;
        }
    }
    &.light{
        background-color: #fff;
        border-right: 1px solid $form-control-border-color;
        .menu-title {
            color: fade($color-menu-light, 60%);
            opacity: 1;
        }
        .icon-thumbnail{
            background-color: transparent;
        }
        .main-menu {
            li{
                a{
                    &:hover{
                         color: $color-master-dark;
                    }

                }
                &.active{
                   & >  a{
                        color: $color-master-dark;
                    }
                }
            }
        }
        .sub-menu{
            margin-top: 5px;
            li{
                &.active{
                    a{
                        color: $color-master-dark !important;
                    }
                }
                a{
                    color: fade($color-menu-light,60%);
                    &:hover{
                        color: $color-master-dark;
                    }
                }
            }
        }
    }
}

.split-view{
    position: relative;
    height: 100%;
    .split-list {
        float: left;
        width: 360px;
        background: #fff;
        height: 100%;
        overflow-y: auto;
        position: relative;
        -webkit-overflow-scrolling: touch;
        border-right: 1px solid $color-master-light;
        @include transition(all .5s ease);
        .list-view-fake-header{
            font-size: 10.8px !important;
            line-height:normal !important;
        }
        &.slideLeft{
            @include translate(-100%, 0);
        }
        .list-refresh{
            position: absolute;
            right : 18px;
            top: 4px;
            color: $color-master;
            opacity: .34;
            z-index: 101;
            i{
                font-size: 11px;
            }
        }
        .list-view-fake-header, .list-view-group-header{
            background: $color-master-lighter;
            height: 28px;
            color: rgba($color-master, .70);
            text-transform: uppercase;
            font-size: 10.8px;
            padding-left: 12px;
            padding-top: 6px;
            letter-spacing: 0.07em;
            width: 100%;
        }

        .item {
            height: 111px;
            list-style: none;
            position: relative;
            border-bottom: 1px solid rgba($color-master-light, .70);
            cursor: pointer;
            .inline {
                width: 230px;

                & > * {
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    font-family: arial;
                }
            }
            .recipients {
                letter-spacing: 0.01em;
                padding-bottom: 2px;
            }
            .checkbox{
                float: left;
                clear: left;
                display: none;
                max-width: 32px;
            }
            .subject {
                font-family: 'Helvetica';
                font-size: 14.33px;
                color: $color-info;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                height: 38px;
                display: -webkit-box;
                white-space: normal;
                line-height: 18px;
            }
            .body {
                // color: #75828e;
                font-size: 12.6px;
                opacity: .52;
                height: 22px;
            }
            .datetime {
                color: $color-master-darkest;
                font-family: arial;
                font-size: 11.1px;
                position: absolute;
                right: 20px;
                top: 15px;
                opacity: 0.46;
            }
        }
    }

    .split-details {
        position: relative;
        overflow: auto;
        height: 100%;
        .no-result{
           bottom: 0;
            left: 0;
            margin-top: -34px;
            opacity: 0.5;
            position: absolute;
            right: 0;
            text-align:center;
            top: 50%;
        }
        .actions{
            height: 50px;
            float: left;
            li{
                list-style: none;
                position: relative;
                &:last-child:after{
                    display: none;
                }
                &:after{
                    content: "";
                    height: 14px;
                    position: absolute;
                    right: -4px;
                    top: 18px;
                    width: 1px;
                    background: rgba(0,0,0,.07);
                }
                a{
                    font-size: 13.1px;
                    color: $color-master;
                    font-weight: 600;
                    padding: 0 13px;
                    line-height: 50px;
                    white-space: nowrap;
                }
            }
        }

    }
}
.inner-content{
    margin-top: 0px;
    padding: 0px;
    overflow: auto;
    min-height: 100%;
    margin-left: $secondary-sidebar-width;
}

/* Quick View
------------------------------------
*/
.quickview-wrapper{
    position:fixed;
    right:-$layout-right-quickview-width;
    top:0;
    width:$layout-right-quickview-width;
    background:#fff;
    bottom:0;
    z-index:1000;
    box-shadow:0 0 9px rgba(191,191,191,.36);
    border-left: 1px solid rgba(222,227,231,.56);
    -webkit-transition: -webkit-transform 400ms cubic-bezier($menu-bezier);
    transition: transform 400ms cubic-bezier($menu-bezier);
    -webkit-backface-visibility: hidden;
    -ms-backface-visibility:hidden;
    &.open{
        @include translate3d(-100%,0,0);
    }
    .quickview-toggle{
        position: absolute;
        right: 12px;
        top: 2px;
        color: $color-menu-light;
        padding: 6px;
        opacity: 0.4;
        &:hover{
            opacity: 1;
        }
    }
    .nav-tabs{
        /* Quickview Tabs */
        background-color: $color-menu;
        position: relative;
        padding: 0 43px;
        & > li{
            & > a{
                padding:11px;
                color: $color-menu-light;
                border: 0;
                text-align: center;
                font-size: 11px;
                font-weight: bold;
                min-width: 62px;
                line-height: 1.4;
                & > span{
                    opacity: 0.6;
                }
                &:hover{
                    & > span{
                        color: $color-menu-light;
                        opacity: 1;
                    }
                }
            }
            &.active{
                & > a, & > a:hover, & > a:focus{
                    background-color: transparent;
                    border: 0;
                    color: mix($color-menu-light, #fff, 37%);
                    opacity: 1;
                }
            }
        }
        ~ .tab-content{
            position:absolute;
            padding: 0;
            left: 0;
            right: 0;
            top: 38px;
            bottom: 0;
            height: auto;
            & > div{
            height:100%;
            }
            ul{
                margin:0;
                padding:0;
                li{
                    list-style:none;
                }
            }
            .quickview-notes{
                /* Quickview Notes */
                background:#fbf9e3;
                a, button{
                    color:#968974;
                }
                .list{
                    position:relative;
                    .toolbar{
                        height:50px;
                        padding:0 25px;
                        ul {
                            margin-top:10px;
                            & > li{
                                display:inline-block;
                                height:auto;
                                a{
                                    height:22px;
                                    line-height:22px;
                                    display:block;
                                    padding:0 5px;
                                    &:hover, &.selected{
                                        background:#968974;
                                        color:#FBF9E3;
                                    }
                                }
                            }
                        }
                        .btn-remove-notes{
                            background:transparent;
                            bottom: 8px;
                            display: block;
                            left: 50%;
                            margin-left: -40%;
                            position: absolute;
                            width: 83%;
                            border:1px solid #968974;
                        }
                    }
                    & > ul {
                        padding:0;
                        li{
                            cursor:pointer;
                            height:42px;
                            padding:0 25px;
                            display:block;
                            clear:both;
                            .left{
                                float:left;
                                width:65%;
                                height:100%;
                                padding-top:9px;
                                .checkbox{
                                    display:none;
                                    float:left;
                                    label{
                                        margin-right:0;
                                        vertical-align:text-top;
                                    }
                                }
                                p{
                                    margin:0;
                                    font-size:13px;
                                    font-weight:bold;
                                    width: 100px;
                                    white-space: nowrap;
                                    overflow: hidden;
                                    text-overflow: ellipsis;
                                    vertical-align:middle;
                                    display:inline-block;
                                }
                            }
                            .right{
                                font-size:10.5px;
                                text-align:right;
                                width:35%;
                                line-height: 41px;
                                .date{
                                    margin-right:10px;
                                }
                            }
                            &:hover{
                                background:#f4ecd1;
                            }

                        }
                    }
                }
                .note{
                    /* Quickview Note */
                    background-image:url('#{$base-img-url}/notes_lines.png');
                    background-repeat:repeat-y;
                    background-position:27px top;
                    & > div{
                        display:table; height:100%; width:100%;
                    }
                    .toolbar {
                        background:#fcfcfa;
                        height:35px;
                        width:100%;
                        display:table-row;
                        box-shadow: 0 1px 1px -1px rgba(0, 0, 0, 0.33);
                        & > li{
                            display:inline-block;
                            border-right: 1px solid #EDECEC;
                            float: left;
                            line-height: 37px;
                            padding: 0;
                            text-align: center;
                            width: 40px;
                            height:auto;
                            & > a{
                                color:#a5a5a5;
                                display:block;
                                &:hover{
                                    background:#fffaf6;
                                }
                                &.active{
                                    color:#333;
                                    background:#f9f1ea;
                                }
                            }
                        }
                        &:after{
                            position:absolute;
                            content:"";
                            width:100%;
                        }
                    }
                    .body {
                            display:table-row;
                            height:100%;
                            & > div{
                                display:table;
                                height:100%;
                                width: 100%;
                                padding:0 20px 0 45px;
                                white-space: normal;
                            }
                            .top{
                                height:50px;
                                display:table-row;
                                clear:both;
                                line-height:50px;
                                text-align:center;
                                & > a{
                                    float:left;
                                    color:#b0b0a8;
                                    margin-left:10px;
                                }
                                & > span{
                                    font-style:italic;
                                    color:#b0b0a8;
                                    font-size:11px;
                                }
                            }
                            .content{
                                display:table-row;
                                height:100%;
                                form{
                                    height:100%;

                                }
                                .quick-note-editor{
                                    font-size:12px;
                                    &:focus{
                                        outline: none;
                                    }
                                    &::-moz-selection{
                                        background:#fef8ae;
                                    }
                                    &::selection{
                                        background:#fef8ae;
                                    }
                                }

                            }
                    }
                }
            }
        }
    }
}

/* Page Container
------------------------------------
*/
.page-container {
    width:100%;
    height:100%;
    padding-left: $layout-sidepanel-width-collapsed;
    .page-content-wrapper{
        min-height: 100%;
        position: relative;
        .content {
            /* Content holder */
            z-index: 10;
            padding-top: 102px;
            padding-bottom: 30px;
             min-height: 100%;
            @include transition(all 0.3s ease);
            &.full-width{
                width: 100%;
            }
            .content-inner{
                display: inline-block;
                vertical-align: top;
                height: 100%;
                padding-left: 30px;
                position: relative;
            }
            &:only-child{
                padding-bottom:0px;
            }
            &.overlay-footer{
                padding-bottom:0px;
            }
        }
        .footer{
            /* Footer */
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0px;
            @include transition(left 0.3s ease);
            &.fixed{
                position: fixed;
            }
        }
    }
}
.page-title{
    margin-top: 0px;
}
/* Breadcrumbs
------------------------------------
*/
.breadcrumb {
        font-family: 'Montserrat';
        -webkit-border-radius: 0px;
        -moz-border-radius: 0px;
        border-radius: 0px;
        box-shadow: none;
        background-color: transparent;
        padding: 15px 0;
        margin: 0;
        border: none;
        text-transform:uppercase;
        display: block;
        &.breadcrumb-alt{
          padding: 8px 0;
          text-transform: none;
          font-family:"Segoe UI", Arial, sans-serif;
          a{
            letter-spacing: normal;
            color: #000;
            font-size: 12px !important;
          }
          & > .breadcrumb-item,
          & > .breadcrumb-item.active  {
            letter-spacing: normal;
            opacity: .46;
            color: #000;
            font-size: 12px !important;
          }
        }
        a {
            margin-left: 5px;
            margin-right: 5px;
            font-size: 10.5px !important;
            letter-spacing: 0.06em;
            font-weight: 400;
            color: #7b7d82;
        }
        .breadcrumb-item {
            padding-left:0px;
        }
        & > .breadcrumb-item{
            & + .breadcrumb-item{
                &:before {
                    padding: 0 5px;
                    color: #515050;
                    font-family: FontAwesome;
                    content: "\f105";
                    font-size: 12px;
                    font-weight:bold;
                }
            }
            &.active{
                font-weight: 500;
                color: #0090d9;
                margin-left: 5px;
                margin-right: 5px;
                font-size: 10.5px !important;
                letter-spacing: 0.06em;
                &:before {
                    padding-right: 10px;
                }
            }
        }
}
/* Overlay Search
------------------------------------
*/
.overlay{
  position:fixed;
  left:0;
  right:0;
  top:0;
  bottom:0;
  background:rgba(255,255,255,.95);
  z-index:1010;
  padding-left: 64px;
  overflow:auto;
  .inline-block{
    display:inline-block;
  }
  .overlay-brand{
    margin-left: 7px;
  }
  & > div{
    width:100%;
    height:260px;
    display:block;
    overflow:hidden;
  }
  .has-results{
    overflow: visible;
  }
  .overlay-search{
    font-weight:700;
    font-size: 77px;
    height: 100px;
    letter-spacing: -1.925px;
    line-height: 100px;
    width:100%;
    padding-left:0 !important;
  }
  .overlay-close{
  position:absolute;
  right:20px;
  top:5px;
  }

}

.group-container {
      white-space: nowrap !important;
    .single-group {
      vertical-align: top;
      display: inline-block;
      white-space: normal;
      }
}

.jumbotron{
    position: relative;
    overflow: hidden;
    display: block;
    padding: 0;
        .inner{
            position: relative;
            z-index: 2;
        }
        &.lg{
            height: 600px;
        }

    background-color: $color-master-lighter;
    .cover-photo{
        width: 100%;
        height: inherit;
        overflow: hidden;
        @include transition(opacity .3s ease);
        background-size: cover;
        background-color: $color-success;
        img{
            display:none;
        }
    }
    h1 {
        font-size: 44px;
    }
}

/* Pages Scroll bar
------------------------------------
*/

.scroll{
    position: relative;
    overflow: auto;
}

.scroll-wrapper {
    & > .scroll-element, > .scroll-element div{
        background: none;
        border: none;
        margin: 0;
        padding: 0;
        position: absolute;
        z-index: 10;
    }
    &  > .scroll-element div {
        display: block;
        height: 100%;
        left: 0;
        top: 0;
        width: 100%;
    }
    & > .scroll-element.scroll-x {
        bottom: 2px;
        height: 7px;
        left: 0;
        min-width: 100%;
        width: 100%;
    }

    & > .scroll-element.scroll-y {
        height: 100%;
        min-height: 100%;
        right: 2px;
        top: 0;
        width: 4px;
    }
    & > .scroll-element{
         .scroll-element_outer {
            opacity: 0.3;
        }
        .scroll-element_size {
            background-color: rgba(0,0,0,0.07);
            opacity: 0;
        }
        .scroll-bar {
            background-color:#697686;
        }

        &.scroll-x{
            .scroll-bar {
                bottom: 0;
                height: 4px;
                min-width: 24px;
                top: auto;
            }
            .scroll-element_outer {
                bottom: 0;
                top: auto;
                left: 2px;
                -webkit-transition: height 0.2s;
                transition: height 0.2s;
            }
            .scroll-element_size { left: -4px; }
        }
        &.scroll-y{
             .scroll-bar {
                left: auto;
                min-height: 24px;
                right: 0;
                width: 4px;
            }
            .scroll-element_outer {
                left: auto;
                right: 0;
                top: 2px;
                -webkit-transition: all 0.2s;
                transition: all 0.2s;
            }
            .scroll-element_size { top: -4px; }
        }
    }
    & > .scroll-content{
           box-sizing: inherit !important;
    }
    &.auto-hide{
        & > .scroll-element{
            .scroll-element_track {
                display: none;
            }
        }
    }
}

.scroll-wrapper > .scroll-element.scroll-x.scroll-scrolly_visible .scroll-element_size { left: -11px; }
.scroll-wrapper > .scroll-element.scroll-y.scroll-scrollx_visible .scroll-element_size { top: -11px; }

/* hover & drag */

.scroll-wrapper > .scroll-element:hover .scroll-element_outer,
.scroll-wrapper > .scroll-element.scroll-draggable .scroll-element_outer {
    overflow: hidden;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=70)";
    filter: alpha(opacity=70);
    opacity: 0.7;
}
.scroll-wrapper > .scroll-element:hover .scroll-element_outer .scroll-element_size,
.scroll-wrapper > .scroll-element.scroll-draggable .scroll-element_outer .scroll-element_size {
    opacity: 1;
}
.scroll-wrapper > .scroll-element:hover .scroll-element_outer .scroll-bar,
.scroll-wrapper > .scroll-element.scroll-draggable .scroll-element_outer .scroll-bar {
    height: 100%;
    width: 100%;
}

.scroll-wrapper > .scroll-element.scroll-x:hover .scroll-element_outer,
.scroll-wrapper > .scroll-element.scroll-x.scroll-draggable .scroll-element_outer {
    height: 10px;
    min-height: 7px;
}
.scroll-wrapper > .scroll-element.scroll-y:hover .scroll-element_outer,
.scroll-wrapper > .scroll-element.scroll-y.scroll-draggable .scroll-element_outer {
    min-width: 7px;
    width: 7px;
}

/* Other overides */

.container-fluid {
padding-left: 30px;
padding-right: 30px;

}

.copyright{
    padding: 25px 0;
    border-top: 1px solid fade($color-master-light,70%);
}

.navbar-center, .navbar-center > li{
     float:none;
  display:inline-block;
  *display:inline; /* ie7 fix */
  *zoom:1; /* hasLayout ie7 trigger */
  vertical-align: top;
}

.navbar-nav{
    li a{
        min-width: 50px;
    }
}

.pager{
    margin: 0;
}


.horizontal-app-menu {
    @include flexbox();
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    &.fixed-header {
        //overflow: hidden;
        .header {
            position: fixed;
        }
        .page-container {
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
        }
    }
    .header {
        height: auto;
        border-bottom: none;
        background-color: $color-menu;
        color: $color-menu-light;
        display: block;
        -webkit-flex-shrink: 0;
        -ms-flex-negative: 0;
        flex-shrink: 0;
        .header-inner {
            height: 60px;
            background-color: $color-menu;
            position: relative;
            color: $color-menu-light;
        }
        .header-lg-height {
            height: $header-lg-height;
        }
        .header-md-height {
            height: $header-md-height;
        }
        .header-sm-height {
            height: $header-sm-height;
        }
        .search-link {
            color: $color-menu-light;
        }
        .header-inner {
            .brand.inline {
                position: relative;
                border-right: 1px solid #40444d;
                padding-right: 15px;
                margin-right: 0px;
                width: auto;
                & > img {
                    width: auto;
                }
            }
        }
        .notification-list {
            border: none;
        }
        .title-bar {
            padding-bottom: 18px;
        }
        .page-title {
            color: $color-menu-light;
            font-size: 21px;
            line-height: 21px;
            font-weight: normal;
            margin-bottom: 0;
            margin-left: 15px;
        }
        .bubble {
            top: 1px;
            right: 3px;
        }
        .pg {
            color: $color-menu-light;
            display: block;
        }
    }
    .menu-bar {
        @include flexbox();
        position: relative;
        color: $color-menu-light;
        //Globals Nav Items
        ul {
            margin: 0;
            padding: 0;
            list-style: none;
            @include border-radius(3px);
            li a {
                .arrow {
                    position: relative;
                    @include flex-inline();
                    @include align-items(center);
                    padding-left: 15px;
                    width: 23px;
                    &:before {
                        font-size: 16px;
                        font-family: FontAwesome;
                        height: auto;
                        content: "\f104";
                        font-weight: 300;
                        text-shadow: none;
                        position: relative;
                        top: 2px;
                        @include rotate(-90deg);
                        @include transition(all 0.12s ease);
                    }
                }
            }
            li {
                line-height: 24px;
                .sub-menu {
                    padding: 0;
                    left: 50%;
                    top: 0;
                    position: absolute;
                    visibility: hidden;
                    opacity: 0;
                    min-width: calc(100% + 4px);
                    padding: 18px $menu-padding;
                    background: #fff;
                    z-index: 1;
                    position: absolute;
                    @include box-shadow(0px 0px 16px 0px rgba(0, 0, 0, 0.08));
                    @include translate3d(15px, 0, 0);
                    @include transition(all 0.15s ease-in);
                    li a {
                        min-width: 50px;
                        width: 100%;
                        padding: 4px 0;
                        white-space: nowrap;
                        overflow: hidden;
                        text-overflow: ellipsis;
                        display: block;
                    }
                }
                &:hover {
                    & > .sub-menu {
                        visibility: visible;
                        opacity: 1;
                        @include translate3d(34%, 0, 0);
                    }
                }
            }
        }
        //Level One
        & > ul {
            @include flexbox();
            -webkit-box-orient: horizontal;
            -webkit-box-direction: normal;
            -ms-flex-flow: row nowrap;
            flex-flow: row nowrap;
            & > li {
                -webkit-box-flex: 1;
                -ms-flex: 1 0 auto;
                flex: 1 0 auto;
                @include flex-inline();
                @include align-items(center);
                padding: 0;
                position: relative;
                &:first-child {
                    & > a {
                        padding-left: 0;
                    }
                }
                &:last-child {
                    & > a {
                        padding-right: 0;
                    }
                }
                & > a {
                    padding: 0 20px;
                }
                & > ul {
                    display: none;
                    opacity: 0;
                    list-style: none;
                    border: 0;
                    top: -7px;
                    left: -4px;
                    min-width: calc(100% + 4px);
                    padding: 0 $menu-padding;
                    padding-top: 60px;
                    padding-bottom: 18px;
                    background: #fff;
                    z-index: 1;
                    position: absolute;
                    @include box-shadow(0px 0px 16px 0px rgba(0, 0, 0, 0.08));
                }
                &.open {
                    //Level two and below
                    & > ul {
                        display: block;
                        &:before {
                            content: '';
                            position: absolute;
                            height: 1px;
                            top: $navbar-width + 7px;
                            //width: calc(100% - $menu-padding * 2);
                            background-color: $form-control-border-color;
                        }
                        & > li {
                            padding-left: 0;
                            @include translate3d(0, -10px, 0);
                            opacity: 1;
                            transition: all 0.18s ease;
                            & > a {
                                min-width: 50px;
                                width: 100%;
                                padding: 4px 0;
                                white-space: nowrap;
                                overflow: hidden;
                                text-overflow: ellipsis;
                                @include flexbox();
                                -webkit-box-pack: justify;
                                -webkit-justify-content: space-between;
                                -ms-flex-pack: justify;
                                justify-content: space-between;
                                & > .arrow:before {
                                    @include rotate(180deg);
                                }
                            }
                        }

                    }
                    & > a {
                        @include translate3d(0, -10px, 0);
                        opacity: 0;
                        transition: all 0.18s ease !important;
                    }
                }
                &.opening {
                    & > ul {
                        opacity: 1;
                        & > li {
                            @include translate3d(0, 0, 0);
                            opacity: 1;
                        }
                    }
                    & > a {
                        position: relative;
                        z-index: 10;
                        @include translate3d(0, 0, 0);
                        opacity: 1;
                    }
                }
                &.closing {
                    & > ul {
                        opacity: 0;
                        & > li {
                            @include translate3d(0, -10px, 0);
                            opacity: 0;
                        }
                    }
                    & > a {
                        @include translate3d(0, -10px, 0);
                        opacity: 0;
                    }
                }
            }
            li > a {
                color: $color-menu-light;
            }
        }
    }
    .page-container{
        padding-left:0;
        .page-content-wrapper .content{
            padding-top: 105px;
        }
    }
    .ghost-nav-dropdown{
        top: -7px;
        left: -4px;
        background: #fff;
        z-index: 1000;
        position: absolute;
        @include box-shadow(0px 0px 16px 0px rgba(0, 0, 0, 0.08));
        @include border-radius(3px);
        transition: all 0.18s ease-in;
    }
    //calendar overwrites
    .calendar {
        .calendar-header{
            background-color: transparent;
            padding-left: 0;
            position: relative;
            left: -20px;
        }
        .months .month:first-child{
            padding-left: 0;
        }
        .weeks-wrapper{
            margin-left:0;
            padding-left: 0;
        }
        .week-dragger{
            margin-left:0;
        }
        .calendar-container .grid{
            overflow: hidden;
        }
    }
}

@media (max-width:991px){
  body.horizontal-menu-open{
    .header{
      z-index: $zIndex-quickview;
    }
  }
  .horizontal-menu-backdrop{
    background: rgba(0, 0, 0, .5);
    position: absolute;
    left:0;
    right:0;
    bottom: 0;
    top: 0;
    z-index: $zIndex-quickview - 1;
    opacity: 0;
    transition:opacity .3s ease;
    pointer-events: none;
    &.open{
      opacity: 1;
    }
  }
    .horizontal-app-menu{
        .menu-bar{
            position: fixed;
            top: 0;
            bottom: 0;
            background-color: $color-menu;
            width: 270px;
            right: -270px;
            overflow-y: auto;
            -webkit-transition: -webkit-transform 400ms cubic-bezier($menu-bezier);
            transition: transform 400ms cubic-bezier($menu-bezier);
            -webkit-backface-visibility: hidden;
            -ms-backface-visibility:hidden;

            &.open{
                @include translate3d(-100%,0,0);
            }
            &  > ul{
                flex-flow: column nowrap;
                & > li{
                    a{
                        &:first-child{
                            padding-left: 30px;
                        }
                        &:last-child{
                            padding-left: 35px;
                        }
                    }
                }
            }
            ul {
                width: 100%;
                li{
                    min-height: 45px;
                    @include flexbox();
                    flex-direction: column;

                    &  > ul{
                        padding: 0;
                        overflow: hidden;
                        margin-top: 6px;
                        position: static;
                        background: $color-menu-dark;
                        opacity: 1;
                    }
                    width: 100%;
                    a{
                        padding-left: 35px !important;
                        text-transform: uppercase;
                        width: 100%;
                        line-height: 40px;
                        & > .arrow{
                            float: right;
                        }
                    }
                    &.active{
                      border: 2px solid $color-primary;
                    }
                }
            }
        }
        &[data-pages-direction="slideRight"] {
            right: 0;
        }
        .header .header-sm-height{
          height: 100%;
        }
        .ghost-nav-dropdown{
          display: none;
        }
    }

}

@media (min-width: 980px){
.horizontal-menu{
    .page-content {
        margin-left: 0;
        .content {
            padding-top: 123px;
        }
    }
}
}

.hover-parent {
    .hover-item {
        visibility: hidden;
    }
    &:hover {
        .hover-item {
            visibility: visible;
        }
    }
}

.inline-file-selector {
    .image-container {
        width: 50px;
        height: 50px;
        background-size: cover;
        background-position: center;
        .overlay-preview {
            background-color: rgba(0,0,0,0.2);
            display: none;
        }
        &:hover {
            .overlay-preview {
                display: block;

            }
        }
    }
}

.mfp-close {
    display: none !important;
}

.mfp-figure:after {
	box-shadow: none !important;
	background: none !important;	
}

.profile-picture {
	height: 150px;
    background-size: 75%;
    background-position: center;
    background-repeat: no-repeat;
}

.select2-container {
    width: 100% !important;
}

.select2-container--open {
    z-index: 1050 !important;
}

.select2-container--open .select2-dropdown {
    border-radius: 0px !important;
    border: solid 1px rgba(0, 0, 0, 0.07);
    border-top: none;
    left: -1px;
    margin-top: -25px;
    box-sizing: content-box;
}

.select2-dropdown {
    box-shadow: none !important;
    &.select2-dark {
        background-color: $color-master !important;
        .select2-search--dropdown .select2-search__field {
            background-color: $color-master-dark !important;
            color: $color-master-lightest;
        }
        .select2-results {
            li {
                color: $color-master-lighter !important;
                &.select2-results__option--highlighted {
                    color: $color-white !important;
                    background-color: $color-master-darkest !important;
                }
            }
        }
    }
}

select2-dropdown,
.select2-container--bootstrap .select2-selection.form-control {
    padding-top: 0.8rem !important;
    height: calc(2em + 1.5rem) !important;
}

.select2-container {
    width: 100% !important;
}

.select2-results__option[aria-disabled="true"] {
    display: none;
}

.select2-dark {
    .select2-container--default {
        .select2-selection__arrow b {
            border-color: #fff transparent transparent transparent !important;
        }
    }
    .select2-container--open {
        .select2-selection__arrow b {
            border-color: transparent transparent #fff transparent !important;
        }
    }
}

.side-tab {
    .tab-container {
        border-left: solid 3px transparent !important;
    }
    .active .tab-container {
      border-left: solid 3px $color-primary !important;
    }
}

.ellipsis-line-2 {
  height: 3em;
  line-height: 1.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.slider {
    height: auto;
    animation-name: slideDown;
    -webkit-animation-name: slideDown;

    animation-duration: 1s;
    -webkit-animation-duration: 1s;

    animation-timing-function: ease;
    -webkit-animation-timing-function: ease;

    visibility: visible !important;

    &.close {
        height: 0px !important;
        overflow: hidden;
    }
}

.order-history-border {
    height: .1875rem;
    width: 100%;
    background-position-x: -1.875rem;
    background-size: 7.25rem .1875rem;
    background-image: repeating-linear-gradient(45deg,$color-complete,$color-complete 33px,transparent 0,transparent 41px,$color-primary 0,$color-primary 74px,transparent 0,transparent 82px);
}

.bullet-connector {
    width: 2px;
    height: 100%;
    background: $color-master-light;
    top: 0px;
    left: 18px;
    &.thin{
        width: 1px;
    }
}
.noty_bar {
    .noty_body {
        padding: 15px;
        padding-bottom: 10px;
    }
    .noty_buttons {
        padding: 15px;
        padding-top: 0;
        padding-bottom: 0;
    }
}

.dotted-grid {
    background : radial-gradient(#fff 1px, transparent 2px);
    background-size : 12px 12px;
}

.peelable-corner {
    cursor: pointer;
    &::before {
        content: '';
        display: block;
        width: 30px;
        height: 30px;
        position: absolute;
        left: 0px;
        top: 0px;
        background: $color-white;
        -webkit-transition: 0.5s;
        transition: 0.5s;
        box-shadow: 0 0.5rem 0.5rem rgba(0,0,0,.15)!important;
    }
    &::after {
        content: '';
        display: block;
        width: 30px*1.4;
        height: 30px*1.4;
        position: absolute;
        left: 30px*-0.7;
        top: 30px*-0.7;
        background: $color-master-lightest;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        -webkit-transition: 0.5s;
        transition: 0.5s;
    }
    &:hover {
        &::before {
            width: 50px*1.3;
            height: 50px*1.3;
        }
        &::after {
            width: 50px*1.8;
            height: 50px*1.8;
            top: 50px*-0.9;
            left: 50px*-0.9;
        }
    }
}
