/* 
 * folded corner effect found at 
 * http://nicolasgallagher.com/pure-css-folded-corner-effect/ 
 */
div.ycomment {
	position:relative;
	width:50%;
	min-width:350px;
	padding:8px 8px 4px 8px;
	margin:1em 1em;
	color:#000;
	background:rgb(255,255,136);
	/* shadow */
	-webkit-box-shadow:2px 2px 1px rgba(0,0,0,0.3), 3px 3px 1px rgba(0,0,0,0.2);
	-moz-box-shadow:2px 2px 1px rgba(0,0,0,0.3), 3px 3px 1px rgba(0,0,0,0.2);
	box-shadow:2px 2px 1px rgba(0,0,0,0.3), 3px 3px 1px rgba(0,0,0,0.2);
	/* gradient color */
	background: -moz-linear-gradient(-45deg, rgba(255,255,136,1) 77%, rgba(255,255,214,1) 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, right bottom, color-stop(77%,rgba(255,255,136,1)), color-stop(100%,rgba(255,255,214,1))); /*Chrome,Safari4+*/
	background: -webkit-linear-gradient(-45deg, rgba(255,255,136,1) 77%,rgba(255,255,214,1) 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(-45deg, rgba(255,255,136,1) 77%,rgba(255,255,214,1) 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(-45deg, rgba(255,255,136,1) 77%,rgba(255,255,214,1) 100%); /* IE10+ */
	background: linear-gradient(-45deg, rgba(255,255,136,1) 77%,rgba(255,255,214,1) 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffff88', endColorstr='#ffff88',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

/* folded corner top left */
div.ycomment:before {
	content:"";
	position:absolute;
	top:0;
	left:0;
	border-width:0 0 16px 16px;
	border-style:solid;
	border-color:#FF8 #FF8 #658E15 #FF8;
	/* a little shadow */
	-webkit-box-shadow:0px 1px 1px rgba(0,0,0,0.3), 1px 1px 1px rgba(0,0,0,0.2);
	-moz-box-shadow:0px 1px 1px rgba(0,0,0,0.3), 1px 1px 1px rgba(0,0,0,0.2);
	box-shadow:0px 1px 1px rgba(0,0,0,0.3), 1px 1px 1px rgba(0,0,0,0.2);
}

/*
 * formatting ycomment content
 */

div.ycomment>p {
	margin: 0;
	padding: 0 16px 4px 16px;
}
div.ycomment>div.comment_details_line {
	border: none;
	padding: 0 16px;
}
div.ycomment>div>p {
	font-style: normal;
	margin: 8px 0;
	word-wrap: break-word;
}
div.ycomment>div {
	border-top: 1px solid #ccc;
	margin: 0;	
}

.ycomment.pending {
	border-right: 6px orange solid;
}

.ycomment.rejected {
	border-right: 6px red solid;
}

.ycomment.finished {
	border-right: 6px green solid;
}

.ycomment.accepted {
	border-right: 6px blue solid;
}

.commentdeletebutton {
	display: inline;
	cursor: pointer;
	overflow: visible;
	position: absolute;
	top:8px;
	right:8px;
	width: 16px;
	height: 16px;
	background-image: url("../img/delete_button.png");
	background-position: top right;
	background-color: transparent;
	background-repeat: no-repeat;
	/*background-size: 16px 16px;*/
	margin: 0;
	padding: 0;
	border-style: none;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
/*	border-radius: 20px;
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;*/
	opacity: 0.5;
	/*float: right;*/
}

.commentdeletebutton:hover {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	opacity: 1;
}


/*
 * 	Taking over classes/styling of JQUERY UI which don't work.
 */

.commentbutton {
	text-align: center;
	display: inline;
	cursor: pointer;
	overflow: visible;
	width: 16px;
	height: 16px;
	background-image: url("../img/comment_button.png");
	background-position: center;
	background-color: transparent;
	background-repeat: no-repeat;
	/*background-size: 16px 16px;*/
	margin: 0 2px 0 0;
	border-style: none;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
/*	border-radius: 20px;
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;*/
	opacity: 0.5;
}

.commentbutton:hover {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	opacity: 1;
}

.imagecommentbutton {
	text-align: center;
	display: inline;
	cursor: pointer;
	overflow: visible;
	position: relative;
	top: 4px;
	background-position: center;
	background-color: transparent;
	background-repeat: no-repeat;
	/*background-size: 16px 16px;*/
	margin: 0 2px 0 0;
	border-style: none;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";
/*	border-radius: 20px;
	-moz-border-radius: 20px;
	-webkit-border-radius: 20px;*/
	opacity: 0.5;
}

.imagecommentbutton:hover {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	opacity: 1;
}

.error {
	color: red;
}

.dialog {
	width: 300px;
	min-width: 300px;
}

.formContainer {
	margin: 0;
}

.commentTextArea {
	float: none;
	width: 460px;
	resize: vertical;
}

.mandatory-container {
	display: inline;
	float: right;
	width: 5px;
	height: 1px;
}

.mandatory {
	color: red;	
	position: relative;
	right: -3px;
}

/* dataType styles */
form>textarea {
	float: right;
	width: 230px;
	margin: 3px 0;
	position: relative;
	right: 5px;
}

form>input {
	float: right;
	width: 230px;
	margin: 3px 0;
	position: relative;
	right: 5px;
}

form>select {
	float: right;
	width: 230px;
	margin: 3px 0;
}

form>select.multiple {
	height: 80px;
}

div.ycomment > div.comment_to_comment {
	border-top: none;
	margin: 5px 15px;
}