/*	 
==================================================
# Author		:	Ahmet Numan Aral 
# Create date	:	2019-05-10
# Description	:	CANTabs styling
==================================================
*/ 

/*
#############################################################
############                NAVBAR               ############
#############################################################

######################################################################################################### */

/* ================================== */
/*            CANTABS Style           */
/* ================================== */
/* subtabs => TabName + Carret => [| Subtab | v |] */
/*                                     85%    15%  */

/* Override this to keep the carrot in the same line */
#ph_cantabs li div > a.dropdown-item.cantab-dropdown-item {
    display: inline-block !important;
    width: 85% !important;
    padding: .50rem 1.5rem 0.50rem 8px !important;
}

.dropdown-menu.cantab-dropdown-menu > a.dropdown-item.cantab-dropdown-item {
    padding: .50rem 1.5rem !important;
}

a.dropdown-item.cantab-dropdown-item img {
    max-width: initial !important;
}

.caretAnchor {
    text-align: center !important;
    padding: .25rem !important;
    display: inline-block !important;
    width: 15% !important;
    height: 100% !important;
}

.caret {
    display: inline-block !important;
    vertical-align: .255em !important;
    content: "" !important;
    border-top: .3em solid !important;
    border-right: .3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: .3em solid transparent !important;
}


/* Override this to keep the carrot in the same line */
#ph_cantabs > li > div > a.dropdown-item {
    display: inline-block !important;
    width: 85% !important;
}


/* Client Spefic Styling */
#contentNavItems .dropdown-menu {
    overflow-y: auto;
    overflow-x: hidden !important;
    top: 90% !important;
    box-shadow: 0px 0px 5px grey !important;
    /* This is the default color until the background image is loaded */
    background-color: #2f3744 !important;                                   /* CLIENT SPECIFIC */
    background-image: url("../../images/candispatchBG.jpg") !important;     /* CLIENT SPECIFIC */
    border-color: #252b37 !important;                                       /* CLIENT SPECIFIC */
}

/**/
nav a {
    color: #ffffffe0 !important;                  /* CLIENT SPECIFIC */
    font-weight: 600 !important;
}

nav a:hover { 
    background-color: #3e4356;         /* CLIENT SPECIFIC */
}

nav a:hover:not(.dropdown-item) {
    border-radius: 15px !important;
}

#contentNavItems a.nav-link {
    font-size: 1.2rem !important;
    width: 100% !important;
    padding: 5px 15px 5px 15px !important;
    border-radius: 10px !important;
}

#navigationBar a:hover {    
    -webkit-transition-duration: 0.7s !important;
         -o-transition-duration: 0.7s !important;
            transition-duration: 0.7s !important;    
}

.dropdown-menu.cantab-dropdown-menu{
    overflow: hidden !important;
    width: 130%;
}

.dropdown-menu.cantab-dropdown-menu li:hover {
    background-color: #93969a1f !important;     /* CLIENT SPECIFIC */
}

#logoAnchor {
    width: 8% !important;
    height: 8% !important;
}

.sticky {
    -webkit-transition: all .15 ease-in-out;
    -o-transition: all .15 ease-in-out;
    -webkit-transition: all .15 ease-in-out;
    transition: all .15 ease-in-out;
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 999;
    -webkit-box-shadow: 0px 10px 10px grey;
            box-shadow: 0px 10px 10px grey;
}

/* ================================== */
/*     Sidebar on smaller screens     */
/* ================================== */

#contentNavItems.show,
#contentNavItems.collapsing {
    z-index: 999;
    background-color: #2f3744 !important;                                   /* CLIENT SPECIFIC */
    background-image: url("../../images/candispatchBG.jpg") !important;     /* CLIENT SPECIFIC */
    height: 100vh !important;
    width: 30%;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 10px 0px 15px black;
    list-style: none;
}

.hideNavBar {
    /* height: 0 !important; */
    width: 0 !important;
    transition: 0.75s;
}

.showNavBar {
    width: 1px !important;
}

.showNavBar > ul > li {
    padding: 10px 0 10px 5px !important;
}

#contentNavItems.collapsing {
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

#contentNavItems.show {
    transition: 1s;
    width: 40% !important;
    padding: 10px;
}

/* ================================== */
/*            Hamburger Menu          */
/* ================================== */
.bar1,
.bar2,
.bar3 {
    border-radius: 10px;
    width: 35px;
    height: 5px;
    background-color: #ffffff;     /* CLIENT SPECIFIC */
    margin: 6px 0;
    -webkit-transition: 0.4s;
    -o-transition: 0.4s;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    -ms-transform: rotate(-45deg) translate(-9px, 6px);
        transform: rotate(-45deg) translate(-9px, 6px);
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    -ms-transform: rotate(45deg) translate(-8px, -8px);
        transform: rotate(45deg) translate(-8px, -8px);
}

#contentNavItems{
    overflow-y: auto !important;
}



/*
#############################################################
############            MEDIA QUERIES            ############
#############################################################

######################################################################################################### */

/*
##########################
####    XS(576px-)    ####
##########################
* Extra small devices (portrait phones, less than 576px)
* No media query for `xs` since this is the default in Bootstrap
*/

/*
##########################
####    SM(576px+)    ####
##########################
* Small devices (landscape phones, 576px and up) 
*/
@media (min-width: 576px) {}

/*
##########################
####    MD(768px+)    ####
##########################
* Medium devices (tablets, 768px and up)
*/
@media (min-width: 768px) {}

/*
##########################
####    LG(992px+)    ####
##########################
* Large devices (desktops, 992px and up) 
*/
@media (min-width: 992px) {
    /* Hover will open the items only on bigger screens */
    .navbar-nav li:hover>.dropdown-menu {
        transition: all 2s ease-in-out;
        display: block;
    }
    #contentNavItems{
        overflow-y: initial !important;
    }
}

/*
###########################
####    XL(1200px+)    ####
###########################
* Extra large devices (large desktops, 1200px and up) 
*/
@media (min-width: 1200px) {}

/*
##########################
####    CUSTOM(#+)    ####
##########################
/* For nav-items to stay in single line */
@media screen and (max-width: 749px) {

}

