@viewport {
   user-zoom: fixed;
}

/* start custom scrollbar */

#conversations-wrap::-webkit-scrollbar,
#im-dialogs::-webkit-scrollbar {
	width: 6px;
	border-radius: 3px;
}

#conversations-wrap::-webkit-scrollbar-thumb,
#im-dialogs::-webkit-scrollbar {
	background-color: #CCC;
}

/* end custom scrollbar */



.item_header {
	background: #fff;
	padding: 14px 16px;
	border-bottom: 1px solid #e5e5e5;
	box-shadow: 0 1px 2px rgba(0,0,0,0.1) inset;
}

.item_header a {
	color: #cbcbcb;
}

.item_header a:hover {
	color: #4b4b4b;
}

.item_header ul {
	margin-bottom: 0;
}

.item_header i {
	font-size: 18px;
}





.sides {
	border-left: 1px solid #e5e5e5;

	background: #f1f1f1;
	font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;

	overflow: visible;
}

.sides a {
	transition: color .25s ease-out,background-color .25s ease-out,border-color .25s ease-out,box-shadow .25s ease-out;
}

.sides a:hover {
	transition: color 0s,background-color 0s,border-color 0s,box-shadow 0s;
	text-decoration: none !important;
}

#sides_fix {
    margin-top: 50px;
	width: 350px;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
}

.sides .item {
    cursor: pointer;
	padding: 20px;
	position: relative;
	display: block;
	color: #4b4b4b;
}

.sides .item * {
    cursor: pointer;
}

.sides .item:after {
	content: "";
	display: block;
	width: auto;
    height: 1px;
    background: #e5e5e5;
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
}

.sides .item:hover {
	background: #e5e5e5;
}

.sides .item:last-child:after {
	display: none;
}

.sides .item .media-left {
	padding-right: 15px;
}

.sides .item figure {
	position: relative;
	margin-top: 3px;
}

.sides .item figure img {
	width: 40px;
	height: 40px;
	border-radius: 20px;
}

.sides .item figure .item-sum {
	position: absolute;
	bottom: 0;
	right: 0;
	background: #c32323;
    background: rgba(195,35,35,0.9);
    padding: 3px 5px;
    font-size: 9px;
    border-radius: 8px;
    color: #fff;
}

.sides .item .item-message p {
	color: #000;
	font-size: 15px;
	margin-bottom: 4px;
}

.sides .item .item-message span {
	font-size: 12px;
	line-height: 1.4;
    display: block;
}

.sides .item .item-message .pull-right {
	color: #979797;
	font-size: 12px;
}

a.more-items {
    display: block;
	padding: 40px 20px;
	text-align: center;
	color: #4b4b4b;
    cursor: pointer;
}

a:hover.more-items {
	background: #e5e5e5;
}

.sides .dropdown-menu,
.conversations .dropdown-menu {
	padding-top: 0 !important;
}


.conversations {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 570px;
    background: #f1f1f1;
	font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;

}

.conversations_full {
	right: 350px;
	/*width: 840px;*/
}

.conversations_full .item_header .wrap {
	width: 530px;
	margin: 0 auto;
}

@media screen and (max-width: 970px) {

	.conversations_full {
		width: 620px;
	}
}

.conversation-container {
	margin: 10px auto;
}

.conversations-wrap {
	width: 570px;
}

.conversations .item {
	padding: 10px 20px;
	position: relative;
}

.conversations .item_unread {
	background: #e2e8ed;
}

.conversations .item[data-error="banned"] {
	color: #a94442;
	font-size: 14px;
}

.conversations .item .media-left {
	padding-right: 15px;
}

.conversations .item figure {
	margin-top: 3px;
}

.conversations .item figure img {
	width: 40px;
	height: 40px;
	border-radius: 20px;
}

.conversations .item .pull-right {
	color: #979797;
	font-size: 12px;
	margin-right: 5px;
}

.conversations .item p {
	color: #000;
	font-size: 15px;
	margin-bottom: 4px;
}

.message {

}

.message .imgs-wrap .img-attach {
	margin-bottom: 10px;
	border-radius: 2px;
}

.message .imgs-wrap .img-attach:first-child {
	margin-top: 10px;
}

