/* Basic */

.tab {
	display: block;
	padding: 10px 0;
}

a.tab {
	text-decoration: none;
	outline: none;	
	color: #888080;
	font-size: 14px;
}

.strong {
	font-weight: bold;	
}

#text-messages .media-body {
	cursor: text;
	word-break: break-word;
}

.no-margin {
	margin: 0;	
}

.tab:hover, .active-tab {
	background: #dee2e6;	
}

.media, .media .media {
	margin-top: 0!important;	
}

.media-body {
	position: relative;
}

.media-body .float-end {
	text-align: right;
}

.media-object img {
	border-radius: 6px;
}

.chat-unread-msg {
	position: absolute;
	top: 0;
	left: 0;
	background: green;
}

.chat-time {
	display: block;
}

.chat-name {
	font-weight: 600;
	font-size: 14px;
}

.padding-none {
	padding: 0;	
}

.border-none {
	border: none;	
}

.border-right {
	border-right: 1px solid #e6e6e6;	
}

.innerBox {
	padding: 15px;
	overflow: hidden;
}

.innerBox-top {
	padding-top: 10px;	
}

.innerBox-half {
	padding: 5px;	
}

.innerBox-right {
	padding-right: 10px!important;	
}

.innerBox-left {
	padding-left: 10px;	
}

.innerBox-topbottom {
	padding: 10px 0;
	overflow: hidden;
}

.bg-gray {
	background: #f9f9f9;	
}

#loadingDiv {
	position: absolute;
	left: 50%;
	top: 20px;
}

#loadingDiv, #loadingDiv-chats, #loadingDiv-contacts {
	background: url(../img/ajaxloader.gif);
	margin: 10px;	
	width: 16px;
	height: 16px;
	display: none;
}

#loadingDiv-chats, #loadingDiv-contacts {
	float: left;
	margin-top: 0;	
	margin-right: 0;
}

/* end Basic */

.messages-box {
	color: #797979;	
}

.messages-box .borders {
	border: 1px solid #e6e6e6;	
	overflow: hidden;
}

.msg-time {
	font-size: 11px;
	display: block;
	line-height: 180%;
}

ul#messages-stack-list-chats, 
ul#messages-stack-list-contacts, 
#text-messages {
	height: 480px;
}

ul#messages-stack-list-chats li,
ul#messages-stack-list-contacts li {
	cursor: pointer;	
	clear: both;
}

#messages-stack-list-chats li.active {
	background: #f9f9f9;
}

#messages-stack-list-chats li:hover {
	background: #f9f9f9;
}

.messages-box .row {
	margin: 0;
}

.nav-tabs .chats-tab a {
	border-top-left-radius: 0;
	border-left: 0;
}

#contacts-search {
	padding-top: 20px;
}

#all-search-input {
	padding: 10px 15px 10px;
	line-height: 1.5;
	border: none;
	background: #f9f9f9;
	border-radius: 10px;
	font-size: 12px;
	font-weight: normal;
}

.search-input-clear-btn {
	display: none;
}

#text-messages-request {
	height: 100%;
	position: relative;
}

.select-chat-wrapper {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	top: 0;
	display: flex;
	align-content: center;
	justify-content: center;
	align-items: center;
}

.select-chat-wrapper i {
	color: #000;
	font-size: 30px;
	display: block;
}

.select-chat-wrapper p {
	text-align: center;
	font-size: 18px;
}

.messages-box .listWrapper,
.messages-box .messageWrapper {
	padding: 0;
}

.messages-box .listWrapper {
	border-right: 1px solid #e6e6e6;
	height: 600px; /* must stay due to simplebar */
}

.messages-box .border-bottom {
	border-bottom: 1px solid #e6e6e6;	
}

.messages-box .border-top {
	border-top: 1px solid #e6e6e6;	
}

.messages-box .active-message {
	background: #ededed;
	color: #3a92c8;	
}

.messages-box a.text-inverse {
    color: #424242;
    outline: 0 none!important;
}

.chat-style {
	padding: 5px;
	border: 1px solid #e6e6e6;
	border-radius: 3px;
	-moz-border-radius: 3px;
	-webkit-border-radius: 3px;	
}

.chat-style.you {
	background: #f0fbff;
}

.remove-message {
	cursor: pointer;
	font-size: 22px;
	position: relative;
	right: -8px;
	top: -3px;
}

#last-seen {
	font-size: 11px;
	font-weight: normal;	
	color: #333333;
	z-index: 99999;
}

.online-indicator {
	display: inline-block;
    font-size: 10px;
	right: 8px;
    width: 10px;
    height: 10px;
    background: #33d058;
    border-radius: 50%;
}

#chat-toolbar {
	background: #48b6f9;
	padding: 5px 15px 5px 15px;
	margin-bottom: 0;
	font-size: 15px;
}

#chat-toolbar a {
	color: #fff;
	text-decoration: none;	
	margin-right: 10px;
}

label#inline-checkbox {
	display: inline-block;
    text-indent: -15px;	
}

label#inline-checkbox input {
    padding: 0;
    margin:0;
    vertical-align: middle;
}

label#inline-checkbox span {
	vertical-align: middle;
	padding-top: 2px;	
}

.search-input-clear-btn {
	position: absolute;
	right: 40px;
	top: 7px;
	font-size: 16px;
	cursor: pointer;
}

#send-location-btn {
	display: none;
}

.emoticons {
	cursor: pointer;	
}

.embed-emoticon {
	width: 32px;
	height: 32px;	
}

.map-embed {
	width: 100%;
	height: 300px;	
}

.modal {
	overflow-y: auto;	
}

.modal-dialog.modal-sm {
	max-width: 645px;
	width: 100%;
}

