// .page-message {
// 	.buttons-action {
// 		display: flex;
// 		gap: 10px;
// 	}
// }
// .chat-container {
// 	.ant-row .ant-col {
// 		display: flex;
// 	}

// 	.chat-users {
// 		width: 25%;
// 		border: 1px solid $color8;
// 		transition: width 0.125s;

// 		.chat-user-title {
// 			border-bottom: 1px solid $color8;
// 			text-align: center;
// 			padding-top: 4px;
// 			cursor: pointer;

// 			svg {
// 				font-size: 18px;
// 			}
// 			svg:hover {
// 				color: $color1;
// 			}
// 		}

// 		.users-list {
// 			overflow: hidden auto;
// 			height: 400px;

// 			.chat-user {
// 				padding: 8px 10px;
// 				border-bottom: 1px solid #e7eaec;
// 				cursor: pointer;
// 				display: flex;
// 				gap: 5px;
// 				height: 55px;

// 				.chat-avatar {
// 					width: 36px;
// 					height: 36px;
// 					border-radius: 50%;
// 				}

// 				.chat-user-name {
// 					padding: 10px;
// 					font-weight: 600;
// 				}

// 				.chat-user-name:hover .ant-typography {
// 					color: $color1;
// 					font-weight: 600;
// 				}
// 			}
// 		}
// 	}

// 	.chat-users.has-minimize {
// 		width: 6%;
// 	}

// 	.chat-discussion {
// 		background: #eee;
// 		height: 430px;
// 		width: 75%;
// 	}
// 	.chat-discussion.has-minimize {
// 		width: 94%;
// 	}

// 	.form-create-message {
// 		padding: 15px;

// 		.float-label {
// 			width: 100%;
// 		}
// 	}

// 	.chat-message-container {
// 		height: 430px;
// 		padding: 15px;
// 		overflow-y: auto;
// 	}

// 	.chat-message {
// 		padding: 10px 20px;
// 		background-color: #fff;
// 		border: 1px solid #e7eaec;
// 		display: block;
// 		padding: 10px 20px;
// 		position: relative;
// 		border-radius: 10px;
// 		width: 80%;
// 		margin-top: 10px;
// 	}
// 	.chat-message .message {
// 		text-align: justify;
// 	}
// 	.chat-message:first-child {
// 		margin-top: 0px;
// 	}
// 	.chat-message.left {
// 		float: left;
// 		background-color: #e4e6eb;
// 	}
// 	.chat-message.right {
// 		float: right;
// 		background-color: $color1;
// 		color: $white;
// 	}
// }
.view-as-modal {
    .ant-form-item-explain-error {
        margin-bottom: 0px;
    }
}
.page-message {
    border: none;
    & .ant-card-body {
        padding: 0 10px 24px 10px;
        @media (min-width: 380px) {
            padding: 0 24px 24px 24px;
        }
    }

    .image-previewgroup-wrapper {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        width: 100%;
        padding-top: 10px;

        .image-wrapper {
            width: 100px;
            height: 100px;

            .attachment-uploaded-item-image {
                height: 100px;

                .ant-image {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 100%;
                    height: 100%;

                    .ant-image-img {
                        object-fit: cover;
                        height: 100%;
                    }
                }
            }

            .attachment-uploaded-item-video {
                .react-player-video-wrapper {
                    width: 92px !important;
                    height: auto !important;
                }
            }

            .attachment-uploaded-item-document {
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 32px;
                cursor: pointer;
                background: aliceblue;
            }
        }

        .audio-wrapper {
            display: flex;
            width: 250px;

            .attachment-uploaded-item-audio {
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 32px;
                cursor: pointer;

                .react-player-audio-wrapper {
                    width: 250px !important;
                    height: auto !important;

                    audio {
                        height: 60px !important;
                    }
                }
            }
        }
    }
}

.messagesContainer .messageText .ant-input.ant-input-lg {
    padding: 16px 37px 16px 21px !important;
    font-size: 19px;
    border-radius: 0;
    height: 50px;
    @media (min-width: 576px) {
        font-size: 14px;
    }
}

