/* ==================================================
  * Template: Medisensor
  * Version:  1
  * Page:     Navigation/Header/Dropdown
===================================================== */

/*======================COMMON START======================*/
.dropdown-menu{
    padding: 7px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(11,34,87,0.4);
    border:0px;   
    margin-top: 5px !important;
    position: relative;
}
.dropdown-item:focus, .dropdown-item:hover{
    border-radius: 7px;
}
.hide-arrow.dropdown-toggle:after{
    display: none !important;
}

table .dropdown-menu{
    border-radius: 5px;
    padding: 5px;
    border: solid 1px #DDD;
    box-shadow: none !important;
    font-size: 14px;
    min-width: 140px !important;
}
table .dropdown-menu a{
    border-bottom: solid 1px #F4F4F4;    
}
table .dropdown-menu a:hover{
    border-radius: 4px;
}
table .dropdown-menu a:last-child{
    border:0px !important;
}
table .dropdown-menu a i{
    margin-right: 5px;
}
/*======================COMMON END======================*/

/*======================NAVIGATION START======================*/

.medi-sidebar{
    font-family: 'Maven Pro', sans-serif;
}
.medi-sidebar .nav-logo{
    text-align: center;
    margin: 40px 20px;
}
.medi-sidebar ul{
    margin: 0px;
    padding: 0px;
    list-style: none;
}
.medi-sidebar ul li{ 
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    margin-bottom: 20px;
    position: relative;
}

.medi-sidebar li.active{
    background: #0638CD; 
    border-radius: 0px 10px 10px 0px;
}
.medi-sidebar ul li:before{
    content: '';
    position: absolute;
    left: 0px;
    top:0px;
    height: 100%;
    background: #0638CD; 
    z-index: 0;
    border-radius: 0px 10px 10px 0px;
    width:0%;
    opacity: 0;
    transition: width 0.17s ease, opacity 0.1s ease-in;
    box-shadow: 4px 2px 13px 2px rgba(255,255,255,0.75);
    -webkit-box-shadow: 4px 2px 13px 2px rgba(255,255,255,0.75);
    -moz-box-shadow: 4px 2px 13px 2px rgba(255,255,255,0.75);
}
.medi-sidebar ul li:hover:before{
    width:100%;
    opacity: 1;
}
.medi-sidebar ul li span{
    flex-basis: 50px;
    width: 50px;
    height: 50px;
    background: #f7dfe8;
    border-radius: 25px;
    margin-right: 15px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 45px;
}
.medi-sidebar ul li span img{
    position: absolute;
    margin: auto;
    left: 0px;
    top:0px;
    right:0px;
    bottom:0px;
}
.medi-sidebar ul li span .n-icon{
    opacity: 1;
    transition: transform 0.6s ease-out, opacity 0.6s ease;
}
.medi-sidebar ul li:hover span .n-icon{
    transform: rotate(360deg);
    opacity: 0;
}
.medi-sidebar ul li.active span .n-icon{
    opacity: 0;
}
.medi-sidebar ul li span .h-icon{
    opacity: 0;
    transition: transform 0.4s ease-out, opacity 0.4s ease;
}
.medi-sidebar ul li:hover span .h-icon{
    transform: rotate(360deg);
    opacity: 1;
}
.medi-sidebar ul li.active span .h-icon{
    opacity: 1;
    transform: none;
}
.medi-sidebar ul li:nth-child(1) span{
    background: #ddfceb;
}
.medi-sidebar ul li:nth-child(2) span{
    background: #F7F4FD;
}
.medi-sidebar ul li:nth-child(3) span{
    background: #d8f9fa;
}
.medi-sidebar ul li:nth-child(4) span{
    background: #f0f5fb;
}
.medi-sidebar ul li:nth-child(5) span{
    background: #f6f9f1;
}
.medi-sidebar ul li:nth-child(6) span{
    background: #f8e0e8;
}
.medi-sidebar a{    
    height: 70px;
    color:#12101D;
    font-size: 15px;
    text-decoration: none;
    line-height: 65px;
    flex: 1;
    position: relative;
    z-index: 1;
    display: block;
    white-space: nowrap;
}
.medi-sidebar li:hover span, .medi-sidebar li.active span{
    background: rgba(211, 65, 110, 0.16) !important;
}
.medi-sidebar li:hover a, .medi-sidebar li.active a{
    color:#FFFFFF;
}
/*======================NAVIGATION END======================*/

/*======================HEADER START======================*/
.medi-content-body header{
    margin-bottom: 20px;
    padding-top: 3px;
    height: calc(12vh - 60px);
    min-height: 56px;
}
header .header-left{
    float: left;
    display: flex;
}
header .header-left h1{
    font-size: 35px;
    font-weight: 700;
    color:#12101D;
    margin: 0px;
    margin-right: 20px;
}
header .header-left a{
    background: #FFFFFF;
    border:solid 1px #DED5DF;
    display: inline-block;
    min-width: 100px;
    border-radius: 12px;
    font-size: 16px;
    color:#24242C;
    font-weight: 600;
    text-decoration: none;
    line-height: 40px;
    text-align: center;
}
header .header-left a img{
    height: 13px;
    margin: -2px 5px 0px 0px;
}
header .header-right{
    float: right;
    display: flex;
    align-items: center;
}
.search{
    background: #EBEDF2;
    border:solid 1px #e3e6ed;
    height:50px;
    border-radius: 10px;
    position: relative;
}
.search i{
    position: absolute;
    left: 15px;
    top:12px;
    z-index: 2;
    color:#12101B;
}
.search i img{
    width: 20px;
}
.search input, .search input:focus{
    height:50px;
    width: 100%;
    border-radius: 10px;
    border:0px;
    background: transparent;
    padding-left: 55px;
    font-size: 18px;    
    text-transform: capitalize;
}
.search input::placeholder{
    font-weight: 700;
}
.header-right .notification{
    margin: 0px 40px;
    position: relative;
    cursor: pointer;
}
.header-right .notification span{
    display: inline-block;
    width: 15px;
    height:15px;
    border-radius: 8px;
    background: #FF3800;
    position: absolute;
    right: -4px;
    top: -4px;
}
.header-right .user .user-pic{
    border-radius: 10px;
        height: 50px;
        width: 29px;
        margin-right: 2px;
        margin-left: 5px;
}
.header-right .user span{
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;    
}
.header-right .user span img{
    width: 18px;
    margin-left: 20px;
    cursor: pointer;
}

