/* PRIMARY LAYOUT STYLING */

/* RESETS */
html {
    font-size: 13px;
}
body {
   background-color: #e9ecef;
}
body .bkg-main {
   background-color: #eee;
}

.form-control,
.breadcrumb,
.btn,
.btn-sm {
    border-radius: 0;
}
    .form-control:focus,
    .form-control {
        color: #000;
    }

.form-group > label {
    color: dimgray;
    font-size: 0.8rem;
    margin-bottom: 0;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    margin-top: 1rem;
}

.page-content h1 {
    font-size: 2rem;
}

.page-content h2 {
    font-size: 1.5rem;
}

.page-content h3 {
    font-size: 1.2rem;
}

.page-content h4 {
    font-size: 1.1rem;
}

.page-content .back-link a {
    padding: 12px 120px 12px 0;
}

.fixed-top {
    /* z-index:unset; */
}

.hidden {
    display: none !important;
}

/* Appliaction info box */
.app-info {
    position: fixed;
    bottom: 0;
    right: 20px;
    font-size: 10px;
    color: #bbb;
    z-index: 100;
    /* background-color: rgba(255,255,255,0.5); */
    pointer-events: none;
}

/* centered layout (vertical + horizonta) - for identity pages */
.layout-centered {
    height: 100%;
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .layout-centered .panel {
        padding: 1rem;
        background-color: rgba(255,255,255,0.8);
    }

/* form placed on light background */
.form-light .form-control {
    border-color: #a5a5a5;
}

.validation-summary-errors,
.field-validation-error {
    display: inline-block;
    margin-top: -1px;
    color: #dc3545;
    background-color: #FFF;
    border: 1px solid #ced4da;
    border-top-style: dotted;
    padding: 0.2rem 0.5rem;
    font-size: 0.9em;
}

.form-light .field-validation-error {
    border-color: #a5a5a5;
}

.validation-summary-errors {
    display: block;
    margin-bottom: 1rem;
    border: none;
    background-color: #dc3545;
    color: #FFF !important;
}

.form-light .validation-summary-errors ul {
    margin: 0;
}

/* Application top menu and page layout */
body.hide-app-bar {
    padding-top: 0 !important;
}

body:not(.layout-simple) {
    padding-top: 50px;
    overflow: hidden;
    height: 100%;
}

html:not(.layout-simple) {
    height: 100%;
}

    html:not(.layout-simple) #wrapper {
        height: 100%;
    }

/* app-menu */


.navbar {
    padding: 0 10px;
    height: 50px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    transition: top 0.3s ease-in, opacity 0.3s ease-in;
}

    .navbar > .dropdown > .btn {
        font-size: 1rem;
        background-color: transparent;
    }

    .navbar .btn.main-action {
        padding: 5px;
    }

.navbar-theme {
    background-color: #757575;
}

    .navbar-theme a {
        color: #FFF;
    }

    .navbar-theme .dropdown-menu {
        background-color: #343a40;
        color: #FFF;
        border-style: none;
        border-top-style: solid;
        border-radius: 0;
    }

    .navbar-theme .dropdown-item {
        color: #FFF;
    }

        .navbar-theme .dropdown-item button {
            color: #FFF;
            padding: 0;
            background: none;
            border: none;
        }

        .navbar-theme .dropdown-item:focus,
        .navbar-theme .dropdown-item:hover {
            background-color: #000;
        }

    .navbar-theme .navbar-brand {
        color: #FFF;
    }

    .navbar-theme > .dropdown .btn {
        color: #FFF;
    }

        .navbar .btn:hover {
            background-color: rgba(0,0,0,0.05);
        }

.navbar-brand {
    padding: 0;
    margin: 0;
    margin-left: 10px;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #dcdcdc;
}

    .navbar-brand .second-line,
    .navbar-brand .first-line {
        font-size: 1rem;
        line-height: 1;
        font-weight: 300;
    }

    .navbar-brand .first-line {
        font-weight: bold;
    }

.navbar .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    font-size: 1rem;
}

.navbar .breadcrumb-item + .breadcrumb-item::before {
    content: "\203A";
}

