@font-face {
    font-family: 'Noto Sans JP';
    src: url('../fonts/Noto_Sans_JP/NotoSansJP-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900; /* Biến thiên từ Thin đến Black */
    font-style: normal;
}

body {
    background-color: #f2f2f2;
    color: #2D3133;
    font-family: "Noto Sans JP";
    font-style: normal;
}

.header-wrapper {
    background-color: #3B4043;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header {
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 24px 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    width: 132.726px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    align-self: stretch;
}

.logo img {
    width: 132.726px;
    height: 31.443px;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    align-self: stretch;
}

.notification-icon {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 8px 8px 8px 10px;
    justify-content: center;
    align-items: center;
}

.notification-icon img {
    width: 22px;
    height: 24px;
    flex-shrink: 0;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-image {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.profile-image img {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    border-radius: 45px;
    border: 2px solid #f2f2f2;
}

.profile-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
}

.profile-dropdown-toggle {
    background: none;
    border: none;
}

.profile-dropdown.dropdown-menu {
    transform: translate(-5px, 53px) !important;
    padding: 0;
}

.profile-dropdown .dropdown-content {
    display: flex;
    padding: 8px;
    background: none;
    border: none;
}

.profile-dropdown .dropdown-content img {
    margin-right: 8px;
}

.profile-dropdown .dropdown-content .text {
    color: #2D3133;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
}

.profile-dropdown.show {
    display: block;
}

.sidebar {
    width: 208px;
    background: #ffffff;
    position: fixed;
    top: 80px;
    bottom: 0;

    display: flex;
    padding: 16px 0px 24px 0px;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    align-self: stretch;
    /* transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1); */
    overflow: hidden;
}

.sidebar.collapsed .item i {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sidebar.collapsed .sidebar-item .text {
    display: none;
}

.sidebar.collapsed .icon-dropdown {
    display: none;
}

.sidebar.collapsed {
    width: 48px;
}

.sidebar.collapsed .sidebar-bottom .social-icons {
    padding: 0;
}

.sidebar.collapsed .sidebar-bottom {
    margin-top: auto;
}

.sidebar-header {
    width: 100%;
}

.sidebar-logo {
    display: flex;
    padding: 8px 16px;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

a.sidebar-item {
    text-decoration: none;
    color: #9F9F9F;
}

.sidebar-item {
    display: flex;
    padding: 8px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: 4px;
}

.sidebar-item .item {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 0 0;
}

.sidebar-item .item .icon {
    font-size: 24px;
}

.sidebar-item .item .text {
    font-size: 12px;
    color: #9F9F9F;
    font-weight: 700;
    line-height: 20px;
}

.sidebar-bottom {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.sidebar-bottom .list-bottom .item {
    display: flex;
    padding: 12px 16px;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    height: 32px;
}

.sidebar-bottom .list-bottom .item a {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    color: #2D3133;
    text-decoration: none;
}

.sidebar-bottom .list-bottom .item:hover {
    background-color: #eeeeee;
}

.social-icons {
    display: flex;
    padding-left: 16px;
    align-items: center;
    gap: 12px;
    align-self: stretch;
}

.social-icons .item {
    display: flex;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
}

.social-icons .item:hover {
    opacity: 0.7;
}


.submenu-item {
    padding-left: 40px;
    font-size: 13px;
}

.sidebar-item:hover,
.sidebar-item:hover .icon,
.sidebar-item:hover .text {
    color: #2D3133;
}

.sidebar-item.other:hover,
.sidebar-item.other:hover .icon,
.sidebar-item.other:hover .text {
    background: #f8f8f8;
}

.sidebar-item:hover,
.sidebar-item:hover .icon,
.sidebar-item:hover .text {
    color: #2D3133;
}

.sidebar-item.active .icon,
.sidebar-item.active .text,
.sidebar-item.active .icon-dropdown {
    color: #2D3133;
}

.sidebar-item.active .icon-dropdown {
    font-size: 24px;
}

.sidebar-menu.active .sidebar-item:hover,
.sidebar.collapsed .sidebar-menu.active .sidebar-item:hover {
    background-color: #e5e5e5 !important;
}

.sidebar-menu.active .sidebar-item,
.sidebar.collapsed .sidebar-menu.active .sidebar-item {
    background-color: #f2f2f2;
}

.sidebar.collapsed .sidebar-item span,
.sidebar.collapsed .list-bottom {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.sidebar-item span,
.list-bottom {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.sidebar.collapsed .social-icons {
    flex-direction: column;
}

.sidebar-menu .icon-dropdown {
    transform: rotate(180deg);
}

.sidebar-menu .icon-dropdown.active {
    transform: rotate(0);
}


/* .sidebar-transition {
    transition: width 0.5s ease-in-out;
}

.collapse {
    transition: all 0.5s ease-in-out !important;
}

.collapsing {
    transition: all 0.5s ease-in-out !important;
} */

.content {
    padding: 40px 0;
    max-width: 872px;
    width: 100%;
    margin: 0 auto;
}

.flex-grow-1 {
    /* transition: padding-left 0.5s ease-in-out; */
    padding-left: 208px;
}

.page-title {
    background-color: white;
    display: flex;
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    border: 1px solid #B3B3B3;
}

.page-title .mypage {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-title .mypage img {
    width: 24px;
    height: 24px;
}

.page-title .mypage .text {
    font-weight: 400;
    line-height: 20px;
    font-size: 14px;
}

.navlist {
    border-bottom: 1px solid #b3b3b3;
    margin-left: 24px;
    margin-right: 24px;
}

.navlist ul {
    padding: 8px 0;
    list-style: none;
    margin: 0;

}

.navlist ul li {
    font-size: 12px;
    font-weight: 400;
    line-height: 20px;
    display: inline;
    color: #707070;
    margin-right: 4px;
    height: 24px;
    align-items: center;

}

.navlist li:last-child:after {
    display: none;
}

.navlist li:after {
    content: "";
    display: inline-block;
    top: 10px;
    width: 20px;
    height: 10px;
    background: url(./img/icon_breadcrumb.svg) no-repeat center center;
    background-size: 20px 20px;
    background-position: 0 -5px;
}

.navlist ul li a {
    text-decoration: none;
    color: #707070;
}

.content {
    padding: 40px 0;
    max-width: 872px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.content .content-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
}

.content .content-top .menu-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    align-self: stretch;
}

.content .content-top .text {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: #707070;
}

@media (min-width: 768px) {
    .pcHide {
        display: none;
    }

    .container-pc {
        max-width: 100%;
        margin: 0 auto;
        margin-top: 80px;
        padding: 0;
    }
}

@media (max-width: 1130px) and (min-width: 768px) {
    .content {
        padding: 40px 24px;
    }
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

@media (max-width: 767px) {
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.1);
        z-index: 2000;
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
    }

    .mobile-sidebar {
        max-width: 208px;
        width: 100%;
        overflow-y: auto;
    }

    .container-sp {
        max-width: 100%;
        margin: 0 auto;
        margin-top: 96px;
        padding: 0;
    }

    .spHide {
        display: none;
    }

    .sidebar-sp-hide {
        display: none;
    }

    .flex-grow-1 {
        padding-left: 0;
    }

    .content {
        padding: 24px 16px;
    }

    .header-sp {
        display: flex;
        height: 96px;
        padding: 16px;
        justify-content: center;
        align-items: flex-end;
    }

    .header-sp .content-header-sp {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex: 1 0 0;
    }

    .header-sp .content-header-sp .sidebar-header-sp {
        display: flex;
        align-items: center;
    }

    .header-sp .content-header-sp .icon-sidebar_sp {
        font-size: 24px;
    }

    .header-sp .content-header-sp .text {
        font-size: 16px;
        font-weight: 700;
        line-height: 24px;
        color: #ffffff;
        text-align: center;
        justify-content: center;
        flex: 1 0 0;
        display: flex;
    }

    .header-sp .content-header-sp {
        display: flex;
        width: 60px;
        justify-content: flex-end;
        align-items: center;
        gap: 4px;
    }

    .profile-container-sp {
        display: flex;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 4px;
    }

    .profile-container-sp .img-acc {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        border-radius: 32px;
        border: 2px solid #ffffff
    }

    .profile-container-sp .icon-dropdown-acc {
        font-size: 24px;
        flex-shrink: 0;
    }

    .profile-container-sp .profile-dropdown.dropdown-menu {
        transform: translate(-90px, 36px) !important;
        padding: 0;
    }

    .profile-container-sp .profile-dropdown .dropdown-content {
        height: 40px;
        display: flex;
        align-items: center;
    }

    .sidebar {
        max-width: 298px;
        width: 100%;
        /* height: 1000px; */
        padding: 40px 0px 24px 0px;
        top: 0;
    }

    .logo-header-sp {
        display: flex;
        padding: 8px 16px;
        align-items: flex-start;
        align-self: stretch;

    }

    .logo-header-sp img {
        width: 132.726px;
        height: 31.443px;
    }
}