@import url('https://fonts.googleapis.com/css2?family=Prompt&display=swap');

.nav__container {
    background-color: black;
    width: 100%;
    height: 70px;
    float: left;
    display: block;
    margin-bottom: 15px;
}

.nav__container.admin {
    background-color: rgb(235 235 235);
    width: 100%;
    height: 70px;
}


.nav__container .logo {
    width: 200px;
    height: 50px;
    background-image: url(/image/cockpit-logo2.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;
    float: left;
    margin: 10px 0px;
}

.nav__container .bars {
    width: 60px;
    height: 50px;
    display: block;
    float: left;
    margin: 10px 0px;
    line-height: 50px;
    text-align: center;
    outline: none;
    border: 0px;
    transition: all 0.3s;
    cursor: pointer;
}

.nav__container:not(.admin) .bars {
    color: white;
}


.nav__container .logo_admin {
    width: 200px;
    height: 40px;
    background-image: url(/image/bridgestone-logo1.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;
    float: left;
    margin: 15px 0px;
}

.nav__container .dealer_name {
    float: left;
    line-height: 70px;
    color: white;
    font-size: 17px;
    padding-left: 10px;
}

.nav__container.admin .dealer_name {
    color: black;
}

.nav__container .nav_menu {
    float: right;
    color: white;
    display: block;
    height: 70px;
    margin: 16px 15px 0 0;
}

.nav__container.admin .nav_menu {
    color: black;
}

.nav__container .nav_menu .btn-group button.dropdown-toggle {
    min-width: 150px;
}

.nav__container .nav_dealer_select {
    float: right;
    width: auto;
    display: block;
    height: 70px;
    margin: 16px 15px 0 0;
}

.nav__container .nav_dealer_select .nav_menu .btn-group button.dropdown-toggle {
    min-width: 150px;
}

.nav__container .nav_dealer_select .dropdown-menu.show {
    max-height: 500px;
    overflow-y: scroll;
    top: 46px;
    left: -14px;
}


/* sidebar v2 */
.container___center {
    float: left;
    display: block;
    width: 100%;
    margin-top: 20px;
}

.container___left {
    float: left;
    display: block;
    width: 270px;
    transition: all 0.3s;
}

.container___left.to_hide {
    transform: translate3d(-100%, 0px, 0px);
}

.container___right {
    float: left;
    display: block;
    width: calc(100% - 270px);
}

.container___right.to_expand {
    width: calc(100% - 30px);
    position: absolute;
    top: 90px;
    left: 15px;
}


.sidebar_v2 {
    display: block;
    margin-top: -15px;
    /* height          : calc(100vh - 70px); */
    height: auto;
    /* max-height: 986px; */
    max-height: 710px;
    background-color: #ebebeb85;
}

.sidebar_v2 ul li a {
    width: calc(100% - 30px);
    font-size: 16px;
    text-align: left;
    padding-left: 20px;
    border-radius: 0;
    outline: none;
    font-family: 'Sarabun', sans-serif;
    transition: all 0.6s;
    margin: 15px 0px 5px 10px;
    box-shadow: none;
}

.sidebar_v2 ul li a i {
    margin-right: 7px !important;
}

.sidebar_v2 ul li a:focus {
    box-shadow: none;
}

.sidebar_v2 ul li.visible-only-mobile {
    display: none;
}

.sidebar_v2 ul li span.branch_name {
    padding: 28px;
    width: 100%;
    text-align: left;
    display: block;
    border-bottom: 1px solid #c2c2c2;
}

/* admin */
.sidebar_v2.sidebar__admin ul li a:hover,
.sidebar_v2.sidebar__noncockpit ul li a:hover {
    box-shadow: none;
    background-color: #5f5f5f;
    color: white;
    border-radius: 5px;
    box-shadow: rgb(95 95 95 / 40%) 3px 3px,
        rgb(95 95 95 / 30%) 6px 6px,
        rgb(95 95 95 / 20%) 9px 9px,
        rgb(95 95 95 / 10%) 12px 12px,
        rgb(95 95 95 / 5%) 15px 15px;
}

.sidebar_v2.sidebar__admin ul li a.sidebar-menu-active,
.sidebar_v2.sidebar__noncockpit ul li a.sidebar-menu-active {
    background-color: #9f000f;
    color: white;
    border-radius: 5px;
    box-shadow: rgb(159 0 15 / 40%) 3px 3px,
        rgb(159 0 15 / 30%) 6px 6px,
        rgb(159 0 15 / 20%) 9px 9px,
        rgb(159 0 15 / 10%) 12px 12px,
        rgb(159 0 15 / 5%) 15px 15px;
}

/* dealer */
.sidebar_v2.sidebar__dealer ul li a:hover {
    box-shadow: none;
    background-color: #5f5f5f;
    color: white;
    border-radius: 5px;
    box-shadow: rgb(95 95 95 / 40%) 3px 3px,
        rgb(95 95 95 / 30%) 6px 6px,
        rgb(95 95 95 / 20%) 9px 9px,
        rgb(95 95 95 / 10%) 12px 12px,
        rgb(95 95 95 / 5%) 15px 15px;
}

.sidebar_v2.sidebar__dealer ul li a.sidebar-menu-active {
    background-color: #feff00;
    color: black;
    border-radius: 5px;
    box-shadow: rgb(238 239 5 / 40%) 3px 3px,
        rgb(238 239 5 / 30%) 6px 6px,
        rgb(238 239 5 / 20%) 9px 9px,
        rgb(238 239 5 / 10%) 12px 12px,
        rgb(238 239 5 / 5%) 15px 15px;
}


/* dashboard card */

.card__container {
    float: left;
    width: 100%;
    height: auto;
    display: block;
    padding: 20px;
}

.card__container .card__container_header {
    font-size: 20px;
    font-weight: bold;

}

.card__home *:not(.fa, .fas) {
    font-family: 'Prompt', sans-serif;
}

.card__home {
    float: left;
    width: 200px;
    height: 230px;
    margin: 15px 30px 15px 0px;
    box-shadow: rgb(0 0 0 / 25%) 0px 25px 50px -12px;
}

.card__home .card__header {
    width: 100%;
    display: block;
    background-color: grey;
    color: white;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card__home .card__body {
    width: 100%;
    display: block;
    background-color: rgb(255, 255, 255);
    height: 200px;
    line-height: 200px;
    font-size: 70px;
    text-align: center;
    color: #8d8d8d;
}

.card__home .card__footer {
    width: 100%;
    display: block;
    background-color: grey;
    color: white;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 11px;
    display: none;
}

.card__home .card__header.green {
    background-color: green;
}

.card__home .card__body .fas {
    color: #eeeeee;
}


/*
* Mobile Menu
*/

@media (max-width: 991px) {
    .sidebar_v2 ul li.visible-only-mobile {
        display: block;
    }

    .container___left {
        position: absolute;
        z-index: 2;
        background-color: #ebebeb;
        opacity: 1;
        top: 70px;
        height: calc(100vh - 70px);
        z-index: 5;
        transform: translate3d(-100%, 0px, 0px);
    }

    .container___left.to_hide {
        transform: translate3d(0px, 0px, 0px);
        box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
    }

    .container___right {
        width: 100%;
        position: relative;
    }

    .container___right.to_expand {
        width: 100%;
        position: relative;
        top: 0;
        left: 0;
    }

    .sidebar_v2 {
        margin-top: 0px;
        background-color: #f3f3f3;
    }

    .nav__container .logo {
        width: calc(70vw - 120px);
    }

    .nav__container .dealer_name {
        display: none;
    }

    .nav__container .nav_menu .btn-group {
        display: none;
    }
}

@media (min-width: 992px) {
    .nav__container {
        position: fixed;
        z-index: 3;
    }

    .container___left {
        margin-top: 85px;
        position: fixed;
    }

    .container___right {
        margin-left: 270px;
        margin-top: 85px;
    }

    .container___right.to_expand {
        margin-left: 0px;
        margin-top: 0px;
    }
}

@media (max-width:991px) {
    .nav__container .dealer_name {
        display: none;
    }

    .nav__container .btn_out {
        display: none;
    }

    .nav__container .nav_dealer_select {
        position: absolute;
        top: 0;
        right: 0;
    }

    .nav__container .nav_dealer_select button {
        width: 55px !important;
        height: 35px !important;
    }
}

/* update 22/22/2566 */

/* Sidebar Sub Menu */

.btn.btn-parent:not(.sidebar-menu-active) .fa-angle-right {
    display: inline-block;
}

.btn.btn-parent:not(.sidebar-menu-active) .fa-angle-down {
    display: none;
}

.btn.btn-parent.sidebar-menu-active .fa-angle-right {
    display: none;
}

.btn.btn-parent.sidebar-menu-active .fa-angle-down {
    display: inline-block;
}

.btn.btn-child {
    padding-left: 15px;
    font-size: 15px;
}