/* ----------------
   3. Header css here
 -----------------------*/

.header-top {
    position: relative;
    min-height: 34px;
    /*background: lighten($theme-color, 57%);*/
    border-bottom: 1px solid $dimline-color;
    .header-social {
        position: relative;
        margin: 0;
        padding: 0;
        li {
            list-style: none;
            display: inline-block;
            width: 38px;
            text-align: center;
            border-left: 1px solid $dimline-color;
            &:last-child {
                border-right: 1px solid $dimline-color;
            }
            a {
                margin: 0;
                padding: 0;
                line-height: 34px;
                display: block;
                color: $black-color;
                @include transition(all 0.6s ease-in-out 0s);
                &:hover {
                    background: $theme-color;
                    color: $white-color;
                }
            }
            a.active {
                background: $theme-color;
                color: $white-color;
            }
        }
    }
    .header-top-link {
        position: relative;
        margin: 0;
        padding: 0;
        float: right;
        @include transition(all 0.6s ease-in-out 0s);
        li {
            list-style: none;
            display: inline-block;
            padding: 0px 8px 0px 8px;
            text-align: center;
            border-left: 1px solid $dimline-color;
            position: relative;
            &:first-child {
                border: none;
                padding-right: 0;
                a.emergency {
                    background: $red-color;
                    color: $white-color;
                    display: block;
                    margin-right: -3px;
                }
            }
            a {
                margin: 0;
                padding: 0px 8px 0px 8px;
                line-height: 34px;
                display: block;
                color: $black-color;
                @include transition(all 0.6s ease-in-out 0s);
                font-family: 'Raleway', sans-serif;
                &:hover {
                    background: $theme-color;
                    color: $white-color;
                }
            }
            ul.emr-dropdown {
                display: none;
                margin: 0;
                padding: 5px 10px;
                position: absolute;
                min-width: 270px;
                z-index: 9999;
                left: 8px;
                background: $white-color;
                box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
                border-top: 2px solid $red-color;
                border-bottom: 2px solid $red-color;
                li {
                    text-align: left;
                    margin: 0;
                    padding: 0;
                    display: block;
                    line-height: 30px;
                    border-bottom: 1px solid $dimline-color;
                    border-left: transparent;
                    .emr-phone {
                        color: $red-color;
                        font-size: 18px;
                        font-family: 'open Sans', sans-serif;
                        font-weight: bold;
                        letter-spacing: 2px;
                    }
                    .emr-department {
                        display: inline-block;
                        a {
                            border-bottom: 2px solid $theme-color;
                            color: $theme-color;
                            font-weight: bold;
                            &:hover {
                                background: transparent;
                            }
                        }
                    }
                }
            }
        }
    }
    .desktop-right {
        float: right;
    }
}


/*Logo and menu wrap*/

.menu-logo-wrap {
    .logo {
        h1 {
            font-weight: 100;
            span {
                color: $theme-color;
                font-weight: bold;
            }
        }
    }
    .health-main-nav {
        background: transparent;
        border: none;
        position: relative;
        margin-top: 20px;
        .navbar-toggle {
            position: absolute;
            top: -40px;
            right: -10px;
            border: none;
            margin: 0;
            &:hover {
                background-color: transparent;
            }
            &:focus {
                background-color: transparent;
            }
        }
        ul#menu {
            .dropdown {
                position: relative;
                /*&:after {
                    content: "";
                    position: absolute;
                    right: 2px;
                    top: 25px;
                    width: 0;
                    height: 0;
                    border-top: 5px solid lighten($theme-color, 10%);
                    border-right: 5px solid transparent;
                    border-bottom: 5px solid transparent;
                    border-left: 5px solid transparent;
                }*/
            }
            ul.dropdown-menu {
                border: none;
                box-shadow: none;
                background: $dimline-color;
                li {
                    a {
                        @include transition(all 0.5s ease-in-out 0s);
                        border-bottom: 1px solid $white-color;
                        &:hover {
                            background: $theme-color;
                            color: $white-color;
                        }
                    }
                }
                li:last-child {
                    a {
                        border-bottom: 1px solid transparent;
                    }
                }
            }
            li {
                a {
                    text-transform: initial;
                    font-size: 13px;
                    font-weight: 400;
                    text-transform: uppercase;
                    color: lighten($black-color, 30%);
                }
                ul {
                    li {
                        a {
                            text-transform: initial;
                            font-weight: 400;
                            line-height: 30px;
                        }
                    }
                }
            }
        }
    }
}

.search-click {
    border: none;
    margin-top: 13px;
    &:focus {
        outline: none;
    }
}

.search-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    z-index: 999999;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    transition: all 0.15s ease;
    -webkit-transition: all 0.15s ease;
    -o-transition: all 0.15s ease;
    -moz-transition: all 0.15s ease;
    -webkit-transition: all 0.15s ease;
    .search-close {
        position: absolute;
        top: 10px;
        right: 10px;
        border: none;
    }
    .search-form {
        width: 100%;
        display: block;
        text-align: center;
        .search-lebel-control {
            display: block;
            text-align: center;
            width: 100%;
            color: darken($dimline-color, 25%);
            line-height: 40px;
            font-size: 16px;
            font-weight: 100;
        }
        .search-field {
            display: inline-block;
            width: 95%;
            max-width: 450px;
            padding: 5px 5px;
            border-radius: 2px;
            border: 1px solid darken($dimline-color, 25%);
            line-height: 34px;
            background: transparent;
            color: $white-color;
        }
    }
}


/*App navigation start here */

.menu-app-wrap.fixed-header {
    background: darken($theme-color, 40%);

    padding: 9px 0 0px;
    .logo {
        /*   img {
            -webkit-filter: brightness(100%) invert(0);
            filter: brightness(100%) invert(0);
        }*/
    }
    .health-app-nav {
        background: transparent;
        border: none;
        ul#app-menu {
            li {
                position: relative;
                a {
                    color: $white-color;
                }
            }
        }
    }
}

.menu-app-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 25px 0;
    background: transparent;
    .logo {
        margin-top: 10px;
        img {
            -webkit-filter: brightness(0) invert(1);
            filter: brightness(0) invert(1);
        }
    }
    .health-app-nav {
        background: transparent;
        border: none;
        ul#app-menu {
            li {
                position: relative;
                a {
                    color: $white-color;
                    position: relative;
                }
                a.active {
                    &:after {
                        content: "";
                        position: absolute;
                        bottom: 2px;
                        height: 2px;
                        width: 30px;
                        left: 15px;
                        background: $white-color;
                    }
                }
            }
        }
    }
}
