#chatList {
    height: -webkit-fill-available;
    height: -moz-available;
    width: 380px;
}

#chatListSearch {
    height: 100%;
    padding: 0px 5px;
}

#chatList .chatGroupNameList {
    margin-top: 5px;
    font-weight: bold;
    font-size: 1.1em;
}

#chatList .chatListItem {
    height: 45px;
    padding: 0px 5px;
    margin-right: 5px;
}
#chatList .chatListItem:not(:first-child) {
    border-top: 1px solid grey;
}
#chatList .chatListItem:hover {
    background-color: #dddddd
}
#chatList .chatListItem.selected {
    background-color: #dddddd
}

#chatList .lastMsg {
    margin-bottom: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 300px;
}

#chatList .lastMsgDateTime {
    margin-top: 5px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 65px;
    text-align: right;
}
#chatList .chatListItem.hasNewMsg .lastMsgDateTime {
    font-weight: bold;
}

#chatList .newMsgInChatIndicator {
    display: none;
    position: absolute;
    right: 0px;
    bottom: 5px;
    height: 16px;
    width: 16px;
}
#chatList .chatListItem.hasNewMsg .newMsgInChatIndicator {
    display: unset;
}

#chatMsgContainer {
    width: 700px;
    border-left: 1px solid grey;
    padding: 0px 5px;
}

.chatBubble {
    margin: 5px 10% 5px 0px;
}
.chatBubble .msg {
    padding: 10px;
    background-color: #eeeeee;
    border-radius: 5px;
    white-space: pre-wrap;
}
.chatBubble.self {
    margin: 5px 0px 5px 10%;
}
.chatBubble.self .msg {
    background-color: #32b7ec44;
}

.msgMeta {
    margin: 3px 5px 5px 5px;
}

#chatHeader {
    border-bottom: 1px solid grey;
}

#chatGroupNameHeader {
    line-height: 32px;
    font-weight: bold;
    margin-left: 10px
}

#chatGroupInfo {
    width: 250px;
    border-right: 1px solid grey;
    margin: 5px 5px 70px 0px;
    padding-right: 5px;
}

.chatGroupParticipantsContainer {
    margin-top: 5px;
}

.chatGroupParticipants {
    margin-left: 5px;
}

.chatGroupParticipants>div {
    margin-top: 5px;
}

.chatGroupAdminIcon, .chatGroupNoAdminIcon {
    float: right;
    margin: 0px 5px;
}
#chatMsgContainer[isAdmin='true'] .chatGroupAdminIcon,
#chatMsgContainer[isAdmin='true'] .chatGroupNoAdminIcon {
    cursor: pointer;
}

.chatGroupCommentingAllowedIcon, .chatGroupCommentingDisallowedIcon {
    float: right;
}
#chatMsgContainer[isAdmin='true'] .chatGroupCommentingAllowedIcon,
#chatMsgContainer[isAdmin='true'] .chatGroupCommentingDisallowedIcon {
    cursor: pointer;
}

.removeParticipantIcon {
    margin-left: 5px;
    cursor: pointer;
    display: none;
}
#chatMsgContainer[isAdmin='true'] .removeParticipantIcon,
#chatMsgContainer[isAdmin='true'] .placeholderIcon {
    display: unset;
}

.placeholderIcon {
    height: 16px;
    width: 16px;
    margin-left: 5px;
    display: none;
}

#chatContent {
    height: 650px;
    overflow-y: auto;
    margin: 2px 0px;
}

.chatBubble:not(.self) .msgSender {
    border-right: 1px solid grey;
    padding-right: 5px;
    margin-right: 5px;
}

#chatTextarea, #chatTextareaDummy {
    height: 60px;
    resize: none;
    margin-right: 5px;
}
#chatTextareaDummy {
    border: 1px solid #767676;
    outline: none;
    line-height: 60px;
    text-align: center;
}
#chatMsgContainer[commentingAllowed='false'] #emoji-button,
#chatMsgContainer[commentingAllowed='false'] #chatTextarea,
#chatMsgContainer[commentingAllowed='false'] #sendChatMsgButton,
#chatMsgContainer[commentingAllowed='true'] #chatTextareaDummy {
    display: none;
}

#newChatSelection tr.selected {
    background-color: #32b7ec66;
}

.newChatFilterDisplay {
    width: 250px;
    border: 1px solid grey;
    white-space: pre-wrap;
    max-height: 100px;
    min-height: 1.5em;
    float: left;
    overflow-y: auto;
}

.allowCommentButton,
.disallowCommentButton {
    float: right;
    cursor: pointer;
}

.loadingMoreMsgsIndicator {
    text-align: center;
}
