
/*
 *
 * Start CRM front styles
 *
 */

#ticket-system {
	margin-bottom: 15px;
	margin: 0 auto;
	border: 1px solid #e5e5e5;
	-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.04);
	box-shadow: 0 1px 1px rgba(0,0,0,.04);
	height: 500px;
       overflow: hidden;
       position: relative;
}
#ticket-system .msg-thread-status {
	top: 26%;
	position: absolute;
	left: 40%;
	z-index: 2;
	color: #000;
	font-size: 16px;
	background-color: orange;
	background-color: rgba(245, 181, 57, 1);
	padding: 30px 0px;
	border-radius: 9px;
	width: 50%;
	text-align: center;
	display: none;
}
#ticket-system input, #ticket-system textarea {
    width: 85%!important;
    display: block!important;
    padding: 10px 5px!important;
    border: 1px solid #ccc!important;
    border-radius: 7px!important;
    margin: 10px auto!important;
    resize: vertical!important;
    font-size: 16px!important;
    font-family: Verdana,Arial,sans-serif!important;
}
.ticket-system-content {
    position: relative;
}
#ticket-system .loading {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: transparent;
    background-color: rgba(255, 255, 255, 0.56);
}
#ticket-system .loading img {
    margin: 0 auto;
    display: block;
    margin-top: 26px;
}
#ticket-system .loading img.line-loading {
    margin-top: 0px;
}
#ticket-system .ts_button {
    background-color: #f57a12!important;
    padding: 15px 10px!important;
    display: block!important;
    margin: 0 auto!important;
    color: #fff!important;
    font-size: 13px!important;
    border-radius: 7px!important;
    transition: all 0.4s;
    border: 0!important;
    margin-top: 10px!important;
    cursor: pointer;
    text-transform: uppercase;
    width: 50%!important;
}
#ticket-system .ts_textarea{
    height: 100px;
}
#ticket-system .ts_msg_box {
    text-align: center;
}
#ticket-system .ts_error {
    border: 1px solid red;
}
#ticket-system .ts_button.disabled {
    background-color: #ccc;
}
a.open-conv-history {
    display: block;
    text-align: center;
}
.conversation-history {
    width: 100%;
    margin: 0 auto;
    height: 300px;
    overflow: scroll;
    position: relative;
    padding-top: 40px;
    float: left;
}
.conversation-history .mess_history_body {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    float: right;
    background: #fff;
    border: 2px solid #597DA3;
    margin: 10px 20px;
    position: relative;
    font-size: 14px;
    line-height: 20px;
    padding: 7px 12px 7px;
}
.conversation-history .mess_history_body:after {
    left: 100%;
    bottom: 20%;
    border:10px solid rgba(201, 196, 213, 0);
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-left-color: #597DA3;
    margin-top: -19px;
}
.conversation-history .admin-reply {
    float: left;
    border: 2px solid rgba(255, 165, 0, 0.92);
}
.conversation-history .mess_history_body.admin-reply:after {
    left: inherit;
    right: 100%!important;
    bottom: 20%;
    border: 10px solid rgba(201, 196, 213, 0);;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-right-color: rgba(255, 165, 0, 0.92);
    margin-top: -19px;
}
.conversation-history span.title {
    font-weight: bold;
    margin-bottom: 10px;
    float: left;
}
.conversation-history .date_post{
    float: right;
    margin-left: 10px;
    color: #777;
    font-style: italic;
}
.conversation-history .msg-status {
    float: left;
}
.conversation-history span {
    font-size: 14px;
    color: #B6B5B5;
}
.conversation-history .description{
    width: 100%;
    float: left;
}
.placeholder {
    color: #aaa!important;
}
.action-thread {
       position: absolute;
       z-index: 2;
       top: 0px;
       right: 0px;
	background-color: rgba(30, 114, 200, 0.13);
	opacity: 0.6;
       cursor: pointer;
       padding: 4px 7px;
       transition: all 0.4s;
       -webkit-transition: all 0.4s;
       -moz-transition: all 0.4s;
       -o-transition: all 0.4s;
}
.action-thread img.loading-icon {
	display: none;
	position: absolute;
       top: 0px;
       right: -1px;
       width: 100%;
}
.action-thread.loading-action img.loading-icon {
	display: block;
}
.action-thread:hover, .action-thread.closed{
	opacity: 1;
	background-color: rgba(173, 198, 224, 1);
}

