/**
 * @package    JJ_Shoutbox
 * @modified Peter 18.07.2020  Gray scale
 */

.jjshoutbox {margin: auto;width: 100%;background:#999}
.jjshoutbox img {
	display: inline;
}
.jjshoutboxform {
	margin: 0 auto;
}
.jjshoutbox > div,
.jjshoutbox textarea,
.jjshoutbox input {
	box-sizing: border-box;
}
.jjshoutboxform textarea {
	width: 100%;
	margin: 0;
	resize: vertical;
}
.jjshoutboxform .fullwidth {
	margin-top: 5px;
	color: #000;
	float: right;
	width: 40px;
	height: 40px;
	border-radius:20px;
}
	
.jjshoutboxform table{width:100%}
.jjshoutboxform td{padding:3px}
.jjshoutboxform a{color:#666}


.jjshoutboxform .mass_delete {
	margin-top: 20px;
}
.jjshoutboxform .mass_delete input {
	margin-top: 0;
}
.jjshoutboxform p {
	margin: 4px 0;
}
.jjshoutboxoutput {
	width: 100%;
	border-style: solid;
	background: #CCC;
	overflow: auto;
	word-wrap: break-word;
	padding:3px;
}
.jjshoutboxoutput input[type=submit] {
	cursor: pointer;
	text-align: center;
	font-family: inherit;
	font-weight: bold;
	font-size: 1em;
	text-decoration: none;
	background: none;
	padding: 0;
	margin: 0;
	border: 0;
	height: 15px;
	vertical-align: top;
}
.jjshoutboxoutput .shout-actions {
	position: absolute;
	top: 0;
	right: 3px;
}
.shout-actions .jj-shout-edit {
	text-decoration: none;
	margin: 0;
}
.shout-actions .shout-remove {
	background: none;
	border: 0;
	line-height: 13px;
	margin: 0;
	padding: 3px 0 0;
	vertical-align: top;
	cursor: pointer;
}
.jjshoutboxoutput .shout-header {
	font-family: inherit;
	font-size: .9em;
	font-weight: bold;
	text-transform: none;
	margin: 0;
	padding: 0 35px 0 5px;
	height: auto;
	line-height: 20px;
	position: relative;
}
.jjshoutboxoutput div form {
	display: inline-block;
	margin: 0;
}
.jjshoutboxoutput div p {
	font-size: 1em;
	font-family: inherit;
	text-align: left;
	margin: 0;
	padding: 0 0 0 5px;
}
#noguest {
	color: #FF0000; 
	font-weight: bold; 
}
.jjshoutboxform input#math_output {
	width: 70px;
	margin-top: 0;
}
.jjshoutboxform #mathscanvas {
	float: left;
}
.jjshoutbox .jj_error {
	color: red;
	font-weight: bold;
}
.jjshoutbox .jj-shout-error {
	display: none;
	margin-top: 5px;
}
.jjshoutbox .jj-shout-error .alert {
	margin-bottom: 0;
	padding-right: 14px
}
.jjshoutbox .jj_label {
	width: 70px; 
	display: inline-block;
}
.jjshoutbox .jj_input {
	width: 70px;
	display: inline-block;
}
.jjshoutboxform .dropdown-menu {
	padding: 5px !important;
}
.jjshoutboxform .dropdown-menu li,
.jjshoutboxform .uk-dropdown li {
	float: left;
	padding: 0 2px;
	min-height: 26px;
	list-style: none;
}
.jj_smiley {
	border: none;
	cursor: pointer;
	display: block;
	float: left;
	margin: 0 3px 5px 0;
}
.jj_smiley:hover {
	background: none !important;
	border: 0;
	outline: 0;
}
.jjshoutboxform[type='number'] {
	padding: 4px 0px;
}
.jjshoutbox-audio {
	display: none;
}
a.edit-cancel,
a.edit-cancel.btn,
.uk-button.edit-cancel {
	display: none;
	width: 100%;
	margin-top: 5px;
	min-height: 30px;
	box-sizing: border-box;
}

/**
Tag a user dropdown
**/
.jj_tag_user.dropdown-menu > .active > a, 
.jj_tag_user.dropdown-menu > .active > a:hover, 
.jj_tag_user.dropdown-menu > .active > a:focus {
	background: none;
	padding-left: 0;
	padding-right: 0;
}