.navbar-theme .breadcrumb-item:last-child,
.navbar-theme .breadcrumb-item.active {
    color: #FFF;
}

.navbar-theme .breadcrumb-item + .breadcrumb-item::before,
.navbar-theme .breadcrumb-item,
.navbar-theme .breadcrumb a {
    color: #dcdcdc;
}


.navbar-toggler-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 20px;
    height: 21px;
}

    .navbar-toggler-icon > i {
        width: 100%;
        height: 2px;
        background-color: #FFF;
    }

.navbar-toggler-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 20px;
    height: 21px;
}

.close-icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    position: relative;
    background-color: transparent;
    border-color: #000;
}
.close-icon:before,
.close-icon:after {
    position: absolute;
    display: block;
    top:50%;
    left:0;
    margin-top: -1px;
    content: '';
    height: 0;
    width: 100%;
    /* background-color: transparent; */
    border-top: 2px solid transparent;
    border-color: inherit;
    z-index: 1;
}
.close-icon:before {
    transform: rotate(-45deg);
}
.close-icon:after {
    transform: rotate(45deg);
}

.chevron-arrow-icon {
    display: inline-block;
    border-color: #000;
    border-right: 3px solid black;
    border-bottom: 3px solid black;
    width: 10px;
    height: 10px;
    transform: translate(2px, 0) rotate(-225deg);
    position: relative;
}

.arrow-back-icon {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    color: #000;
    box-sizing: border-box;
    width: 13px;
    height: 13px;
    margin: 5px;
    border-width: 3px 3px 0 0;
    border-style: solid;
    transform: rotate(-135deg);
}

.arrow-back-icon:before {
    right: 0;
    top: -2.5px;
    position: absolute;
    height: 3px;
    box-shadow: inset 0 0 0 32px;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    width: 150%;
    -webkit-transform-origin: right top;
    transform-origin: right top;       
}
.arrow-back-icon:before,
.arrow-back-icon:after {
    content: "";
    box-sizing: border-box;
}

.dropdown-hamburger .dropdown-toggle:after {
    display: none;
}

.dropdown-hamburger .dropdown-toggle {
    background-color: transparent;
    border-color: #FFF;
}

.dropdown-hamburger > .btn {
    border: none;
    padding-bottom: 4px;
}

.navbar .user-avatar {
    width: 32px;
    height: 32px;
    display: none;
}

/* breadcrumbs */
.breadcrumb {
    border-radius: 0;
    margin-bottom: 0;
    padding: 0.4rem 15px;
}
.breadcrumb-item + .breadcrumb-item {
    padding-left: 0;
}
.breadcrumb-item {
    padding-right: 0.5rem;
}

.page-content {
    height: 100%;
    overflow: auto;
    background-color: #FAFAFA;
}

.page-content > .breadcrumbs-bar {
    display: none;
}


/* preloader, modal */
.modal-back,
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .preloader:before {
        content: '';
        display: block;
        width: 50px;
        height: 50px;
        border: 4px solid rgba(0,0,0,.2);
        border-radius: 50%;
        border-top-color: #343a40;
        animation: spin 1s ease-in-out infinite;
        -webkit-animation: spin 1s ease-in-out infinite;
    }

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

/* modals (dialogs, prompts) */
.modal-back {
    background-color: rgba(0,0,0,0.8);
    overflow-y: scroll;
    z-index: 1050;
    display: block;
}

.modal-back.modal-prompt {
    z-index: 1100;
}

.modal-dialog {
}

/* vue animations */
.fade-enter-active, .fade-leave-active {
    transition: opacity .5s;
}

.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
    opacity: 0;
}

.menu-slide-enter-active, .menu-slide-leave-active {
    transition: opacity .5s;
}

.menu-slide-enter, .menu-slide-leave-to /* .fade-leave-active below version 2.1.8 */ {
    opacity: 0;
}


/* vue data table styling */
.vbt-table-wrapper thead tr:first-child th {
    padding: 0;
    border-top: 0;
}


/* toast */
.toast-container {
    padding-top: 5rem;
}