.action-thread.loading-action {
	background-color: rgba(30, 114, 200, 0.13);
}
.thread-form {
	display: none;
	position: relative;
	border-top: 1px solid #e5e5e5;
}
#ticket-system .thread-form textarea {
	width: 70%!important;
	margin-left: 5%!important;
	float: left;
}
#ticket-system .thread-form .ts_button {
       float: left;
       width: 20%!important;
       border-radius: 3px!important;
       margin: 46px 0% 0 2%!important;
}
/*
 * Сonversation dialog list 
 */
.conversation-dialog-list {
	width: 100%;
	float: left;
	position: relative;
}
.thread-header-block {
	background-color: #edf1f5;
	display: block;
	width: 30%;
	float: left;
	position: relative;
	overflow: scroll;
	height: 500px;
       padding-top: 55px;
}
.thread-header-block .head-item, .ticket-system-form .head-item {
	float: left;
	margin: 10px 0;
	padding: 8px 3%;
	font-weight: bold;
	background-color: rgba(129, 161, 194, 0.13);
	cursor: pointer;
       width: 80%;
       margin-left: 7%;
	
}
/*
	background-color:  rgba(30, 114, 200, 0.13)
*/
#ticket-system .new-issue{
	background-color: rgba(165, 186, 208, 1) ;
	margin: 0;
	width: 30%;
	text-align: center;
	padding: 20px 0%;
	font-size: 18px;
       position: absolute;
	font-weight: bold;
	cursor: pointer;
	top: 0;
	left: 0;
	z-index: 2;
}
.ticket-system-form .head-item {
    float: none;
}
.thread-header-block .active{
    background-color: #597DA3;
}
.thread-header-block .head-item.head-item-closed {
    background-color: #D3D2D2!important;
}
.thread-header-block .head-item.head-item-closed.active {
    background-color: #BBBBBB!important;
}
.thread-resolve-button {
    text-align: center;
    text-decoration: underline;
    width: 100%;
    cursor: pointer;
    padding: 20px 0;
    font-size: 20px;
    border-top: 1px solid #e5e5e5;
    background-color: white;
    z-index: 3;
}
.thread-body-block {
       float: left;
       width: 70%;
}
.ticket-system-form {
	float: left;
	width: 100%;
	margin-top: 50px;
}
.conversation-history {
    display: none;
}
/*
 *
 * End CRM front styles
 *
 */
.um-field .thread-user-list {
	width: 100%;
}
.um-account-main {
	width: 60%!important;
}
@media screen and (max-width: 1024px) {
    #ticket-system {
        width: 100%;
    }
    .thread-user-list {
        width: 95%;
    }
    .conversation-history {
        width: 95%;
    }
    .um-account-main {
	width: 90%!important;
	max-width: 90%!important;
    }
}
@media screen and (max-width: 720px) {
    .conversation-history .date_post {
        margin: 0 0 0px;
        float: left;
        width: 100%;

    }
    .conversation-history span.title {
        margin: 0;
        width: 100%;

    }
}
.previous-thread, .next-thread {
	display: none;
}

@media screen and (max-width: 620px) {
	#ticket-system {
		width: 99%;
	       height: 540px;
	}
	#ticket-system .new-issue {
		width: 60%;
	}
	.thread-header-block {
		width: 100000px;
		overflow: hidden;
	       height: auto;
	       padding: 20px 0 20px;
		margin-top: 60px;	
	}
	.conversation-history {
		height: 215px;
	}
	.thread-header-block .head-item{
		background-color: transparent;
		text-decoration: underline;
		width: auto;
		padding: 0;
		margin: 0;
		float: left;
		color: #000;	
		margin: 0 20px;
		text-align: center;
	}
	.previous-thread, .next-thread {
		position: absolute;
		top: 85px;
		font-size: 40px;
	       z-index: 2;
		display: block;
	}
	.previous-thread.disabled, .next-thread.disabled {
		opacity: 0.4;
	}
	.next-thread{
	       right: 0px;
	}
	.thread-body-block {
		float: left;
		width: 100%;
	}
}