/**
Shoutbox history
**/
.jj-shout-history.modal-body {
	max-height: 400px;
	overflow-y: auto;
}
.jj-shout-history .jj-shout-edit {
	display: none;
}
.jj-shout-history p {
	margin: 5px 0 0;
}
.jj-shout-history > div {
	background-color: #f5f5f5;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05) inset;
	margin-bottom: 20px;
	min-height: 20px;
	padding: 5px 9px;
	overflow-x: auto;
}
.center-block {
	display: block;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.jj-shout-history > div.center-block {
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin: 0 0 10px 0;
}
.jj-shout-history form {
	float: right;
}
.jj-shout-history form input[type="submit"] {
	background: none;
	border: 0 none;
	cursor: pointer;
	font-family: inherit;
	font-size: 1em;
	font-weight: bold;
	height: 20px;
	margin: 0;
	padding: 0;
	text-align: center;
	text-decoration: none;
	vertical-align: top;
}
#jj-shout-history .shout-header {
	font-weight: bold;
	color: #000;
	background: none;
}
.jj-shout-history .avatar img {
	width: 30px;
	height: 30px;
}

/**
Non-bootstrap styling for BBCode
**/
.jjshoutbox .btn-toolbar {
	margin-top: 10px;
}
.jjshoutbox .btn-group .btn {
	cursor: pointer;
	min-width: 30px;
	padding: 2px 7px;
}

/**
BBCode
**/
.bbcode-form {
	display: none;
	margin-top: 10px;
}
.bbcode-form p {
	font-weight: bold;
}
.bbcode-form input {
	width: 100%;
	min-height: 30px;
	margin-bottom: 5px;
}
#bbcode-insert,
#bbcode-cancel {
	margin-top: 5px;
}
.jj-bold {
	font-weight: bold !important;
}
.jj-italic {
	font-style: italic !important;
}
.jj-underline {
	text-decoration: underline !important;
}

/**
RTL
**/
html[dir="rtl"] .jjshoutboxoutput .shout-header {
    padding: 0 5px 0 35px;
}
html[dir="rtl"] .jjshoutbox .btn-group .btn {
    min-width: 26px;
	margin-bottom: 5px;
}
html[dir="rtl"] .jjshoutboxoutput div p {
    text-align: right;
    padding: 0 5px 0 0;
}
html[dir="rtl"] .jjshoutboxoutput .shout-actions {
    position: absolute;
    top: 0;
    left: 3px;
    right: auto;
}

.post_time{float:right}
.avatar{float:left; margin:5px 5px 0 0}