.header-right .user .dropdown-menu, .mob-user .dropdown-menu{
    width: 200px;
    margin-top: 20px !important; 
}
.mob-user .dropdown-menu{
    width: 180px;
    font-size: 14px;
    z-index: 1;
}
.mob-user .dropdown-menu .dropdown-item {
    padding: .25rem .5rem;
}
.mob-user .dropdown-menu .dropdown-item i{
    margin-right: 5px;
}
.header-right .user .dropdown-menu a, .mob-user .dropdown-menu a{
    position: relative;
    z-index: 3;
}
.header-right .user .dropdown-menu:before, .mob-user .dropdown-menu:before{
    content: '';
    position: absolute;
    background-color: #FFFFFF;
    z-index: 1;
    width: 15px;
    height: 15px;
    border-top-right-radius: 30%;
    transform: rotate(-60deg) skewX(-30deg) scale(1,.866);
    top: -7px;
    right: 38px;
    box-shadow: 1px -3px 5px 0px rgba(11,34,87,0.35);
}
.mob-user .dropdown-menu:before{
    right: 12px;
}
.header-right .user .dropdown-menu:after, .mob-user .dropdown-menu:after{
    content: '';
    position: absolute;
    background-color: #FFFFFF;
    z-index: 1;
    top:0px;
    bottom:0px;
    left:0px;
    right:0px;
    border-radius: 10px;
}
.medi-mob-header{
    display: none;
}

@media (max-width: 1366px){
    .medi-content-body header{
        height: calc(15vh - 60px);
    }
    .medi-sidebar{
        flex-basis: 270px
    }
    .nav-logo img{
        height: 55px;
    }
    .medi-sidebar a{
        height: 60px;
        line-height: 60px;
        font-size: 15px;
    }    
    .medi-sidebar ul li{
        margin-bottom: 15px;
    }
    .medi-sidebar ul li span {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    .medi-sidebar ul li span img{
        width: 20px;
    }
    header .header-left h1 {
        font-size: 30px;
        line-height: 50px;
    }
    .header-right .notification {
        margin: 0px 20px;
    }
    header .header-left a{
        height: 40px;
        margin-top: 5px;
    }
    .header-right .user span img{
        margin-left: 10px;
    }
    .header-right .user .user-pic{
        margin-right: 10px;
    }
}
@media (max-width: 830px){
    .medi-content-body header{
        padding-top: 5px;
        padding-left: 5px;
        margin-bottom: 0px;
    }
    header .header-right{
        display: none;
    }
    
    #medi-wrapper{
        display: block;
    }
    header .header-left h1{
        font-size: 24px;
        font-weight: 500;
        line-height: 42px;
    }
    header .header-left a {    
        min-width: 70px;
        border-radius: 5px;
        font-size: 13px;
        line-height: 30px;
        height: 33px;
    }
    header .header-left a img {
        height: 9px;
    }
    
    .medi-mob-header{
        display: block;
        background: #f5f6fa;
        padding: 10px 15px;
        position: -webkit-sticky;
        position: sticky;
        top: 0px;
        z-index: 99;
    }
    
    .mob-header-inner{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }
    a.ham-burger, a.user-profile{
        height: 70px;
        line-height: 80px;
        width: 35px;
        background: #f5f6fa;
        color: #999999;
        padding: 0 !important;
        display: inline-block;
        text-align: center;
        border-radius: 13px;
    }
    .mob-logo {
        height: 65px;
        margin-left: 6vh;
    }

    .mob-nav-overlay{
        position: fixed;
        z-index: 4;
        height: 100%;
        width: 100%;
        left: -100%;
        top:0px;
        opacity: 0;
        background:rgba(6,56,205,1);
        transition: left 0.13s ease-in, opacity 0.2s ease-in;
    }
    .medi-sidebar {
        height: 96vh;        
        position: fixed;
        top: 0px;
        left: -100%;
        bottom: 0px;
        z-index: 100;
        margin: 15px;
        border-radius: 15px;
        transition: left 0.5s ease-in;
        overflow-y: auto;
    }
    .mob-nav-overlay.show{
        opacity: 0.3;
    }
    .mob-nav-overlay.show, .medi-sidebar.show{
        left: 0px;        
    }
    .medi-sidebar .nav-logo {
        margin: 20px 0px;
    }
    .medi-sidebar .nav-logo img{
        height: 45px;
    }
    .medi-sidebar ul li{
        margin-bottom: 10px;
        padding-right: 15px;
    }
    .medi-sidebar ul li span {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        margin-top: 5px;
    }
    .medi-sidebar a {
        height: 50px;
        font-size: 16px;
        line-height: 50px;
    }
    .medi-sidebar ul li span img{
        width: 20px;
    }
}
@media (max-width:400px){
    .mob-logo {
        height: 45px;
        margin-left: 3vh;
    }
   
}
/*======================HEADER END======================*/
