.modal-dialog.ax-pm-dialog {
    max-width: 760px;
    width: 92%;
}

#chat {
    height: 640px;
}

#chat {
    overflow: hidden;
    border-radius: 3px;
}

#chat .main {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#chat .main {
    position: relative;
    overflow: hidden;
   /* background-color: #eee;*/
}

.m-message ul {
    margin: 0;
    padding: 0;
}

.m-message ul {
    list-style: none;
}

.m-message {
    padding: 10px 15px;
    overflow-y: scroll;
}

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

#chat .m-message {
    flex: 1;
    min-height: 0;
    height: auto;
}

#private_message_form {
    flex-shrink: 0;
}

.m-message li {
    margin-bottom: 15px;
}

.m-message .time {
    margin: 7px 0;
    text-align: center;
}

.m-message .time>span {
    display: inline-block;
    padding: 0 18px;
    font-size: 9pt;
    color: #fff;
    border-radius: 2px;
    background-color: #dcdcdc;
}

.m-message .self {
    text-align: right;
}

.m-message .avatar {
    float: left;
    margin: 0 10px 0 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.m-message .self .avatar {
    float: right;
    margin: 0 0 0 10px;
}

.m-message .text {
    display: inline-block;
    position: relative;
    padding: 0 10px;
    max-width: calc(100% - 40px);
    min-height: 30px;
    line-height: 2.5;
    font-size: 9pt;
    text-align: left;
    word-break: break-all;
    background-color: #fafafa;
    border-radius: 4px;
}

.m-message .self .text {
    background-color: #b2e281;
}

.m-message .text:before {
    content: " ";
    position: absolute;
    top: 9px;
    right: 100%;
    border: 6px solid transparent;
    border-right-color: #fafafa;
}

.m-message .self .text:before {
    right: inherit;
    left: 100%;
    border-right-color: transparent;
    border-left-color: #b2e281;
}

.m-message .text .pm-img {
    display: block;
    max-width: 420px;
    max-height: 480px;
    margin: 4px 0;
    border-radius: 4px;
    cursor: pointer;
}

.pm-img-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
}

.pm-img-btn svg {
    width: 18px;
    height: 18px;
    fill: #666;
}

.pm-preview {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0 6px 0 0;
    flex-shrink: 0;
}

.pm-preview.d-none {
    display: none;
}

.pm-preview img {
    max-width: 36px;
    max-height: 36px;
    border-radius: 4px;
}

.pm-preview-del {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #333;
    color: #fff;
    line-height: 16px;
    font-size: 14px;
    cursor: pointer;
}

.pm-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.75);
    cursor: zoom-out;
}

.pm-lightbox.is-open {
    display: flex;
}

.pm-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    cursor: zoom-in;
    transition: transform 0.15s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.pm-lightbox img.is-zoomed {
    cursor: zoom-out;
}

.ax-pm-reply {
    display: inline-block;
    color: #007bff;
    cursor: pointer;
    white-space: nowrap;
}