.palette-item, .component-item {
    visibility: hidden;
    svg {
        height: 0px;
    }
}
.session_setting {
    --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/3.svg');
    -webkit-mask: var(--icon-url) no-repeat center;
    mask: var(--icon-url) no-repeat center;
    transition: 0.3s;
    width: 24px;
    height: 24px;
    background-color: #535354;
    &.session_setting {
        cursor: pointer;
    }
}
.session_icon {
    --icon-url: url('');
    width: 24px;
    height: 24px;
    background-image: var(--icon-url);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.add-section {
    height: 24px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    background: #f1eef169;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    &:hover {
        background: rgba(255,255,255,0.9);
    }
    .plus-btn {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #e2e8f0;
        font-size: 24px;
        color: #6b7c93;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .add-text {
        color: #6b7c93;
    }
    &:hover {
        background: #f0f0f0;
    }
}
.nts_pallet_portal {
    width: 250px;
    border: 2px solid #d6dde5;
    border-radius: 6px;
    font-family: sans-serif;
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box;
    overflow: auto;
    .nts_categories {
        display: flex;
        flex-direction: column;
        gap: 8px;
        .portal-category, .portal-item {
            display: flex;
            flex-direction: column;
            gap: 10px;
            .portal-category-header, .portal-item-header {
                display: flex;
                align-items: center;
                padding: 8px 11px;
                background: #f9f9f9;
                border: 1px solid #ddd;
                border-radius: 6px;
                cursor: grab;
                transition: 0.2s;
                gap: 10px;
                &:hover {
                    background: #eef6ff;
                    border-color: #4da3ff;
                }
                .header-text {
                    flex-grow: 1;
                }
                .header-setting {
                    opacity: 0.6;
                }
                &.active_menu_portal {
                    background: var(--ccg-portal-accent-bg, #DDF5E8) !important;
                    color: var(--ccg-portal-accent, #01956A) !important;
                }
                .session_info {
                    flex-grow: 1;
                    width: calc(100% - 90px);
                }
            }
            &.home-category .portal-category-header, .portal-item-header {
                &.active_menu_portal {
                    position: relative;
                    &::before {
                        content: "";
                        height: 100%;
                        width: 5px;
                        position: absolute;
                        background: var(--ccg-portal-accent, #01956A) !important;
                        left: 0px;
                    }
                }
            }
            .portal-category-items, .portal-item-items {
                margin-left: 30px;
                display: flex;
                flex-direction: column;
                gap: 10px;
            }
            .portal-category-items {
                &:empty {
                    display: block;
                    height: 10px;
                    margin-top: -10px;
                    margin-bottom: -10px;
                }
            }
            &.view-mode {
                .home-portal-header {
                    cursor: pointer!important;
                    &.active_menu_portal {
                        position: relative;
                        &::before {
                            content: "";
                            height: 100%;
                            width: 5px;
                            position: absolute;
                            background: var(--ccg-portal-accent, #01956A) !important;
                            left: 0px;
                        }
                    }
                }
                .portal-category-header, .portal-item-header {
                    background: transparent;
                    border: 0px;
                    cursor: default;
                    &:hover {
                        background: #F7F7F7;
                    }
                }
                &:has(.portal-category-items:not(:empty)) > .portal-category-header {
                    position: relative;
                    cursor: pointer !important;
                    &::after {
                        content: "";
                        position: absolute;
                        right: 8px;
                        top: 50%;
                        width: 6px;
                        height: 6px;
                        border-right: 2px solid #333;
                        border-bottom: 2px solid #333;
                        transform: translateY(-50%) rotate(45deg);
                        transition: transform 0.2s ease;
                    }
                    &.opening::after {
                        transform: translateY(-50%) rotate(225deg);
                    }
                }
                .portal-category-items {
                    &:empty {
                        display: none;
                    }
                }
                .portal-item-header {
                    cursor: pointer !important;
                }
            }
            .portal-item-items {
                &:empty {
                    display: none;
                }
            }
            .add-section {
                margin-left: 30px;
            }
        }
    }
}
.nts_layout_setting_portal {
    display: flex;
    padding: 10px;
    width: 100%;
}
.nts_part_content_portal {
    height: calc(100vh - 250px);
    width: 250px;
    &.right_content {
        flex-grow: 1;
        border: 2px solid #d6dde5;
        border-radius: 5px;
        width: calc(100% - 250px);
    }
}
.component_layout_wrapper_portal {
    padding: 10px;
    box-sizing: border-box;
    max-height: 100%;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    .portal_layout_title {
        padding-bottom: 9px;
        font-weight: bold;
        font-size: 1.8rem;
    }
    > .add-section {
        min-height: 50px ;
    }
    .portal_layout_route {
        display: flex;
        gap: 30px;
        .group_route {
            position: relative;
        }
        &:has(> :nth-child(2)) > .group_route::after {
            content: "";
            position: absolute;
            right: -20px;
            top: 53%;
            width: 6px;
            height: 6px;
            border-right: 2px solid #333;
            border-bottom: 2px solid #333;
            transform: translateY(-50%) rotate(-40deg);
            transition: transform 0.2s ease;
        }
    }
    .portal_layout_view {
        height: fit-content;
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-grow: 1;
        .session_card {
            background: #fff;
            border: 1px solid #e3e6ea;
            border-radius: 10px;
            .portal_session_header {
                display: flex;
                align-items: center;
                border-bottom: 1px solid #e3e6ea;
                padding: 10px;
                .session_info {
                    position: relative;
                    padding-left: 15px;
                    flex-grow: 1;
                    width: calc(100% - 100px);
                    .session_name {
                        font-size: 1.3rem;
                        font-weight: bold;
                    }
                    .session_remark {
                        font-size: 1.1rem;
                    }
                }
                .session_setting {
                    width: 24px;
                    height: 24px;
                }
                .session_icon {
                    width: 40px;
                    height: 40px;
                }
                .session_setting span {
                    margin-left: 10px;
                    cursor: pointer;
                    color: #7a8a9e;
                }
            }
            .section_content {
                height: fit-content;
                padding: 15px;
                display: flex;
                gap: 10px;
                flex-wrap: wrap;
                .portal-item {
                    border: 1px solid #e3e6ea;
                    border-radius: 12px;
                    padding: 12px;
                    background: #fafafa;
                    cursor: pointer;
                    transition: 0.2s;
                    width: calc((100% - 30px) / 3);
                    height: 82px;
                    box-sizing: border-box;
                    .portal_item_header {
                        display: flex;
                        gap: 5px;
                        align-items: center;
                        .session_info {
                            padding-left: 10px;
                            flex-grow: 1;
                            width: calc(100% - 90px);
                            .session_name {
                                font-weight:bold;
                                font-size: 15px;
                            }
                            .session_remark {
                                font-size: 1.0rem;
                            }
                        }
                        .session_setting{
                            width: 24px;
                            height: 24px;
                        }
                        .session_icon{
                            width: 32px;
                            height: 32px;
                        }
                    }
                    &.add-section {
                        border: 2px dashed #cbd5e1;
                        border-radius: 12px;
                        background: #f1eef169;
                        cursor: pointer;
                        transition: 0.2s;
                    }
                }
            }
        }
        &.view-mode {
            .session_card{
                .portal_session_header {
                    position: relative;
                    cursor: pointer;
                    .session_setting {
                        background: transparent;
                    }
                    &::after {
                        content: "";
                        position: absolute;
                        right: 20px;
                        top: 50%;
                        width: 6px;
                        height: 6px;
                        border-right: 2px solid #333;
                        border-bottom: 2px solid #333;
                        transform: translateY(-50%) rotate(45deg);
                        transition: transform 0.2s ease;
                    }
                    &.opening::after {
                        transform: translateY(-50%) rotate(225deg);
                    }
                }
                .section_content {
                    .portal-item {
                        .portal_item_header {
                            .session_setting {
                                position: relative;
                                background: transparent;
                                -webkit-mask: none;
                                mask: none;
                            }
                        }
                        &:hover {
                            background-color: var(--ccg-portal-accent-bg, #DDF5E8) !important;
                            color: var(--ccg-portal-accent, #01956A) !important;
                        }
                    }
                }
            }
        }
    }
    &.can_use_idx_as_icon {
        .portal_layout_title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            .index_as_icon {
                display: flex;
                align-items: center;
                font-weight: 200;
            }
        }
        &.force_use_idx_as_icon {
            .portal_layout_view {
                counter-reset: item;
                .session_card {
                    .portal_session_header {
                        &::before {
                            counter-increment: item;
                            content: counter(item);
                            background-color: var(--ccg-portal-accent, #01956A) !important;
                            color: white;
                            width: 40px;
                            height: 40px;
                            border-radius: 50%;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }
                        .session_icon {
                            display: none;
                        }
                    }
                }
            }
        }
    }
    &.step-mode {
        .portal_layout_steps {
            counter-reset: item2;
            display: flex;
            gap: 30px;
            justify-content: center;
            .layout_step {
                display: flex;
                flex-direction: column;
                gap: 5px;
                align-items: center;
                position: relative;
                width: 100px;
                .layout_step_name {
                    text-align: center;
                }
                .layout_step_status {
                    cursor: pointer;
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    outline: 5px solid #FFFFFF;
                    background-color: #939393;
                    position: relative;
                    &::before {
                        counter-increment: item2;
                        content: counter(item2);
                        color: white;
                    }
                    &:hover::after {
                        content: attr(data-tooltip);
                        position: absolute;
                        top: 45px;
                        left: 50%;
                        transform: translateX(-50%);
                        padding: 4px 8px;
                        white-space: nowrap;
                        background: #333;
                        color: #fff;
                        border-radius: 4px;
                        z-index: 1;
                    }
                }
                &:not(.done):not(.current_step) {
                    .layout_step_name {
                        color: #939393
                    }
                }
                &.current_step {
                    .layout_step_status {
                        outline: 8px solid var(--ccg-portal-accent-outline, #BFEAD5);
                        background-color: var(--ccg-portal-accent, #01956A) !important;
                        &::before {
                        }
                    }
                }
                &.done {
                    .layout_step_status {
                        background-color: var(--ccg-portal-accent, #01956A) !important;
                        &::before {
                            content: "";
                            position: absolute;
                            left: 16px;
                            top: 10px;
                            width: 8px;
                            height: 15px;
                            border-right: 2px solid #fff;
                            border-bottom: 2px solid #fff;
                            transform: rotate(45deg);
                        }
                    }
                }
                &:not(:last-child) {
                    &::after {
                        position: absolute;
                        content: '';
                        flex: 1;
                        height: 1px;
                        background: #6C6C6C;
                        z-index: 66;
                        position: absolute;
                        top: 20px;
                        left: calc(50% + 20px);
                        width: calc(100% - 10px);
                    }
                }
            }
        }
        .portal_layout_view {
            counter-reset: item;
            .session_card {
                .portal_session_header {
                    border-bottom-color: lightgrey;
                    .session_icon {
                        display: none;
                    }
                    .layout_step_status {
                        position: relative;
                        cursor: pointer;
                        content: "";
                        display: flex;
                        width: 40px;
                        height: 40px;
                        border-radius: 50%;
                        box-sizing: border-box;
                        background: white;
                        background-color: #939393;
                        outline: 5px solid #FFFFFF;
                        &::before {
                            counter-increment: item;
                            content: counter(item);
                            color: white;
                            position: absolute;
                            top: 10px;
                            left: 15px;
                        }
                        &:hover::after {
                            content: attr(data-tooltip);
                            position: absolute;
                            top: 50px;
                            left: calc(0% + 60px);
                            transform: translateX(-50%);
                            padding: 4px 8px;
                            white-space: nowrap;
                            background: #333;
                            color: #fff;
                            border-radius: 4px;
                            z-index: 999;
                        }
                    }
                    .session_info {
                        .session_name {
                            --content-txt: '未着手';
                            &::after {
                                content: var(--content-txt);
                                background-color: #939393;
                                color: white;
                                border-radius: 8px;
                                padding: 2px 8px;
                                font-size: 1rem;
                                margin-left: 10px;
                            }
                        }
                    }
                }
                background-color: #ECECEC;
                border-color: lightgrey;
                &.current_step {
                    .portal_session_header {
                        .layout_step_status {
                            outline: 8px solid var(--ccg-portal-accent-outline, #BFEAD5) !important;
                            background-color: var(--ccg-portal-accent, #01956A) !important;
                        }
                        .session_info {
                            .session_name {
                                &::after {
                                    background-color: var(--ccg-portal-accent-2, #01956A) !important;
                                }
                            }
                        }
                    }
                    background-color: var(--ccg-portal-accent-card, #F2FBF6) !important;
                }
                &.done {
                    .portal_session_header {
                        .layout_step_status {
                            background-color: var(--ccg-portal-accent, #01956A) !important;
                            &::before{
                                content: "";
                                position: absolute;
                                left: 16px;
                                top: 10px;
                                width: 8px;
                                height: 15px;
                                border-right: 2px solid #fff;
                                border-bottom: 2px solid #fff;
                                transform: rotate(45deg);
                            }
                        }
                        .session_info {
                            .session_name {
                                &::after {
                                    color: var(--ccg-portal-accent, #01956A) !important;
                                    background-color: var(--ccg-portal-accent-bg, #DDF5E8) !important;
                                }
                            }
                        }
                    }
                }
                .section_content {
                    padding-left: 50px;
                    .portal-item {
                        width: calc((100% - 50px) / 3) !important;
                        position: relative;
                        border-color: lightgrey;
                        .portal-item-status {
                            position: absolute;
                            top: -8px;
                            left: -8px;
                            cursor: pointer;
                            content: "";
                            display: block;
                            width: 26px;
                            height: 26px;
                            border: 2px solid #939393;
                            border-radius: 50%;
                            box-sizing: border-box;
                            background: white;
                            &:hover::after {
                                content: attr(data-tooltip);
                                position: absolute;
                                left: 40px;
                                top: 120%;
                                transform: translateX(-50%);
                                padding: 6px 10px;
                                border-radius: 4px;
                                background: #333;
                                color: white;
                                white-space: nowrap;
                                z-index: 999;
                            }
                            &.done {
                                background: #939393;
                                &::before {
                                    content: "";
                                    position: absolute;
                                    left: 9px;
                                    top: 5px;
                                    width: 4px;
                                    height: 8px;
                                    border-right: 2px solid #fff;
                                    border-bottom: 2px solid #fff;
                                    transform: rotate(45deg);
                                }
                            }
                        }
                        &:has(.done) {
                            background-color: #ececec;
                            color: #939393;
                        }
                        .portal-item-comment-wrapper {
                            .portal-item-comments {
                                position: absolute;
                                top: 5px;
                                right: 5px;
                                --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/428.svg');
                                -webkit-mask: var(--icon-url) no-repeat center;
                                mask: var(--icon-url) no-repeat center;
                                transition: 0.3s;
                                width: 24px;
                                height: 24px;
                                background-color: #535354;
                                cursor: pointer;
                                z-index: 99;
                                -webkit-mask-size: contain;
                                mask-size: contain;
                            }
                            .portal-item-comment-popup {
                                width: 400px;
                                max-height: 350px;
                                border-radius: 10px;
                            }
                            &.has-comment {
                                .portal-item-comments {
                                    position: absolute;
                                    width: 24px;
                                    height: 24px;
                                    -webkit-mask: none;
                                    mask: none;
                                    background: transparent;
                                    &::before {
                                        content: '';
                                        position: absolute;
                                        inset: 0;
                                        background: #535354;
                                        mask: var(--icon-url) no-repeat center;
                                        -webkit-mask: var(--icon-url) no-repeat center;
                                        mask-size: contain;
                                        -webkit-mask-size: contain;
                                    }

                                    &::after {
                                        content: '';
                                        position: absolute;
                                        width: 10px;
                                        height: 10px;
                                        top: 0;
                                        right: 0;
                                        background: #e87331;
                                        border-radius: 50%;
                                    }
                                }
                            }
                        }
                    }
                }
                &:not(:last-child) {
                    position: relative;
                    &::before{
                        content: '';
                        background: #6C6C6C;
                        z-index: 666;
                        position: absolute;
                        top: 65px;
                        left: 30px;
                        width: 1px;
                        height: calc(100% - 40px);
                    }
                }
            }
        }
        .portal_layout_footer {
            display: flex;
            justify-content: end;
            color: #BF3A3A;
            cursor: pointer;
            width: fit-content;
            margin-left: auto;
            .portal_layout_icon {
                width: 22px;
                height: 22px;
                --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/430.svg');
                background-color: #BF3A3A;
                -webkit-mask-image: var(--icon-url);
                mask-image: var(--icon-url);
                -webkit-mask-repeat: no-repeat;
                mask-repeat: no-repeat;
                -webkit-mask-position: center;
                mask-position: center;
                -webkit-mask-size: contain;
                mask-size: contain;
            }
        }
    }
}
@media screen and (max-width: 1400px) {
    .component_layout_wrapper_portal.step-mode {
        .portal_layout_steps {
            gap: 10px;

            .layout_step {
                width: 80px;
                min-width: 0;

                .layout_step_name {
                    width: 100%;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                }

                &:not(:last-child)::after {
                    left: calc(50% + 20px);
                    width: calc(100% - 30px);
                }
            }
        }
    }

    .layout_step:first-child {
        .layout_step_status {
            &:hover::after {
                left: 70% !important;
            }
        }
    }

    .layout_step:last-child {
        .layout_step_status {
            &:hover::after {
                left: 25% !important;
            }
        }
    }
}
.no-select {
    user-select: none;
}

/*FOR 160888 - cố định portal menu*/
/* =========================================
   1. CORE PORTAL & LAYOUT
   ========================================= */

body:not(:has(.portal-menu-display)) {
    .nts_layout_setting_portal {
        left: 2px;
    }
}

body:has(.portal-menu-display) {
    .nts_layout_setting_portal {
        left: -10px;
    }
}
.portal-menu-display{
    top: var(--portal-layout-top, 54px);
}
.nts_layout_setting_portal.view-mode {
    position: absolute;
    top: var(--portal-layout-top, 54px);
}
.nts_layout_setting_portal {
    z-index: 99998;
    gap: 0px;
    width: var(--width-for-header, 90%);

    /* --- Cấu hình background cho nội dung --- */
    .nts_part_content_portal {
        background: #f3f4f6 !important;
        height: var(--portal-left-content-height, 98vh);

        /* Pallet Host */
        &.portal-pallet-host {
            width: auto;
            min-width: 0;
            flex: 0 0 var(--portal-pallet-collapsed-width, 30px);
            transition: flex-basis .2s ease;
            z-index: 99999;

            &.expanded {
                flex-basis: var(--portal-pallet-expanded-width, 250px);
            }
        }
    }

    .component_layout_wrapper_portal {
        padding: 35px;
    }

    /* =========================================
       2. PORTAL PALLET (THU GỌN / MỞ RỘNG)
       ========================================= */
    .nts_pallet_portal.collapsible {
        width: 100%;
        height: 100%;
        padding: 8px 0;
        border: none;
        box-shadow: inset -1px 0 0 #d6dde5;
        border-radius: 0;
        background: #fff;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;

        /* --- TRẠNG THÁI MỞ RỘNG --- */
        &.expanded {
            scrollbar-width: thin;

            /* Hiển thị lại các thành phần bị ẩn */
            .session_info,
            .session_setting {
                display: block;
            }

            .portal-category-items:not(.hidden),
            .portal-item-items:not(.hidden) {
                display: flex;
            }

            /* Định dạng lại header khi mở rộng */
            .portal-category-header,
            .portal-item-header,
            .home-portal-header {
                width: 218px;
                height: 42px;
                padding: 0 11px;
                justify-content: flex-start;
                margin-right: 5px;
                margin-left: 5px;
            }

            &.has-scrollbar {
                .portal-category-header,
                .portal-item-header,
                .home-portal-header {
                    width: 212px;
                }
            }

            /* Cho mũi tên hoạt động lại */
            .portal-category-header::after {
                display: block;
            }

            .session_name {
                width: 90%;
            }
        }

        /* --- TRẠNG THÁI THU GỌN --- */
        &.collapsed {

            scrollbar-width: none;
            &::-webkit-scrollbar {
                display: none;
                width: 0;
                height: 0;
            }
            /* Ẩn text, setting, submenu */
            .session_info,
            .session_setting,
            .portal-category-items,
            .portal-item-items,
            .add-section {
                display: none !important;
            }

            .nts_categories {
                gap: 8px;
            }

            .portal-category,
            .portal-item {
                gap: 0;
            }

            /* Định dạng lại header thành hình vuông/chữ nhật nhỏ chứa icon */
            .portal-category-header,
            .portal-item-header,
            .home-portal-header {
                width: calc(var(--portal-pallet-collapsed-width, 30px) - 5px);
                height: 42px;
                padding: 0;
                justify-content: center;
                align-items: center;
                border: none;
                border-radius: 6px;
                background: transparent;
                position: relative;
                box-sizing: border-box;

                /* Vạch màu xanh bên trái khi đang active_menu_portal ở chế độ thu gọn */
                &.active_menu_portal::before {
                    content: "";
                    position: absolute;
                    left: 0;
                    top: 0;
                    width: 5px;
                    height: 100%;
                    background: var(--ccg-portal-accent, #01956A) !important;
                }
            }

            /* Thu gọn thì ẩn mũi tên */
            .portal-category-header::after {
                display: none !important;
            }

            .session_icon {
                margin: 0;
                width: 20px;
                height: 20px;
                flex: 0 0 20px;
            }
        }
    }

    /* =========================================
       3. CATEGORY HEADER & HIGHLIGHTS
       ========================================= */
    .portal-category-header {
        position: relative;

        .session_icon {
            width: 20px;
            height: 20px;
        }

        /* Xử lý Highlight khi category active_menu_portal (chọn menuItem) */
        &.active_menu_portal {
            &::before {
                content: "";
                position: absolute;
                inset: 0 auto 0 0;
                width: 5px;
                background: var(--ccg-portal-accent, #01956A) !important;
                border-top-left-radius: 20px;
                border-bottom-left-radius: 20px;
            }

            &::after {
                content: "";
                position: absolute;
                right: 12px;
                top: 50%;
                width: 5px;
                height: 5px;
                border-top: 2px solid var(--ccg-portal-accent, #01956A) !important;
                border-right: 2px solid var(--ccg-portal-accent, #01956A) !important;
                transform: translateY(-50%) rotate(225deg);
            }
        }

        &:hover,
        &.hovering {
            background: #ECECEC !important;
            color: var(--ccg-portal-accent, #01956A) !important;
            color: #01956A;
            margin-left: 2px;
        }
    }

    .portal-category.view-mode {
        /* Ẩn mũi tên nếu item con trống */
        &:has(.portal-category-items:not(:empty)) > .portal-category-header::after {
            display: none;
        }
    }
}

.nts_layout_setting_portal.edit-mode {
    .portal-category-header.active_menu_portal {
        &::after {
            display: none;
        }
    }
}

/* =========================================
   4. POPUP ITEM MENU
   ========================================= */
.portal-category-popup {
    position: fixed;
    width: 200px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    padding: 4px 0;
    z-index: 99999;

    max-height: 435px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;

    &.hidden {
        display: none;
    }

    .portal-item {
        display: block;
        margin: 0;
        padding: 0;
        gap: 0;
    }

    .portal-item-header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        min-height: 36px;
        padding: 0 16px;
        margin: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-sizing: border-box;

        &:hover {
            background: #ECECEC;
            color: var(--ccg-portal-accent, #01956A) !important;
        }

        &.active_menu_portal {
            background: var(--ccg-portal-accent-bg, #DDF5E8) !important;
            color: var(--ccg-portal-accent, #01956A) !important;

            &::before {
                content: "";
                position: absolute;
                left: 0;
                top: 0;
                width: 4px;
                height: 100%;
                background: var(--ccg-portal-accent, #01956A) !important;
            }
        }

        .session_icon,
        .session_setting {
            display: none;
        }

        .session_info {
            display: flex;
            align-items: center;
            flex: 1;
            width: 100%;
            height: 100%;
        }

        .session_name {
            line-height: 2;
        }
    }

    .portal-item-items {
        display: none;
    }
}


/* =========================================
   5. LỚP PHỦ (OVERLAY) & TIỆN ÍCH
   ========================================= */
.view-mode.width-0 {
    width: 0px !important;
}
.use-for-portal, .portal-trigger-pg-name {
    margin-left: 50px !important;
}
/*
 * Chỉ tạo containing block khi overlay đang active_menu_portal.
 * Không thay đổi position của element ở trạng thái bình thường.
 */
.use-for-portal.portal-menu-overlay,
.portal-trigger-pg-name.portal-menu-overlay,
.contents-area.portal-menu-overlay {
    position: relative;
    height: 100%;
}

/*
 * Overlay chỉ tồn tại khi có class portal-menu-overlay.
 */
.use-for-portal.portal-menu-overlay::after,
.portal-trigger-pg-name.portal-menu-overlay::after,
.contents-area.portal-menu-overlay::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.25);

    z-index: 99997;

    pointer-events: none;
}
body:has(.nts_layout_setting_portal) .hamberger {
    z-index: 100000 !important;
}

body:has(.nts_layout_setting_portal) {
    .blockUI.blockOverlay {
        z-index: 100000 !important;
    }

    .blockUI.blockMsg {
        z-index: 100011 !important;
    }
}

body:has(.nts_layout_setting_portal) div#master-wrapper > div#header > div.user-info {
    z-index: 100000 !important;
}
body:has(.nts_layout_setting_portal) .ntsContextMenu {
    z-index: 99999 !important;
}
body:has(.nts_layout_setting_portal) .menu-dropdown.menu-item.menu-bar {
    z-index: 199999 !important;
}
body:has(.nts_pallet_portal.collapsible.expanded) .ui-dialog.no-close.ui-dialog-error.ui-widget.ui-widget-content.ui-front.ui-dialog-buttons.ui-draggable {
    z-index: 99995 !important;
}
/*css cho button pre-slider của menu cũ ở ipad*/
body:has(.nts_layout_setting_portal) .pre-slider {
    margin-left: 80px;
    margin-top: -5px;
}