/* side bar menu */
.side-bar {
    position: fixed;
    top: 50px;
    left: 0;
    z-index: 1000;
    width: 250px;
    height: calc( 100% - 50px);
    transition: left 0.2s linear;
    display: flex;
    flex-direction: column;
}

.navbar-theme.side-bar {
    background-color: #FFF;
}

    .navbar-theme.side-bar a {
        color: #000;
    }

    .navbar-theme.side-bar .back-link {
        padding:0;
    }

        .navbar-theme.side-bar .back-link a {
            color: #007bff;
            width: 100%;
            height: 100%;
            display: block;
            padding: 0.6rem 1rem;
        }

        .back-symbol:after {
            font-size: 1.3rem;
            content: '\2039';
        }

        #side-bar ~ .bottom-menu,
        #side-bar ~ .page-content {
            margin-left: 250px;
            transition: margin 0.2s linear;
        }

    .side-bar > .menu-list {
        flex-grow: 2;
        overflow-y: auto;
    }

    .side-bar .menu-list {
        list-style: none;
        padding: 0;
        /* padding-left: 1rem; */
        /* border-top: 1px solid #ddd; */
        width: 100%;
        /* transition: all 0.5s ease-in-out; */
    }

        .side-bar .menu-list li {
            display: block;
            overflow: hidden;
            position: relative;
            font-weight: normal;
            /* border-top: 1px solid #FFF; */
        }

    .side-bar > .menu-list > li {
        border-bottom: 1px dotted #ddd;
    }

    .side-bar.emphasized > .menu-list > li {
        font-weight: bold;
        text-transform: uppercase;
    }

    .side-bar .menu-list > li li > .menu-item-text {
        padding-left: 2rem;
    }

    .side-bar .menu-list > li li li > .menu-item-text {
        padding-left: 3rem;
    }

    .side-bar .menu-list > li li li li > .menu-item-text {
        padding-left: 4rem;
    }

    .side-bar > .menu-list {
        padding-left: 0;
        height: auto;
        opacity: 1;
    }

    .side-bar li:not(.expanded) > .menu-list {
        height: 0;
        overflow: hidden;
        opacity: 0;
    }

    .side-bar .menu-item-icon {
        width: 50px;
        height: 50px;
        display: none;
    }

    .side-bar .menu-item-text:hover,
    .side-bar .menu-item-toggle:hover,
    .side-bar.navbar-theme .menu-item-icon:hover {
        background-color: rgba(0,0,0,0.1);
    }

    .side-bar .menu-item-text {
        padding: 0.5rem 3.1rem 0.5rem 1rem;
        display: block;
        font-size: 1rem;
        line-height: 1.6rem;
    }

    .side-bar li.selected > .menu-item-text {
        font-weight: bold;
    }

    .side-bar .menu-item-toggle {
        position: absolute;
        right: 0;
        top: 0;
        width: 2.6rem;
        height: 2.6rem;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255,255,255,0.5);
        font-weight: bold;
        font-size: 1.2rem;
    }

        .side-bar .menu-item-toggle:focus {
            box-shadow: inset 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        }

    .side-bar > * {
        padding: 1rem;
        margin: 0;
    }

    .side-bar .menu-header {
        background-color: #f1f1f1;
        font-weight: bold;
        color: #444;
    }

    .side-bar.emphasized .menu-header {
        font-size: 1.5rem;
        padding: 0.5rem 1rem;
    }

    .side-bar.navbar-theme .menu-toggle {
        background-color: #757575;
    }

    .side-bar .menu-toggle {
        cursor: pointer;
        position: relative;
        min-height: 30px;
    }

        .side-bar .menu-toggle .btn {
            top: 0;
            right: 0;
            position: absolute;
            background-color: transparent;
            width: 50px;
            height: 30px;
            transition: all 0.3s ease-in-out;
            text-align: center;
        }

    .side-bar .btn .icon {
        position: absolute;
        font-size: 38px;
        line-height: 38px;
        font-weight: 300;
        top: -8px;
        right: 14px;
    }

    @keyframes hideIcon {
        0% {
            opacity: 0;
            transform: translateY(30px);
        }

        100% {
            opacity: 1;
            transform: translateY(0px);
        }
    }

    .side-bar.navbar-theme .menu-toggle .btn {
        color: #FFF;
    }

    .side-bar.navbar-theme .menu-toggle:hover .btn {
        background-color: rgba(255,255,255,0.1);
    }

    .side-bar .menu-toggle:hover .btn {
        width: 100%;
    }

    .side-bar .menu-toggle .icon {
        animation: none;
    }
    .side-bar .menu-toggle:hover .icon {
        animation: menuToggleIcon 0.6s ease-out;
        transition: all 0.2s;
        animation-iteration-count: 2;
    }

    @keyframes menuToggleIcon {
        0% {
            opacity: 1;
        }
        20% {
            opacity: 0.4;
        }
        40% {
            opacity: 1;
        }
        60% {
            opacity: 0.4;
        }
        80% {
            opacity: 1;
            right: 20px;
        }
    }

    .side-bar .menu-toggle .dismiss {
        display: none;
    }    

