#PageMessaging {
    .tag-view-as {
        background: white;
        // border: 1px solid $mainPrimary;
        // color: $mainPrimary;
        border-radius: 5px;
        // svg {
        // color: $mainPrimary;
        // }
    }
    .btn-group-action {
        display: flex;
        gap: 5px;
        width: auto;
        flex-direction: column;

        @include atMin576 {
            width: 290px;
            flex-direction: row;
        }

        .ant-btn {
            border-radius: 3px;
            width: 100%;
            height: 40px;
            @include atMax425 {
                font-size: 19px;
            }
            @include atMin576 {
                width: 50%;
                height: auto;
            }

            svg {
                margin-left: 7px;
            }

            &.btn-chat {
                background-color: #2b8400;
                border-color: #2b8400;
                color: #ffffff;

                &:hover,
                &:focus {
                    // background-color: #2b8400;
                    // border-color: #2b8400;
                    // color: #ffffff;
                    background-color: #ffffff;
                    border-color: #2b8400;
                    color: #2b8400;
                }
            }
            &.btn-archived {
                background-color: #c80202;
                border-color: #c80202;
                color: #ffffff;

                &:hover,
                &:focus {
                    // background-color: #c80202;
                    // border-color: #c80202;
                    // color: #ffffff;
                    border-color: #c80202;
                    color: #c80202;
                    background-color: white;
                }
            }
            &.btn-chat-outline {
                background-color: #ffffff;
                border-color: #2b8400;
                color: #2b8400;

                &:hover,
                &:focus {
                    background-color: #ffffff;
                    border-color: #2b8400;
                    color: #2b8400;
                }
            }
            &.btn-archived-outline {
                border-color: #c80202;
                color: #c80202;

                &:hover,
                &:focus {
                    border-color: #c80202;
                    color: #c80202;
                }
            }
        }
    }

    .chat-wrapper {
        border: 1px solid #d9d9d9;
        display: flex;
        height: 70vh;

        .chat-users {
            overflow: hidden auto;
            height: calc(70vh - 2px);
            width: 290px;
            border-right: 1px solid #d9d9d9;
            // transition: background 0.3s,
            //     width 0.3s cubic-bezier(0.2, 0, 0, 1) 0s;

            &.has-collapse {
                width: 48px;
            }

            $scrollbar-2-thumb-width: 5px;
            $scrollbar-2-thumb-color: #1d85b8;
            $scrollbar-2-track-color: #eeeeee;

            // Chrome & Opera
            &::-webkit-scrollbar {
                width: $scrollbar-2-thumb-width;
                height: $scrollbar-2-thumb-width;

                &-track {
                    background-color: $scrollbar-2-track-color;
                }

                &-thumb {
                    background-color: $scrollbar-2-thumb-color;
                }

                &-track,
                &-thumb {
                    border-radius: 5px;
                }
            }

            --webkit-overflow-scrolling: touch;

            --scrollbar-color-thumb: var(--yellow);
            --scrollbar-color-track: #eeeeee;
            --scrollbar-width: thin;
            --scrollbar-width-legacy: 5px;

            scrollbar-color: var(--yellow) #eeeeee;
            scrollbar-width: thin;

            @include support_scrollbar_width_auto {
                scrollbar-color: var(--scrollbar-color-thumb)
                    var(--scrollbar-color-track);
                scrollbar-width: var(--scrollbar-width);
            }

            // Firefox
            // scrollbar-width: thin;
            // scrollbar-color: $scrollbar-2-thumb-color $scrollbar-2-track-color;

            .ant-menu {
                border: 0px;

                .ant-menu-item {
                    margin: 0px;
                    align-items: center;
                    padding-left: 11px !important;

                    &::after {
                        border-right: 0px;
                        position: inherit;
                    }

                    .ant-menu-item-icon {
                        width: 25px;
                        height: 25px;
                        border-radius: 50%;
                        object-fit: cover;
                    }

                    .ant-menu-title-content {
                        overflow: hidden;
                        min-width: 0;
                        text-overflow: ellipsis;
                    }

                    &.ant-menu-item-active,
                    &.ant-menu-item-selected {
                        background-color: #f2f2f2;
                        color: #2e3032;
                    }

                    &.chat-users-header {
                        background-color: #ffffff;
                        padding: 26px 15px !important;
                        display: flex;
                        cursor: auto;
                        color: #2e3032 !important;

                        .ant-menu-title-content {
                            display: flex;
                            align-items: center;
                            gap: 13px;

                            .chat-users-header-action {
                                margin-top: 3px;

                                .anticon {
                                    font-size: 17px;
                                    color: #8c53fb;
                                }
                            }

                            .chat-users-header-title {
                                font-size: 20px;
                                font-weight: 600;
                                line-height: normal;
                                margin-bottom: 1px;
                            }
                        }
                    }
                }

                &.ant-menu-inline-collapsed {
                    width: 48px;

                    .ant-menu-item {
                        .ant-menu-title-content {
                            overflow: visible;

                            .chat-users-header-action {
                                margin-top: 4px;
                            }
                        }

                        &.chat-users-header {
                            .ant-menu-title-content {
                                .chat-users-header-title {
                                    display: none;
                                }
                            }
                        }
                    }
                }
            }
        }

        .chat-discussion {
            width: calc(100% - 290px);
            display: flex;
            flex-direction: column;

            &.has-collapse {
                width: calc(100% - 48px);
            }

            .chat-message-form {
                display: flex;
                align-items: center;
                width: 100%;

                .ant-input-group-wrapper {
                    border-top: 1px solid transparent;
                    border-right: 1px solid transparent;
                    border-bottom: 1px solid #d9d9d9;
                    border-left: 1px solid transparent;
                    height: 52px;

                    &.ant-input-group-wrapper-focused {
                        border: 1px solid #1d85b8;
                    }

                    .ant-input-wrapper.ant-input-group {
                        height: 52px;

                        .ant-input {
                            height: 50px;
                            border: 0px;

                            &:focus {
                                box-shadow: none;
                            }
                        }

                        .ant-input-group-addon {
                            border: 0px;
                            padding: 0px;
                            background-color: transparent;

                            .ant-btn {
                                color: grey;
                                width: 49px;
                                height: 49px;
                                border-radius: 0px;

                                &:hover {
                                    color: #1d85b8;
                                }
                            }
                        }
                    }
                }

                .btn-submit {
                    width: 52px;
                    height: 52px;
                    border-top-color: transparent;
                    border-right-color: transparent;
                    border-radius: 0px;

                    &:hover {
                        border-top-color: #1d85b8;
                        border-right-color: #1d85b8;
                        border-bottom-color: #1d85b8;
                        background-color: #1d85b8;
                        color: #ffffff;
                    }
                }
            }

            .chat-discussion-list {
                width: 100%;
                height: calc(70vh - 52px);
                overflow: hidden auto;

                $scrollbar-2-thumb-width: 5px;
                $scrollbar-2-thumb-color: #1d85b8;
                $scrollbar-2-track-color: #eeeeee;

                // Chrome & Opera
                &::-webkit-scrollbar {
                    width: $scrollbar-2-thumb-width;
                    height: $scrollbar-2-thumb-width;

                    &-track {
                        background-color: $scrollbar-2-track-color;
                    }

                    &-thumb {
                        background-color: $scrollbar-2-thumb-color;
                    }

                    &-track,
                    &-thumb {
                        border-radius: 5px;
                    }
                }

                // Firefox
                // scrollbar-width: thin;
                // scrollbar-color: $scrollbar-2-thumb-color
                //     $scrollbar-2-track-color;

                --webkit-overflow-scrolling: touch;

                --scrollbar-color-thumb: var(--yellow);
                --scrollbar-color-track: #eeeeee;
                --scrollbar-width: thin;
                --scrollbar-width-legacy: 5px;

                scrollbar-color: var(--yellow) #eeeeee;
                scrollbar-width: thin;

                @include support_scrollbar_width_auto {
                    scrollbar-color: var(--scrollbar-color-thumb)
                        var(--scrollbar-color-track);
                    scrollbar-width: var(--scrollbar-width);
                }

                .chat-message {
                    width: 80%;
                    display: flex;
                    gap: 10px;
                    padding: 10px;

                    .message-avatar {
                        width: 35px;
                        height: 35px;
                        border-radius: 50%;
                        object-fit: cover;
                        @media (max-width: 576px) {
                            width: 45px;
                            height: 45px;
                        }
                    }

                    .message {
                        .title {
                            font-size: 14px;
                            line-height: 1;

                            .name {
                                color: gray;
                            }

                            .date {
                                margin-left: 5px;
                                font-size: 12px;
                                color: rgba(0, 0, 0, 0.4509803922);
                            }
                        }
                        .message-content {
                            word-break: break-word;
                        }
                    }

                    &.right {
                        float: right;
                        flex-direction: row-reverse;

                        .message {
                            .title {
                                float: right;
                            }
                            .message-content {
                                float: right;
                                text-align: right;
                            }
                        }
                    }
                }
            }
        }
    }
}
.ant-menu-inline-collapsed-tooltip {
    display: none;
}
