﻿body.fixed-nav {
    padding-top: 70px;
}

body.fix-window {
    position: relative;
    overflow: hidden;
}

[class^=d-][style="display: none;"] {
    display: none !important;
}

#mainNav {
    height: 70px;
}

#bodyWrap {
    height: calc(100vh - 70px);
}

body > .container-fluid {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.card.mb-12 + .card.mb-3 {
    margin-top: 1rem;
}

#logo {
    width: 56px;
    max-width: 100%;
    height: auto;
}

.table-height {
    height: 50vh;
}
/* button style */
.btn-theme-main {
    background-color: #2F4871;
    font-size: 0.875rem;
}

.btn-theme-main,
.btn-theme-main:hover {
    color: #fff;
}

.input-theme {
    position: relative;
}

.input-style,
.input-style:focus {
    border: 0;
    outline: 0;
}

.input-style {
    width: 100%;
    height: 40px;
    padding: 0 2rem;
    border-bottom: 1px solid #2D649B;
    background-color: transparent;
}

    .input-style:focus {
        border-bottom: 1px solid #0389F7;
    }

.input-icon {
    position: absolute;
    left: 1px;
    top: 50%;
    transform: translateY(-50%);
}

    .input-icon svg {
        fill: #2d649b;
    }

.input-style:focus+.input-icon svg {
    fill: #0389F7;
}
/* LeftMenuVue */
li.nav-item > ul {
    list-style: none;
    padding-left: 20px;
}

#navbarResponsive {
    position: sticky;
    top: 70px;
    left: 0;
    height: calc(100vh - 70px);
}

#navbarNav {
    position: relative;
    width: 240px;
    height: calc(100vh - 130px);
    padding-bottom: 1rem;
    overflow: auto;
}

.sidenav-toggled #navbarNav {
    width: auto;
}

#navbarNav .nav-link {
    padding-right: 1rem;
}

li.nav-item > ul {
    flex-wrap: wrap;
}

.sidenav-toggler {
    position: absolute;
    left: 0;
    bottom: 0;
}

#sidenavToggler {
    height: 55px;
    background-color: #212529;
}

#navbarResponsive.sidenav-toggled .nav-link-text {
    display: none;
}

.navbar-sidenav .nav-link-collapse.more-link:after {
    float: right;
    content: "";
    font-family: 'element-icons';
}

.navbar-sidenav .nav-link-collapse.more-link[aria-expanded="true"]:after {
    transform: rotate(90deg);
}
/* table */
.table th,
.table td {
    vertical-align: middle!important;
}

.table-tiny {
    /* override Bootstrap's width */
    display: table-cell;
    width: inherit !important;
}

    .table-tiny td,
    .table-tiny th {
        width: 1% !important;
        white-space: nowrap !important;
    }

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f1faf7;
}

.table-hover > tbody > tr:nth-of-type(odd):hover {
    background-color: #00000013;
}
/* card */
.card-red .card-header {
    border-top: 5px solid #b86247;
    border-bottom-color: #b86247;
    background-color: #fff;
}

.card-purple .card-header {
    border-top: 5px solid #956f7c;
    border-bottom-color: #956f7c;
    background-color: #fff;
}

.card-green .card-header {
    border-top: 5px solid #90a288;
    border-bottom-color: #90a288;
    background-color: #fff;
}

.card-header.bg-success {
    background-color: #def0d8 !important;
}

.arrow-down,
.arrow-up {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .25rem;
    border-style: solid;
    border-width: 12px 8px 0 8px;
    border-color: #88cbb5 transparent transparent transparent;
}

.arrow-up {
    transform: rotate(180deg);
}
/* custom element */
.overflow-x-auto {
    overflow-x: auto;
}

.pill-left {
    height: 32px;
    border-radius: 16px 0 0 16px;
}

.pill-tip {
    display: flex;
    width: 12px;
    border-radius: 4px 0 0 4px;
    background-color: #007bb7;
}

.bottle-item {
    width: 50px;
    height: 50px;
}

    .bottle-item::before,
    .bottle-item > img {
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        transform: translate(-50%, -50%);
    }

    .bottle-item::before {
        content: '';
        display: block;
        position: absolute;
        border: 1px solid #dee2e6;
        border-radius: 50%;
    }

    .bottle-item > img {
        width: 40px;
        height: auto;
    }

.rounded-groups .el-input__inner {
    border-radius: .25rem 0 0 .25rem;
}

.rounded-groups .input-group-text {
    border-radius: 0 .25rem .25rem 0;
}
/* fancybox */
.fancybox-content,
.fancybox-iframe {
    border-radius: 4px;
}
/* color */
.bg-gray {
    background-color: #ebebeb;
}

.bg-green {
    background-color: #def0d8;
}

.bg-green-dark {
    background-color: #c8e1c4;
}

.bg-blue {
    background-color: #b6e4fc;
}

/*cursor*/
.cursor-pointer {
    cursor: pointer;
}

@media screen and (max-width: 991.98px) {
    #navbarResponsive {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 10;
    }

    #sidenavToggler {
        display: none;
    }

    #navbarNav {
        width: auto;
        height: auto;
        max-height: calc(100vh - 70px);
    }
    /*li.nav-item > ul {
        display: flex;
    }*/
    li.nav-item > ul > li {
        display: flex;
        padding: 0 4px;
    }
}