.bottom-menu ~ .page-content {
    height: calc(100% - 50px)
}

.page-content {
    height: 100%;
    overflow-y: scroll;
    background-color: #FAFAFA;
    z-index: 0;
    background-color: rgb(239, 239, 239);
}

/* shadows */
.shadowed .side-bar {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
}

.shadowed .bottom-menu {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.16);
}

.shadowed .app-menu,
.shadowed .app-menu .dropdown-menu {
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.16);
}

/* list-group-item */
.list-group-item-action {
    cursor: pointer;
}

.list-group-item .item-action {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0.5rem 1rem;
}

/* bottom-menu */

.bottom-menu {
    position: fixed;
    bottom: 0;
    background-color: rgba(255,255,255,0.4);
    width: 100%;
    height: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 1rem;
    z-index: 10;
}

@media (min-width: 769px) {
    .side-bar-off .side-bar {
        left: -200px !important;
    }

    .side-bar-off #side-bar ~ .bottom-menu,
    .side-bar-off #side-bar ~ .page-content {
        margin-left: 50px;
    }

    .side-bar-off .side-bar .menu-item-icon {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .side-bar-off .side-bar .menu-item-text,
    .side-bar-off .side-bar > .menu-list > li > ul > li > ul {
        display: none;
    }

    .side-bar-off .side-bar > .menu-list > li > ul > li .menu-item-icon {
        height: 30px;
    }

    .side-bar-off .side-bar > .menu-list {
        align-self: flex-end;
        width: 50px;
    }

    .side-bar-off .side-bar .menu-header {
        display: none;
    }

    .side-bar-off .menu-list .menu-item-toggle {
        display: none;
    }

    .side-bar-off .side-bar .menu-toggle:hover .btn {
        width: 50px;
    }

    .side-bar [data-on],
    .side-bar-off .side-bar [data-off] {
        display: block;
    }

    .side-bar-off .side-bar [data-on],
    .side-bar [data-off] {
        display: none;
    }    
    /* hide content app-menu for desktop */
    body.content-mode .page-content .app-menu {
        visibility: hidden;
        height: 0;
        overflow: hidden;
    }
    
}
/* media queries */
@media (max-width: 768px)  {
    /* app navigation visiblity */
    body.content-mode {
        padding-top: 0;
    }

    body.content-mode > .app-menu {
        top: -50px;
        opacity: 0;
        transition: none;
    }

    body.content-mode .side-bar {
        left: -320px;
        opacity: 0;
    }
    /* navbar */    
    .navbar-brand {
        border: none;
    }
    .navbar .breadcrumbs-bar {
        display: none;
    }
    .page-content > .breadcrumbs-bar {
        display: block;
        margin-bottom: 0.5rem;
    }

    .page-content > .breadcrumbs-bar ol li:last-child {
        /* display: none; */
        width: 100%;
        font-size: 1.5rem;
        font-weight: bold;
        height: 2rem;
    }

    .page-content > .breadcrumbs-bar ol li:last-child:before {
        display: none;
    }

    .page-content h1.content-title {
        display: none;
    }

    body:not(.content-mode) .side-bar-backdrop {
        position: absolute;
        width: 100vw;
        background-color: rgba(0,0,0,0.3);
        height: 100vh;
        top: 0;
        left: 0;
        z-index: 900;
    }

    .side-bar .menu-toggle .icon {
        display: none;
    }

    .side-bar .menu-toggle .btn {
       width: 100%;
    }

    .side-bar .menu-toggle .dismiss {
        display: flex;
        color: #FFF;
        width: 100%;
        justify-content: center;
        align-items: center;
        line-height: 1rem;
    }
    .side-bar .menu-toggle .close-icon {
        width: 1rem;
        height: 1.5rem;
        border-color: #FFF;
        margin-left: 3px;
    }
    #side-bar ~ .bottom-menu,
    #side-bar ~ .page-content {
        margin-left: 0;
    }    
}

