/*==========================================================================*/
/*	Global
/*==========================================================================*/
/* Resets */
.wpas_clearfix:before,
.wpas_clearfix:after {
	content: " ";
	display: table;
}
.wpas_clearfix:after {
	clear: both;
}
.wpas .container-fluid {
	padding: 0 15px;
}
.wpas table{
	font-size: 100%; /* Same font-size as body */
}
.wpas form > fieldset{
	margin-bottom: 2em;
}
.wpas form > fieldset#wpas_ticketattach {
	margin-bottom: 0;
}
.wpas code {
	white-space: normal;
}

/* Common */
.wpas-trash td{
	color: red;
	text-align: center;
	background-color: rgba(255, 0, 0, .1);
	margin-bottom: 20px !important;
}
.wpas .table tr:first-child td{
	border-top: none;
}
.wpas textarea.form-control {
	height: auto;
}

/*==========================================================================*/
/*	reCAPTCHA
/*==========================================================================*/
#wpas-recaptcha #recaptcha_image {
	width: 100% !important;
	height: auto !important;
}
#wpas-recaptcha #recaptcha_image img {
	max-width: 100%;
	height: auto;
}

/*==========================================================================*/
/*	Account Login & Register
/*==========================================================================*/
#wpas_account_forms{
	position: relative;
	overflow: hidden;
}

/*==========================================================================*/
/*	Ticket Submit
/*==========================================================================*/
.wpas #wpas_nav,
.wpas #wpas_nav li{
	list-style: none;
	margin: 0;
	padding: 0;
}

/*==========================================================================*/
/*	Ticket Details (single ticket)
/*==========================================================================*/
/* Profile area */
.wpas-profilename{
	white-space: nowrap;
	display: block;
}
.wpas-timestamp{
	white-space: nowrap;
}

/* Tables */
.wpas-ticket-responses th,
.wpas-ticket-responses td{
	padding: 15px;
	position: relative;
}
.wpas-ticket-responses thead tr {
	position: absolute;
	top: -9999px;
	left: -9999px;
}
.wpas-ticket-responses .tbl_col1{
	width: 64px;
	font-size: smaller;
}
.wpas-ticket-responses .tbl_col3{
	display: none;
}
.wpas-ticket-responses .ticket_profile{
	text-align: left;
}
.wpas-ticket-responses .ticket_profile img{
	width: 48px;
	height: 48px;
}
.wpas-ticket-responses .ticket_profile strong{
	display: block;
}
.wpas-ticket-responses .attachements{
	border-top: 1px solid #666;
	padding-top: 0.5em;
}
.wpas-ticket-responses .attachements i{
	font-size: 22px;
	vertical-align: middle;
}

/*==========================================================================*/
/*	Attachements
/*==========================================================================*/
.wpas-attachments-meta {
	margin: 0;
	margin-bottom: 20px
}
.wpas-attachments-list,
.wpas-attachments-list li {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/*==========================================================================*/
/*	Widgets
/*==========================================================================*/
.wpas_recent ul,
.wpas_recent li{
	list-style: none;
	margin: 0 !important;
	padding: 0;
}
.wpas_recent li{
	border-bottom: 1px solid #ddd;
	padding-bottom: 0.5em;
	margin-bottom: 0.5em !important;
}
.wpas_recent li:last-child{
	border-bottom: none;
}
.wpas_recent li > span{
	font-weight: bold;
}

/*==========================================================================*/
/*	WYSIWYG
/*==========================================================================*/
.wpas .wysihtml5-toolbar .dropdown-menu,
.wpas .wysihtml5-toolbar .dropdown-menu li {
	margin: 0;
}
.wpas .wpas-wysiwyg {
	display: none;
}
.wpas .wpas-textarea {
	display: block;
}
.wpas ul.wysihtml5-toolbar {
	display: none;
}
.wpas .wysihtml5-sandbox {
	display: none !important;
}
/* There should be no margin left */
.wpas .wysihtml5-toolbar > li:first-child,
.wpas .wysihtml5-toolbar > .dropdown {
	padding-left: 0px !important;
}
/* Recreate .form-control focus effect */
.wysihtml5-sandbox:focus {
	border-color: #66afe9;
	outline: 0;
	-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.6);
	box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,0.6);
}

/*==========================================================================*/
/*	Media Queries
/*==========================================================================*/
@media (min-width: 768px) {
	/* Textarea turns into WYSIWYG */
	.wpas .wpas-wysiwyg {
		display: block;
	}
	.wpas .wpas-textarea {
		display: none;
	}
	.wpas ul.wysihtml5-toolbar {
		display: block;
	}
	.wpas .wysihtml5-sandbox {
		display: inherit !important;
	}
	.wpas #wpas-ticket-issue-simple {
		display: block;
	}

	/* Account Login & Register */
	#wpas_account_forms::after {
		content: '';
		position: absolute;
		top: 0;
		bottom: 0;
		left: 50%;
		height: 500px;
		width: 1px;
		background-color: #e5e5e5;
	}
	.wpas_clearfix .half{
		width: 45%;
		margin: 0;
		padding: 0;
		float: left;
		position: relative;
	}
	.wpas_clearfix .half:last-child{
		float: right;
	}

	/* Responsive tables */
	.table > thead > tr > td {
		font-weight: bold;
		vertical-align: bottom;
		border-bottom: 2px solid #ddd;
	}
	.wpas-ticket-responses .tbl_col1{
		width: 96px;
		font-size: 100%;
	}
	.wpas-ticket-responses .tbl_col3 {
		display: table-cell;
		text-align: right;
	}
	.wpas-ticket-responses .ticket_profile{
		text-align: center;
	}
	.wpas-ticket-responses .ticket_profile img{
		width: 64px;
		height: 64px;
	}
}