.lm-chat {
	display: flex;
	/* max-height: 100vh; /* Low prio, should be easy to override in themes */
	max-height: 500px; /* Low prio, should be easy to override in themes */
}
.lm-chat .sidebar {
	width: 200px;
	background: rgba(77, 57, 75, 0.25);
	color: rgb(202,196,201);
}
.lm-chat .sidebar ul {
	margin-left: 0;
	padding-left: 0;
}
.lm-chat input.text {
	border-radius: 4px;
	padding: 2px 4px;
	border: 2px solid #ccc;
	color: #333;
	width: auto;
	flex: 1;
}

.lm-chat .message {
	display: flex;
	margin-bottom: 2px;
}
.lm-chat .message .avatar {
	height: 48px;
	width: 48px;
	background-size: contain;
	background-repeat: no-repeat;
}
.lm-chat .message .body {
	flex: 1;
	margin-left: 10px;
}
.lm-chat .message .name {
	margin: 0;
	font-weight: bold;
}
.lm-chat .message time {
	margin-left: 4px;
}
.lm-chat .message .text {
}
.lm-chat .message .message-header {
	display: flex;
}
/* User list */
.lm-chat ul.chat {
	list-style-type: none;
}
.lm-chat ul.chat li {
	position: relative;
	padding-left: 0;
	margin-bottom: 0;
}
.lm-chat ul.chat li::before {
	position: absolute;
	top: 4px;
	left: 4px;
	display:  inline-block;
	content: ' ';
	border-radius: 50%;
	height: 16px;
	width: 16px;
	border: 1px solid black;
}
.lm-chat ul.chat li.a1::before { background-color: #85ee00;}
.lm-chat ul.chat li.a2::before { background-color: #6fc10d;}
.lm-chat ul.chat li.a3::before { background-color: #547f21;}
.lm-chat ul.chat li.a4::before { background-color: #556641;}
.lm-chat ul.chat li.a5::before { background-color: #5e5e57;}
.lm-chat ul.chat li.new-messages::before {
	content: "\2709";
	background: rgba(255,255,255,0.3);
	color: yellow;
	border: none;
	line-height: 12px;
	font-size: 30px;
	border-radius: 0;
	height: 12px;
	display: flex;
	justify-content: center;
	align-content: center;
	width: 19px;
	left: 4px;
	top: 7px;
}
.lm-chat ul.chat li a {
	padding: 4px 0 4px 25px;
	display: block;
	line-height: 18px;
}	
.lm-chat ul.chat li a.active {
	background-color: #4C9689;
	color: white;
}
/* Header */
#chat_header {
	display: flex;
	justify-content: space-between;
}
h1.channel-header {
	font-size: 1.5em;
	margin: 0;
}
#lm_chat_search_form {
	margin-right: 0;
}
/* Main area */
.lm-chat .main-area {
	flex: 1;
	background: white;
	margin-left: 10px;
	display: flex;
	flex-direction: column;
}
.lm-chat .main-area > * {
	width: 100%;
}
#lm_chat_messages_main {
	flex: 1;
	overflow: auto;
}
/* File uploads */
.lm-chat div.toggle-upload {
	padding: 4px;
	cursor: pointer;
}
.lm-chat .upload-file {
	display: flex;
	width: 100%;
	position: relative;
	overflow: hidden;	
}
.lm-chat .upload-file.hide {
	display: none;
}
.lm-chat .upload-file .filename {
	flex: 1;
	line-height: 43px;
	text-align: center;
}
.lm-chat .upload-file .btn {
	background: #a3a3a3;
	color: white;
	text-shadow: none;
	font-size: 12px;
	width: 110px;
	line-height: 43px;
	text-align: center;
}
div.main-inputs {
	display: flex;
}
.lm-chat .upload-file input.file {
	position: absolute;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	filter: alpha(opacity=0);
	opacity: 0;
}
#progress-wrp {
	border: 1px solid #0099CC;
	padding: 1px;
	position: relative;
	height: 30px;
	border-radius: 3px;
	margin: 10px;
	text-align: left;
	background: #fff;
	box-shadow: inset 1px 3px 6px rgba(0, 0, 0, 0.12);
}
#progress-wrp.hide {
	display: none;
}

#progress-wrp .progress-bar {
	height: 100%;
	border-radius: 3px;
	background-color: #f39ac7;
	width: 0;
	margin-left: 0;
	box-shadow: inset 1px 1px 10px rgba(0, 0, 0, 0.11);
}

#progress-wrp .status {
	top: 3px;
	left: 50%;
	position: absolute;
	display: inline-block;
	color: #000000;
}
/* New message notification, when on other page */
#lm_chat_note {
	display: block;
	position: fixed;
	right: 0;
	bottom: 0;
	font-size: 1.5em;
	color: red;
	border: 1px solid red;
	background: rgba(255,255,0,0.2);
	padding: 4px;
	z-index: 10;
}