.messageText {
    .btn-message-send {
        position: absolute;
        right: 5px;
        bottom: 3px;
    }
    .upload-btn-container {
        border-left: 1px solid #d9d9d9;
        background: #fafafa;
        width: 50px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 12px;
    }
    @include atMax425 {
        .message-text-area {
            font-size: 19px;
        }
        .btn-message-send {
            bottom: 7px;
        }
        .upload-btn-container {
            padding-bottom: 16px;
        }
    }
    .type-message-input {
        .ant-input {
            border-left: 1px solid transparent;
        }
        .ant-input:focus {
            border: 1px solid #1d85b8;
        }
        .ant-input:hover {
            border: 1px solid #1d85b8;
        }
    }

    & .ant-input-group-addon {
        padding: 0px;
        & i {
            font-size: 18px;
            color: gray !important;
            @media (min-width: 576px) {
                font-size: 20px;
            }
        }

        & svg {
            color: gray;
            font-size: 16px;
        }

        & button[type="button"] {
            width: 45px;
            height: 48px;
            // border: 1px solid #d9d9d9;
            @media (max-width: 576px) {
                width: 50px;
                height: 48px;
            }
        }

        & button.ant-btn[disabled] {
            border-color: transparent !important;
        }
    }
    & .ant-input-group-addon:hover {
        & svg {
            color: white;
            font-size: 16px;
        }
    }
    & .ant-btn.ant-btn-link.ant-btn-icon-only {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-left: none !important;
    }

    & .the-message-button:hover {
        border: none;
        background-color: var(--yellow);
    }

    & .the-message-button:hover i {
        color: white !important;
    }

    & .upload-icon {
        position: absolute;
        z-index: 99;
        font-size: 16px;
        right: 0px;
        margin-right: 65px;
        margin-top: 18px;
        color: gray;

        // @media (max-width: 576px) {
        //     font-size: 16px;
        //     margin-right: 67px;
        // }
    }

    & .ant-btn {
        border-radius: 0 !important;
    }
}

.messagesContainer {
    border-right: none !important;
    border-top: none !important;
    border: 1px solid #ddd;

    & .ant-layout-sider-children {
        margin-top: 0;
    }

    & :not(.ant-layout-sider-collapsed) .anticon.anticon-menu-unfold {
        padding: 5px 0;
    }

    & .anticon.upload-icon {
        color: gray;

        &:hover {
            color: #e1492a;
        }
    }
}
.messagesContainer .site-layout-background {
    padding: 0px;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.messagesContainer .ant-layout-sider {
    border-right: 1px solid #ddd;
    position: inherit;
    z-index: 1;
    position: relative;

    background-color: transparent;

    .ant-layout-sider-children {
        background-color: #fff;
    }

    .ant-layout-sider-trigger {
        position: absolute;
        border-bottom: 1px solid #ddd;
        height: 37px;
        line-height: 37px;
        top: 0;
    }
}

.messagesContainer .ant-layout-sider.ant-layout-sider-collapsed {
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    @media (max-width: 576px) {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
    }
}
.messagesContainer
    .ant-layout-sider.ant-layout-sider-collapsed
    .ant-layout-sider-children
    .ant-menu.ant-menu-inline-collapsed {
    width: 47px !important;
    @media (max-width: 576px) {
        width: 70px !important;
        min-width: 70px !important;
        max-width: 70px !important;
    }
    .ant-menu-item {
        .ant-menu-title-content {
            display: none !important;
            transition: all 0.3s;
        }
    }
}
.messagesContainer
    .ant-layout-sider.ant-layout-sider-collapsed
    .ant-layout-sider-trigger {
    width: 48px !important;
}

.messagesMenu .ant-menu-item-selected {
    background-color: $warning;
    color: #fff;
}
.messagesMenu .ant-menu-item-selected:hover {
    color: #fff;
}

.messagesMenu .ant-menu-item:not(.ant-menu-item-selected):hover {
    color: #fff;
}

.messagesMenu .ant-menu-item {
    // padding-left: 12px !important;
    padding-left: 11px !important;
}

.messageRight {
    padding: 10px;
    word-wrap: break-word;
    border-radius: 18px;
    clear: both;
    font-size: 19px;
    @media (min-width: 576px) {
        padding: 10px;
        font-size: 14px;
    }
    .message-avatar {
        width: 35px;
        height: 35px;
        margin-right: 5px;
        border-radius: 50%;
        object-fit: cover;
        @media (max-width: 576px) {
            width: 45px;
            height: 45px;
        }
    }

    & .messageNameDate {
        display: flex;
        flex-direction: column;
        @media (min-width: 576px) {
            display: block;
        }
        & .messageDate {
            font-size: 12px;
            @media (max-width: 576px) {
                font-size: 16px;
            }
        }
    }
}

// .messageRight span {
//   padding: 10px;
//   border: 1px solid #ddd;
//   background: #2a3a56;
//   color: #fff;
//   max-width: 564px;
//   word-wrap: break-word;
//   border-radius: 18px;
// }

// .messageLeft:first-child {
// margin-top: 55px;
// }
.messageLeft {
    padding: 10px;
    word-wrap: break-word;
    border-radius: 18px;
    clear: both;
    font-size: 19px;
    @media (min-width: 576px) {
        padding: 10px;
        font-size: 14px;
    }
    .message-avatar {
        width: 35px;
        height: 35px;
        margin-right: 5px;
        border-radius: 50%;
        object-fit: cover;
        @media (max-width: 576px) {
            width: 45px;
            height: 45px;
        }
    }
    & .messageNameDate {
        display: flex;
        flex-direction: column;
        @media (min-width: 576px) {
            display: block;
        }
        & .messageDate {
            font-size: 12px;
            @media (max-width: 576px) {
                font-size: 16px;
            }
        }
    }
}

// .messageLeft span {
//   padding: 10px;
//   border: 1px solid #ddd;
//   background: #e4e6eb;
//   max-width: 564px;
//   word-wrap: break-word;
//   border-radius: 18px;
// }

.messagesUserRow {
    cursor: pointer;
}

.messagesUserRow:hover {
    background: #ddd;
}

.messageConvoContainer {
    // position: relative;
    // top: 50px;
    border-right: 1px solid #ddd;
    padding: 10px 10px 10px 10px;
    overflow-y: auto;
    height: 100%;
    // margin-top: 50px;
    padding-top: 50px;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) #eeeeee;

    @media (min-width: 576px) {
        // margin-top: 50px;
    }

    &::-webkit-scrollbar-track {
        margin-bottom: 53px;
        margin-top: 0px;
        @media (min-width: 576px) {
            margin-top: 0;
            margin-bottom: 59px;
        }
    }

    & .messageSapceGap {
        gap: 3px !important;
        @media (min-width: 576px) {
            gap: 5px !important;
        }
    }

    & .ant-space .ant-space-item:nth-child(3) span div:nth-child(2) {
        word-break: break-word;
    }
}
.add-fixed-height-mobile {
    @media (max-width: 767px) {
        height: 81.7vh !important;
        width: 100%;
    }
}
.messagesContainer {
    height: 82vh;
    margin-top: 20px;
    width: 100%;

    @media (min-width: 768px) {
        height: 510px;
        width: 100%;
    }

    // @include atLarge {
    //     height: 82vh;
    //     margin-top: 20px;
    //     width: 100%;
    // }

    // @media (min-width: 1100px) {
    //     width: 75%;
    //     height: 82vh;
    // }

    &.ant-layout .ant-layout-sider:not(.ant-layout-sider-collapsed) {
        flex: 0 0 200px !important;
        max-width: 200px !important;
        min-width: 200px !important;
        width: 200px !important;
        scrollbar-width: thin;
        scrollbar-color: var(--yellow) #eeeeee;
        @media (min-width: 1100px) {
            flex: 0 0 290px !important;
            max-width: 290px !important;
            min-width: 290px !important;
            width: 290px !important;
        }
    }

    .ant-layout-sider:not(.ant-layout-sider-collapsed) {
        @include vid768 {
            position: absolute;
            overflow: hidden auto;
            height: 510px;
            border-bottom: 1px solid #ddd;
        }

        @include atsm {
            border-bottom: 0px;
        }
    }
}
.messagesContainer .site-layout-background {
    padding: 0px;
    min-height: 280px;
    position: relative;
}