.uploadifive-button {
	border: none!important;
	background: none!important;
	background-color: #48b6f9!important;
	text-shadow: none!important;
	box-shadow: none!important;
	border-radius: 4px!important;
	margin-bottom: 10px!important;
}

.uploadifive-button:hover {
	background-color: #6dc6fd!important;
}

.msg-download-item {
	text-decoration: none;
}

.msg-emoji {
	width: 28px;
	height: 28px;
}

/* start chat template */
#text-messages-request .list-inline {
	display: flex;
}

.chat-head {
	position: relative;
	display: flex;
	align-items: center;
	padding: 15px 20px;
}

.media-group {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.media-group .media {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.media-group .media img {
	height: 65px;
	width: 65px;
	border-radius: 50%;
	object-fit: cover;
}

.media-col {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 0.25rem;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
}

.media-row {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	max-width: 100%;
	white-space: nowrap;
}

.media-col .name {
	margin-bottom: 0;
	color: #000;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.chat-search-btn {
	margin-right: 12px;
}

.chat-search {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	padding: 0.25rem 0;
	background: #fff;
	box-shadow: inset 0 -1px 0 #ddd;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: 0.3s ease;
}

.chat-search.active {
	opacity: 1;
	visibility: visible;
	background: #fff;
	z-index: 10;
	border-top: 1px solid #e6e6e6;
	padding: 18px 20px 0 20px;
}

.form-control-icon {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	bottom: 7px;
	left: 10px;
}

.form-control-plaintext-wrap {
	position: relative;
	top: -8px;
}

.form-control-plaintext {
	display: block;
	width: 100%;
	padding: 5px 30px 5px;
	margin-bottom: 0;
	line-height: 1.5;
	color: #64748b;
	background-color: transparent;
	border: 1px solid #efefef;
}

.chat-messages-window {
	display: flex;
	flex-direction: column-reverse;
	height: 75%;
	max-height: 425px;
}

.chat-messages-window {
	overflow-y: auto;
	padding: 20px 25px 0 25px;
	border-top: 1px solid #e6e6e6;
}

.chat-form {
	display: flex;
	align-items: flex-end;
	background: #fff;
	border-top: 1px solid #e6e6e6;
}

.chat-form-enter {
	padding: 0;
	flex-grow: 1;
	display: flex;
	align-items: flex-end;
	padding: 0 15px 0 0;
	position: relative;
	top: -15px;
}

.chat-form-insert {
	padding: 15px 15px 0 15px;
}

.chat-form-insert ul {
	display: flex;
}

.chat-form-input {
	flex-grow: 1;
	overflow: auto;
	background-color: #f9f9f9;
	margin-right: 10px;
	padding: 10px;
	font-size: 12px;
	border-radius: 6px;
	height: 38px;
	word-break: break-all;
}

.emoji-picker__wrapper {
	display: block;
	position: absolute;
	right: 0;
	left: 40px;
	bottom: 40px;
}

.img-emoji {
	padding-right: 5px;
}

.list-links {
	padding: 0;
}

.list-links li {
	padding: 0 5px;
}

.map-embed {
	width: 600px;
}

/**** S/R Messages Position ****/	
.messages-layout {
	list-style: none;
	margin-bottom: 0;
	padding: 0;
}

.messages-layout .highlight {
	background-color: yellow;
}

.messages-layout .date-header {
	text-align: center;
	background: #4b5c75;
	color: #fff;
	border-radius: 15px;
	width: max-content;
	padding: 5px 20px;
	margin: 0 auto;
}

.messages-layout li.sender,
.messages-layout li.receiver {
	display: flex;
	margin-bottom: 20px;
}

.messages-layout li.sender {
	justify-content: end;
}

.messages-layout li.receiver {
	justify-content: start;
}

.messages-layout li.sender .message-area {
	float: right;
	text-align: right;
}

.messages-layout li.receiver .message-area {
	float: left;
	text-align: left;
}
	
.messages-layout li.sender > a, 
.messages-layout li.receiver > a  { 
	display: block;
	position: absolute; 
	top: 0;  
}

.messages-layout li.sender > a { 
	left: 0; 
}

.messages-layout li.receiver > a { 
	right: 0; 
}

/**** S/R Messages Look&Feel ****/	
	
.messages-layout li.sender .message-area, 
.messages-layout li.receiver .message-area { 
	position: relative;
	padding: 8px 12px; 
	box-sizing: border-box; 
	-webkit-box-sizing: border-box; 
	-moz-box-sizing: border-box; 
	-ms-box-sizing: border-box;  
	border-radius: 3px; 
	-webkit-border-radius: 3px; 
	-moz-border-radius: 3px; 
	border: 1px solid; 
}

.messages-layout li.sender .message-area { 
	background: #def4d1; 
	margin-left: 52px; 
	border-color: transparent;
	box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.1);
} 

.messages-layout li.receiver .message-area { 
	background: #f4f4f4; 
	margin-right: 52px; 
	border-color: transparent; 
	box-shadow: 0px 1px 0px rgba(0,0,0,0.1);
} 

.messages-layout .message-area .delete {
    float: right;
    margin-left: 20px;
    cursor: pointer;
}

.messages-layout .message-area p {
	font-size: 12px;
	color: #606365;
	margin-bottom: 5px;
	margin-top: 5px;	
}

.messages-layout .info-row { 
	font-size: 11px; 
	color: #949494; 
	margin-bottom: 0;
	text-align: right;
	overflow: hidden;
}

.messages-layout .info-row > .time { 
	float: right; 
	cursor: pointer;
}

.messages-layout .img-emoji {
	width: 32px;
	height: 32px;
}