a.message_delete {
	position: absolute;
	top: 7px;
	right: 5px;
	color: #cbcbcb;
    transition: opacity 0.25s ease-out;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

a.message_delete:hover {
	color: #4b4b4b;
}

.conversations .item:hover .message_delete {
	opacity: 1;
    height: auto;
}

.message_send {
	padding: 20px;
	margin: 0 auto;
	width: 570px;
	position: relative;
    max-height: 320px;
}

.message_send::before {
	content: '';
	display: block;

	position: absolute;
	top: -20px;

    height: 20px;
    width: 100%;
	background: -moz-linear-gradient(top,  rgba(255,255,255,0) 0%, rgba(241,241,241,1) 100%);
	background: -webkit-linear-gradient(top,  rgba(255,255,255,0) 0%,rgba(241,241,241,1) 100%);
	background: linear-gradient(to bottom,  rgba(255,255,255,0) 0%,rgba(241,241,241,1) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#f1f1f1',GradientType=0 );
}

.message_send #typing-block {
    display: none;
    position: absolute;
    top: -1px;
    left: 85px;
    color: #979797;
    font-size: 12px;
}

.message_send .media {
	overflow: visible;
	margin-top: 0;
}

.message_send .media-left {
	padding-right: 15px;
}

.message_send .media-body {
	overflow: visible;
}

.message_send figure img {
	width: 40px;
	height: 40px;

	border-radius: 20px;
}

.message_send .form-group {
	margin-bottom: 5px;
	position: relative;
	overflow: visible;
}

.message_send .form-group ul {
	position: absolute;
	top: 12px;
    right: 5px;
    font-size: 16px;
    list-style: none;
}

.message_send .form-group a, 
.message_send .form-group label {
	color: #a0a0a0;
}

.message_send .form-group ul li {
	padding-left: 0;
}

.message_send .form-group .btn-sm {
    padding: 5px 18px;
    outline: none;
}

.message_send .form-control {
	border: none;
	-webkit-box-shadow: 1px 1px 40px 0px rgba(0,0,0,0.07);
	-moz-box-shadow: 1px 1px 40px 0px rgba(0,0,0,0.07);
	box-shadow: 1px 1px 40px 0px rgba(0,0,0,0.07);
}

.message_send .form-control:focus {
	border: none;
}

.message_send textarea {
	padding: 14px 60px 14px 12px;
	max-width: 100%;
	height: auto;
	border: none;
	resize: none;
}

.message_send .media .emoji-last {
	padding: 2px;
}

.message_send .media .emoji-last img {
	padding: 3px;
	cursor: pointer;
	margin-right: 1px;
}

.message_send .media .emoji-last img:hover {
	background-color: #DDD;
	border-radius: 7px;
}


#send-button {
	position: relative;
}

#send-settings {
	font-size: 12px;
	position: absolute;
    bottom: 40px;
    left: -1px;
    display: none;
    text-align: left;
    background: #fff;
    color: #333;
    padding: 10px 20px;
    border-radius: 5px;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -webkit-box-shadow: 1px 1px 40px 0px rgba(0,0,0,0.07);
    -moz-box-shadow: 1px 1px 40px 0px rgba(0,0,0,0.07);
    box-shadow: 1px 1px 40px 0px rgba(0,0,0,0.07);
}

#send-settings::after {
	content: '';
    display: block;
    position: absolute;
    left: 50px;
    bottom: -5px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 5px 0 5px;
    border-color: #fff transparent transparent transparent;
    line-height: 0px;
	_border-color: #DDD #f1f1f1 #f1f1f1 #f1f1f1;
	_filter: progid:DXImageTransform.Microsoft.Chroma(color='#f1f1f1');
}

#send-settings p {
	margin-bottom: 10px;
    font-weight: bold;
    color: #6288a5;
}

.message_hint {
	text-align: right;
	color: #a0a0a0;
	font-size: 12px;
}


#messages-block .dropdown-menu.pull-right {
	right: -10px;
	top: -7px;
}




.user_search {
	padding: 20px;
	position: relative;
}

.user_search input {
	padding: 20px 12px !important;
}

.user_search:after {
    content: "";
    display: block;
    width: auto;
    height: 1px;
    background: #e5e5e5;
    position: absolute;
    bottom: 0;
    left: 40px;
    right: 40px;
}