.messagesContainer .ant-layout-sider {
    border-right: 1px solid #ddd;
    border-top: 1px solid #ddd;
    position: inherit;
    z-index: 1;
    position: relative;
    overflow: hidden auto;
    scrollbar-width: thin;
    scrollbar-color: var(--yellow) #eeeeee;
    // height: auto;
    // height: 400px;

    background-color: transparent;

    .ant-layout-sider-children {
        background-color: #fff;
        // border-bottom: 1px solid #ddd;
        // border-left: 1px solid #ddd;
        // height: auto;
        // max-height: 292px;
    }

    .ant-layout-sider-trigger {
        position: absolute;
        border-bottom: 1px solid #ddd;
        height: 37px;
        line-height: 37px;
        top: 0;
    }

    &::-webkit-scrollbar {
        display: none;
    }
}

.the-message-modal {
    .ant-modal-title,
    .image-item,
    .ant-input.ant-input-lg,
    .ant-modal-footer .ant-btn {
        @media (max-width: 576px) {
            font-size: 19px !important;
        }
    }
    & .ant-modal-header {
        background-color: $primary;
    }

    & .ant-modal-body {
        padding: 0 20px 20px 20px !important;
    }

    & .ant-upload-list-picture-container {
        margin-top: -1px !important;
        .file-video-thumbnail {
            height: 60px !important;
            width: 60px !important;
        }
    }

    & .ant-upload-list-picture-container:first-child .ant-upload-list-item {
        margin-top: 0;
    }

    &
        .ant-upload-list-picture-container:not(:first-child)
        .ant-upload-list-item {
        margin-top: 22px;
    }

    & .ant-modal-footer {
        padding: 20px 24px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        @media (min-width: 576px) {
            flex-direction: row !important;
            justify-content: end !important;
        }

        & .ant-btn {
            + .ant-btn:not(.ant-dropdown-trigger) {
                margin-bottom: 0 !important;
                margin-left: 0 !important;
            }
            @media (max-width: 576px) {
                height: 40px;
            }
        }

        & button:nth-child(2) {
            margin-right: 0 !important;
        }
    }

    & .ant-upload-list-item-card-actions-btn {
        // background-color: $mainSecondary;
        & span {
            // color: white;

            & svg {
                color: #e1492a;
            }
        }

        &:hover {
            background-color: transparent;
            border-color: transparent;
        }
    }
}