.jjshout_message{background: #FFF;border-radius: 4px;margin: 5px;padding: 3px;min-height:60px;}

.img_avatar{width:30px;height:30px}
#charsLeft{font-size:10px;color:#FFF !important;line-height:10px; display:none}
.send_btn{margin-left:-5px; font-size:18px}
.jjshoutboxoutput div p {line-height:1em;font-size:1em}

@media (max-width: 600px) {
 body {font-size:22px;}
}   

.tospeakerpostcolor {background:red}
.tospeakerpostlabel {color:#FFF}
#jjshoutboxform .control-group label::before {	content: '\f096';color:#FFF}


.winmessagemodal_overlay {
 
   /* Скрываем подложку  */
   opacity: 0;
   visibility: hidden;
   
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-color: rgba(0, 0, 0, .5);
   z-index: 2001;
   transition: .3s all;
}


/* Стили для модальных окон */
.winmessagemodal {
   
   /* Скрываем окна  */
   opacity: 0;
   visibility: hidden;
   
   /*  Установаем ширину окна  */
   width: 100%;
   max-width: 500px;
   
   /*  Центрируем и задаем z-index */
   position: fixed;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   z-index: 2030; /* Должен быть выше чем у подложки*/
   
   /*  Побочные стили   */
   box-shadow: 0 3px 10px -.5px rgba(0, 0, 0, .2); 
   text-align: center;
   padding: 30px;
   border-radius: 3px;
   background-color: #fff;
   transition: 0.3s all;
}

/* Стили для активных классов подложки и окна */
.winmessagemodal.active, .overlay.active, .winmessagemodal_overlay.active{opacity: 1;visibility: visible;}
.user_name{white-space: nowrap;overflow: hidden;text-overflow: ellipsis;}
.floodingmessage{text-align: justify; color: red; vertical-align: middle; display: table-cell; font-size: 14px; line-height: 1.2;padding-top:5px;display:none}
.floodingmessage_visible{display:block !important; }
#floodingmessage .fa-exclamation-triangle{margin-right:15px;font-size:20px}

/* Стили для подложки чеков и времени присутвия  */
.jj-shout-check .jj-td-your-time{padding:3px;padding-top:0;font-size: 12px;width: 40%;text-align: center;}
.jj-shout-check .jj-your-time{text-decoration: underline;cursor: default;}
.jj-shout-check .jj-time-upl{font-weight: bold;}
.jj-shout-check .jj-td-icon{width: 30px;padding:3px;text-align:center;line-height: 1.2;}
.jj-shout-check .jj-td-icon i{cursor: pointer;}

.jj-shout-check .jj-refresh-check i{transition: all .2s;}
.jj-shout-check .jj-refresh-check i.fa-spin{pointer-events: none;}
.jj-shout-check .jj-refresh-check i:hover{transform: scale(1.1);}

.jj-shout-check .jj-check-list{display: flex;justify-content:space-around;padding: 5px 0;}
.jj-shout-check .jj-check-item{width: 10px;height:10px;border-radius:50%;background:white;}
.jj-shout-check .jj-check-item.active{background:#006b2e;box-shadow: 0px 0px 3px 2px #2cb781;}
.jj-shout-check .jj-check-item.old:not(.active){background:red;box-shadow: 0px 0px 3px 2px #ff000078;}

.jj-shout-check .user-name{padding: 3px;padding-left:5px;font-size: 12px;}
.jj-shout-check .refresh-user-name{display: flex;justify-content: space-between;}
.jj-shout-check .time-check-list{display: flex;}
.jj-shout-check .jj-td-check-list{width: 60%;padding:3px;padding-top:0;}
.wrapper-btn-nmo{margin-bottom: 5px;}
.wrapper-btn-nmo .btn-nmo{width: 100%;background:red !important;color:white !important;font-weight:bold !important;border-radius:0 !important;}
/* END Стили для подложки чеков и времени присутвия  */

.wrap-block-user ul.dropdown-menu{padding: 0;}
.wrap-block-user ul.dropdown-menu>li button{background: none;border: 0;line-height: 13px;margin: 0;width: 100%;padding: 6px 10px;text-align:left;border-radius: 0;}
.wrap-block-user ul.dropdown-menu>li button:hover{background: #eee;}
.jjshout_message span.reply {
	display: block;
	font-size: 12px;
	border-left: 2px solid #60AAF6;
	padding-left: 5px;
	margin: 10px 0 10px 55px;
	color:#6C7E85;
}
.jjshout_message span.reply-fio{display: block;font-weight: 600;}

#reply-container .wrap-reply-inp{border-left: 2px solid #60AAF6;margin: 5px 10px;padding-left: 5px;background: #E5E7EA;border-radius: 5px;color: #75848E;font-size: 12px;padding: 4px;}
#reply-container .reply-close{float: right;cursor: pointer;padding-left: 10px;font-size: 16px;}
#reply-container .reply-fio-inp{font-weight: 600;}

.shout-actions button.shout-remove img{width: 13px;}
.shout-actions .wrap-block-user a.dropdown-toggle i{color:#999}
.jjshout_message .jjbodymsg {cursor: pointer;}
.jjshout_message .avatar~i.mdi-volume-off,.jjshout_message .avatar~i.fa-lock {color:red;padding-right: .3em;}
.jjshout_message .jjshout_msg_name+i.fa-files-o{color:#999;font-size: .8em;cursor: pointer;padding-left:.3em;}


#winmessagemodal.type-dialogues button {
	color: #fff !important;
	font-size: 14px;
	line-height: 55px;
	font-weight: 600;
	background-color: #515960 !important;
	text-transform: uppercase;
	border: 2px solid #515960 !important;
	text-align: center;
	transition: 0.5s;
	border-radius: 0 !important;
}
#winmessagemodal.type-dialogues button:hover {
	background-color: #fff !important;
	color:  #515960 !important;
}
#winmessagemodal.type-dialogues .modal_title1_dialog{
	background-color: #930d28;
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	padding: 15px 30px 15px;
	font-size: 28px;
	margin-bottom: 20px;
}
#winmessagemodal.type-dialogues .modal__title{padding: 0px 20px;}