/* ========== 上邊主框架 ========== */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    min-width: 343px;
    height: 100px;
    background: #fff;
    box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
    z-index: 9999;
    box-sizing: border-box;
}

.header .menu_reference li {
    margin-bottom: 0;
}

.header .menu_reference li img {
    width: 58px;
    height: 58px;
}

.header nav ul.menu_reference {
    position: relative;
    margin-left: 4px;
    padding-right: 16px;
}

.header nav ul.menu_reference::after {
    content: "";
    width: 1px;
    height: 32px;
    background: #ecedf0;
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
}

.notify-count {
    position: relative;
}

.notify-count .count {
    width: 16px;
    height: 16px;
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
    background-color: red;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}


#switch {
    position: absolute;
    display: none;
}

.header_menu {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* justify-content: end; */
    position: relative;
}

.header_menu .logo {
    margin-left: auto;
    margin-right: auto;
}

.nav_container {
    /* margin-right: 24px; */
    position: absolute;
    right: 0;
}

.user_content {
    display: flex;
    align-items: center;
    color: var(--main-primary-color);
    cursor: pointer;
}

.user_content .user_name {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  
}

.user_content .user_name>span{
    display: inline-block;
    width: 100%;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user_content .user_name::after {
    content: url("../../../../images/components/btn_type/slk_down_b_30.svg");
    display: inline-block;
    width: 30px;
    height: 30px;
    transform: rotate(0deg);
    transition: transform 0.3s ease; 
}

.user_content.active .user_name::after {
    transform: rotate(180deg);
}

.list>li {
    position: relative;
}

.navbar-dropdown {
    width: 160px;
    position: absolute;
    right: 0;
    background: #fff;
    border: 2px solid var(--main-primary-color);
    border-radius: 8px;
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.25);
    display: none;
    z-index: 1;
}

.navbar-dropdown li a {
    display: block;
    padding: 12px 8px;
    color: var(--main-primary-color);
    font-size: 18px;
    font-weight: bold;
}

.navbar-dropdown li+li {
    border-top: 1px solid var(--main-primary-color);
}

.navbar-dropdown li:hover,
.navbar-dropdown li.active {
    background: #ddd;
}

.navbar-dropdown li:first-child:hover,
.navbar-dropdown li:first-child.active{
    border-radius: 6px 6px 0 0;
}

.navbar-dropdown li:last-child:hover,
.navbar-dropdown li:last-child.active{
    border-radius: 0 0 6px 6px;
}

.tippy-box {
    /* min-width: 200px; */
    padding: 6px;
    background-color: var(--main-primary-color);
    border: 2px solid var(--main-primary-color);
    color: #fff;
    font-size: 18px;
    border-radius: 12px;
    box-shadow: 3px 3px 6px 0 rgba(0, 0, 0, 0.3);
    text-align-last: left;
    
}

.tippy-box .tippy-arrow {
    color:var(--main-primary-color);
}

.tippy-content {
    white-space: pre-line;
}

.tippy-box[data-placement^=bottom]>.tippy-arrow {
    top: -3px;
}

.tippy-box[data-placement^=bottom]>.tippy-arrow:before {
    top: -6px;
}

.tippy-box[data-theme~="custom1"]{
  min-width: 200px;
}

.tippy-box[data-theme~="custom2"]{
  background-color: var(--main-primary-color);
  border: 2px solid var(--main-primary-color);
}

.tippy-box[data-theme~="custom2"] .tippy-arrow {
  color: var(--main-primary-color);
}

@media screen and (max-width:1280px) {
    .header .menu_reference {
        display: none;
    }

}

@media screen and (max-width:1024px){

    .user_content {
        display: none;
    }

    .menu-icon {
        width: 50px;
        height: 50px;
        display: flex;
        /* justify-content: center; */
        align-items: center;
        cursor: pointer;
        transition:all .3s;
    }

    .menu-icon_hamburger {
        width: 100%;
        height: 5px;
        background:var(--main-primary-color);
        position: relative;
        border-radius: 5px;
        transition: .3s cubic-bezier(.68, -.55, .265, 1.55);
    }

    .menu-icon_hamburger:before,
    .menu-icon_hamburger:after {
        position: absolute;
        content: '';
        width: 100%;
        height: 5px;
        background: var(--main-primary-color);
        border-radius: 5px;
        transition: .3s cubic-bezier(.68, -.55, .265, 1.55);
    }

    .menu-icon_hamburger:before {
        transform: translateY(-15px);
    }

    .menu-icon_hamburger:after {
        transform: translateY(15px);
    }

    .menu-icon.open .menu-icon_hamburger {
        background: transparent;
    }

    .menu-icon.open .menu-icon_hamburger:before {
        transform: rotate(45deg);
    }

    .menu-icon.open .menu-icon_hamburger:after {
        transform: rotate(-45deg);
    }
}