
.header{
    height: 60px;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 0 1px rgb(0 0 0 / 25%);
    padding: 0 60px;
}

.header .logo {
    float: left;
    width: 152px;
}

.app-nav {
    float: right;
}

.app-nav.no-badge {
    margin-right: 25px
}

.app-nav p {
    margin: 0
}

.app-nav>a {
    margin: 0 1rem;
    padding: 5px 0
}

.app-nav li,.app-nav ul {
    display: inline-block;
    list-style: none;
    margin: 0
}

.app-nav a {
    color: inherit;
    font-size: 16px;
    text-decoration: none;
    transition: color .3s
}

.app-nav a.active,.app-nav a:hover {
    color: var(--theme-color,#42b983)
}

.app-nav a.active {
    border-bottom: 2px solid var(--theme-color,#42b983)
}

.app-nav>ul {
    padding-left: 20px;
}

.app-nav>ul>li{
    height: 60px;
    line-height: 60px;
}

.app-nav li {
    display: inline-block;
    margin: 0 1rem;
    position: relative;
    cursor: pointer
}

.app-nav li ul {
    background-color: #fff;
    border: 1px solid;
    border-color: #ddd #ddd #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    display: none;
    max-height: calc(100vh - 61px);
    overflow-y: auto;
    padding: 10px 0;
    position: absolute;
    right: -15px;
    text-align: left;
    /* top: 100%; */
    white-space: nowrap;    
}

.app-nav li ul li {
    display: block;
    font-size: 14px;
    line-height: 1rem;
    margin: 8px 14px;
    white-space: nowrap
}

.app-nav li ul a {
    display: block;
    font-size: inherit;
    margin: 0;
    padding: 0
}

.app-nav li ul a.active {
    border-bottom: 0
}

.app-nav li:hover ul {
    display: block
}

.header .sidebar-toggle-button{
    display: none;
}

.search-box{
    float: right;
    height: 60px;
    line-height: 60px;
    position: relative;
}
.search-box:hover .algolia-autocomplete{
    display: block;
}

.search-query {
    height: 30px;
    line-height: 30px;
    box-sizing: border-box;
    padding: 0 15px 0 30px;
    border: 1px solid #e3e3e3;
    color: #273849;
    outline: none;
    border-radius: 15px;
    transition: border-color 0.2s ease;
    background: #fff url(/assets/search.png) 8px 5px no-repeat;
    background-size: 20px;
    vertical-align: middle !important;
}

.search-query:focus {
    border-color: #42b983;
}

.algolia-autocomplete{
    position: absolute;
    padding-top: 15px;
    top: 55px;
    left: 0;
    line-height: normal;
    display: none;
}
.aa-dropdown-menu{
    padding: 5px;
    min-width: 500px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #999;
    background-color: #fff;
    border-radius: 4px;
    border-width: 0;
}
.aa-suggestion + .aa-suggestion{
    border-top: 1px solid #999;
}
.page-title{
    font-size: 16px;
    font-weight: 500;
    padding: 5px 7px 5px 5px;
    background: #f1f3f5;
}
.page-des{
    font-size: 14px;
    margin: 0;
    padding: 5px 7px 5px 5px;
}

@media (max-width: 768px) {
    .header .search-box{
        display: none;
    }
    main>.content{
        left: 0px;
    } 
    .header{
        line-height: 30px;
    }
    .header .logo{
        left: 20px;
    }
    .header .sidebar-toggle-button{
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
        border-color: #ddd;
        padding: 5px;
        text-align: center;
    }
    .sidebar-toggle-button span {
        background-color: #42b983;
        display: block;
        width: 16px;
        height: 2px;
    }
    .sidebar-toggle-button span + span {
        margin-top: 4px;
    }
    .app-nav{
        display: none;
        top: 60px;
        right: 0;
        left: 0;
        height: calc(100vh - 60px);
        overflow-y: auto;
        text-align: left;
        box-shadow: 0 0 10px rgb(0 0 0 / 20%);
        background-color: #fff;
        z-index: 8888;
    }
    .app-nav>ul{
        display: block;
        padding-left: 20px;
    }
    .app-nav>ul>li>ul{
        position: relative;
        border: none;
        right: auto;
        padding: 0;
    }
}