.messagesUserRowDiv {
    position: absolute;
    background: #eee;
    width: 98%;
    z-index: 2;
}

.messagesMenu .ant-menu-item.ant-menu-item-selected {
    background-color: #f2f2f2 !important;
    color: #2e3032 !important;
}

.messagesMenu .ant-menu-item:hover {
    // background-color: $s4messageselected !important;
    // color: #2e3032 !important;
    background-color: #f2f2f2 !important;
    color: #2e3032 !important;
}
.messagesMenu .ant-menu-item::after {
    border-right: none !important;
}
.messageNameDate {
    color: #00000073;
}

.ChatMessageText {
    padding: 10px 15px;

    @media (min-width: 576px) {
        padding: 10px 15px;
    }
    .btn-sider-toggle {
        position: relative;
        top: 2px;
        font-size: 17px;

        @media (max-width: 576px) {
            top: 1px;
            left: 7px;
            font-size: 25px;
        }
    }
    .btn-sider-toggle-text {
        margin-left: 9px;
        margin-bottom: 0;
        white-space: nowrap;
        @media (max-width: 576px) {
            margin-top: 5px;
            margin-left: 20px;
        }
    }

    .btn-sider-toggle:not(.collapsed) {
        right: 4px;
    }
}
.chatTrigger {
    gap: 100% !important;
}
.gapButtonsMessages {
    gap: 15px !important;
}
.messagesUserRowDiv {
    position: absolute;
    background: #eee;
    width: 98%;
    z-index: 2;
}
.rowMessageSearch {
    margin-top: 20px;
}
.messageSearchName .float-label input {
    height: 45px !important;
}

.message-no-archived {
    // border-top: 1px solid #ddd;
    border-right: 1px solid #ddd;

    & .messageConvoContainer {
        border-right: 0 !important;
    }

    & .messageText .ant-input-group-addon {
        border-right: 0;
    }
}

/* Media Query for Large screens */
@media (min-width: 1281px) {
}

/* Media Query for Laptops and Desktops */
@media (min-width: 1025px) and (max-width: 1280px) {
}

/* Media Query for Tablets Ipads portrait mode */
// @media (min-width: 768px) and (max-width: 1024px) {
//     .page-message {
//         .ChatMessageText > .ant-row .ant-col > .ant-typography {
//             font-size: 18px;
//         }
//     }
// }

/* Media Query for Tablets, Ipads and below  */
@media (max-width: 768px) {
    .chat-container {
        .chat-users {
            width: 30%;
        }
        .chat-discussion {
            width: 70%;
        }
    }
}

/* Media Query for low resolution  Tablets, Ipads */
@media (min-width: 481px) and (max-width: 767px) {
    .page-message {
        .buttons-action {
            flex-direction: column;
        }

        .messagesContainer .ant-layout-sider {
            display: block;
        }
    }
    .chat-container {
        .chat-users {
            width: 60%;
        }
        .chat-discussion {
            width: 40%;
        }
    }
}

/* Media Query for Mobile Devices */
@media (max-width: 575px) {
    .page-message {
        .messageSearchName {
            margin-top: 6px;
        }

        .messagesContainer .ant-layout-sider {
            display: block;
        }
    }

    .messagesContainer .ant-layout-sider {
        margin-top: 0px;
    }
    // .messagesContainer {
    // margin-top: 0px !important;
    // }
}

@media (max-width: 480px) {
    .page-message {
        .buttons-action {
            flex-direction: column;
        }

        .ant-space-message-buttons {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 8px !important;
            margin-bottom: 10px;
            .ant-space-item {
                width: 100%;
                .ant-btn {
                    width: 100%;
                }
            }

            @media (min-width: 576px) {
                margin-bottom: 0;
            }
        }
    }
    .chat-container {
        .chat-users {
            width: 60%;
        }
        .chat-discussion {
            width: 40%;
        }
    }
}

@media (max-width: 375px) {
}

@media (max-width: 320px) {
}

.messagesMenu {
    border: none;
    .menu-avatar {
        width: 25px;
        height: 25px;
        border-radius: 50%;
        object-fit: cover;

        @media (max-width: 576px) {
            width: 45px;
            height: 45px;
        }
    }

    .ant-dropdown-trigger {
        @media (max-width: 576px) {
            line-height: 60px !important;
            height: 60px !important;
        }
    }
}