.micro_user_ava {
	width: 20px;
    height: 20px;
	border-radius: 50%;
    margin-right: 5px;
}


.m-username {
	color: #000;
}


/* contnent modal */

.imgs-wrap .modal.fade .modal-dialog {
    top: 300px;
    opacity: 0;
}
.imgs-wrap .modal.in .modal-dialog {
    opacity: 1;
}






/* info modal */

.info_modal .modal.fade .modal-dialog {
  -webkit-transform: scale(0.1);
    -moz-transform: scale(0.1);
    -ms-transform: scale(0.1);
    transform: scale(0.1);
    top: 300px;
    opacity: 0;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    transition: all 0.3s;
}
.info_modal .modal.in .modal-dialog {
  -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-transform: translate3d(0, -300px, 0);
    transform: translate3d(0, -300px, 0);
    opacity: 1;
}

.info_modal {
	font-family: "Roboto", "Helvetica Neue", Helvetica, sans-serif;
}

.info_modal .modal-content {
	border-radius: 0;
	box-shadow: none !important;
	padding: 50px;
	margin: 200px auto;
}

.info_modal .close {
	position: absolute;
    top: 6px;
    right: 10px;
}

.info_modal .close span {
	font-size: 36px;
	font-weight: 300;
}

/* end info modal */

.item_has_error {
	background: #f2dede !important;
}

.item_has_error .media-left figure {
	position: relative;
}

.item_has_error .media-left figure i {
	position: absolute;
	top: -5px;
    left: -10px;
	color: #a94442;
	display: block;
}


.item_has_warning {
	background: #fcf8e3 !important;
}

.item_has_warning .media-left figure {
	position: relative;
}

.item_has_warning .media-left figure i {
	position: absolute;
	top: -5px;
    left: -10px;
	color: #8a6d3b;
	display: block;
}




#room-members-container .user_card {
	margin: 20px 0;
}

#room-members-container .user_card a {
	color: #000;
	font-size: 15px;
}

#room-members-container .user_card a:hover {
	color: #326891;
}

#room-members-container .user_card .media-left {
	padding-right: 15px;
}

#room-members-container .user_card figure img {
	width: 60px;
    height: 60px;
}

#room-members-container .user_card .inviter-block {
	font-size: 13px;
	color: #777;
}

#room-members-container .user_card .inviter-block p {
	margin-bottom: 0;
}




.dialog-info-message {
    display: block;
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
}

#bug-report-send {
	margin-bottom: 30px;
}




.mobile-version #conversations-wrap::-webkit-scrollbar,
.mobile-version #im-dialogs::-webkit-scrollbar {
	width: initial;
	border-radius: auto;
}

.mobile-version #conversations-wrap::-webkit-scrollbar-thumb,
.mobile-version #im-dialogs::-webkit-scrollbar {
	background-color: auto;
}

.mobile-version #sides_fix {
	position: relative;
	margin: -20px 0 0 0;
	width: 100% !important;
}

.mobile-version .sides {
	border-left: none;
}

.mobile-version .sides .item_header {
	display: none;
}

.mobile-version .item_header a#change-conversation-view {
	display: none;
}

.mobile-version #im-dialogs {
	max-height: none !important;
}

.mobile-version .conversations {
	margin: 0 !important;
	position: relative;
	width: 100%;
}

.mobile-version .conversations-wrap {
    width: 100%;
    height: auto !important;
    overflow-y: scroll !important;
}

.mobile-version .conversations .item_header {
	display: inline-block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 999;
    min-height: inherit;
   -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.mobile-version .conversations .item_header .pull-right {
	display: none;
}

.mobile-version .conversations .item figure img {
    width: 40px;
    height: 40px;
    border-radius: 20px;
}

.mobile-version .short-form-cap {
	width: 40px;
}

.mobile-version .message {
	width: 77vw;
}

.mobile-version .conversations .item .pull-right {
	margin-right: 0;
}

.mobile-version a.message_delete {
	display: none;
}

.mobile-version .message_send {
	width: 100%;
}

.message_send::before {
	display: none;
}

.mobile-version .message_send .message_send_ava {
	display: none;
}

.mobile-version #message-textarea {
	max-width: none !important;
}

.mobile-version #send-settings {
	display: none !important;
}

.imgs-wrap .modal-dialog {
	top: 0 !important;
}