@media (max-width: 425px), (max-height: 350px) {
    .app-info {
        display: none;
    }
    .navbar .user-avatar {
        display: inline-block;
    }
    .navbar .user-name {
        display: none;
    }    
    .navbar {
        height: 36px;
        /* position: static; */
    }
    .page-content h1 {
        font-size: 20px
    }
    body:not(.layout-simple) {
        padding-top: 36px;
    }
    body.content-mode:not(.layout-simple) {
        padding-top: 0;
    }
    .side-bar {
        top: 36px;
        height: calc( 100% - 36px);
    }
    .side-bar-off .side-bar {
        left: 0;
    }
    .breadcrumb-item {
        max-width: 100%;
        height: 20px;
        overflow: hidden;
    }
}

@media (max-width: 375px) {
    .side-bar {
        min-width: 100%;
    }    
}

/* cards layout */

.card-bucket {
    width: 100%;
    margin: auto;
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
}

.card {
    border: 1px solid #EAEAEA;
    border-radius: 0;
    position: relative;
    margin-bottom: 1rem;
}

.shadowed .card {
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 2px 1px -1px rgba(0,0,0,.12);
    border: none;
}

.card:before {
    content: '';
    display: block;
}

.card > .card-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-1 {
    width: calc(100% - 2*10px);
}

.card-1_2 {
    width: calc(50% - 0.5rem);
}

.card-1_3 {
    width: calc(33.3334% - 2*10px);
}

.card-2_3 {
    width: calc(2*33.3334% - 2*10px);
}

.card-sqr.card-1 {
    width: calc(50% - 2*10px);
}

.card-sqr:before {
    padding-top: 100%;
}

.card-rect:before {
    padding-top: 50%;
}


@media (max-width: 1310px) {
    .card-bucket {
        width: 680px;
    }
    /*
    .side-bar-off .card-bucket {
        width: 1020px;   
    }
    */
    .card-sqr.card-1,
    .card-1_2,
    .card-1_3,
    .card-2_3 {
        width: calc(50% - 0.5rem);
    }

    .card-rect.card-2_3,
    .card-rect.card-1_2 {
        width: 100%;
        /* max-height: 300px; */
    }

    .card-sqr.card-1,
    .card-1_2,
    .card-1_3,
    .card-2_3 {
        min-height: 300px;
    }
}

@media (max-width: 980px) {
    .card-bucket,
    .side-bar-off .card-bucket {
        width: 100%;
        justify-content: center;
    }

    .card-sqr.card-1,
    .card-1_2,
    .card-1_3,
    .card-2_3 {
        width: 100%;
    }
}

@media (max-width: 768px) {
}

@media (max-width: 425px) {
    .card-1_2.card-sm-vertical {
        max-height: none;
    }

        .card-1_2.card-sm-vertical:before {
            padding-top: 120%;
        }
}


/* input group special behavior */
.input-group.auto-width {
    align-items: flex-end;
}

    .input-group.auto-width > .form-control,
    .input-group.auto-width > .form-control-plaintext,
    .input-group.auto-width > .custom-select,
    .input-group.auto-width > .custom-file {
        -ms-flex: 0 1 auto;
        flex: 0 1 auto;
    }

/* form validation */
.valid-error {
    color: red;
}


/* grid system */
.col-lg-std {
    max-width: 1000px;
}

/* fill heigth helper */
.fill-height {
    height: 100%;
}