/*-------------------------------------------------------------------------------------------*/
/* grain Admin Styles */
/*-------------------------------------------------------------------------------------------*/

.updated {
	max-width:764px;
	margin-bottom:0px !important;
}
#grain {
	position:relative;
	z-index: 0;
	max-width:780px;
	background:#fff;
}
#grain p {
	margin-bottom:0;
	padding-bottom:10px;
}
#grain .section {
	padding:10px 10px 0;
}
#grain .group .section:last-of-type {
	padding-bottom:40px;
}
#grain .section .heading {
	padding:10px 0px;
	margin:0 0 15px;
	border-bottom: 1px solid #dfdfdf;
}
#grain .section .controls {
	float: left;
	min-width:350px;
	width: 54%;
	padding-right:2%;
}
#grain .section .explain {
	max-width:38%;
	float: left;
	font-size: 12px;
	line-height:16px;
	color: #777;
}
#grain .section-checkbox .controls {
	min-width:25px;
	width:25px
}
#grain .section-checkbox .explain {
	max-width:93%;
}
#grain .section-color .controls {
	min-width:125px;
	width:125px
}
#grain .controls input, #grain .controls select, #grain .controls textarea {
	margin-bottom: 10px;
	width:100%;
}
#grain .section-radio label, #grain .section-multicheck label {
	float:left;
}
#grain input.checkbox, #grain input.of-radio {
	width: 30px;
	float:left;
	clear:both;
}
#grain .controls .of-color {
	float:left;
	width: 80px;
	margin-left:5px;
	margin-right:5px;
}
#grain .controls .of-typography-size {
	width:80px;
	margin-left:5px;
	float:left
}
#grain .controls .of-typography-unit {
	width:50px;
	margin-left:5px;
	float:left
}
#grain .controls .of-typography-face {
	width:100px;
	margin-left:5px;
	float:left
}
#grain .controls .of-typography-style {
	width:80px;
	margin-left:5px;
	margin-right:5px;
	float:left
}
#grain .of-background-properties {
	clear:both;
	margin-top: 18px;	
}
#grain .controls .of-background-repeat {
	width:125px;
	margin-right:5px;
	float:left
}
#grain .controls .of-background-position {
	width:125px;
	margin-right:5px;
	float:left
}
#grain .controls .of-background-attachment {
	width:125px;
	margin-right:5px;
	float:left
}
#grain div.section-background .controls input.upload {
	width:47%;
}
#grain .controls .of-radio-img-img {
	border:3px solid #f9f9f9;
	margin:0 5px 10px 0;
	display:none;
	cursor:pointer;
	float:left;
}
#grain .controls .of-radio-img-selected {
	border:3px solid #ccc
}
#grain .controls .of-radio-img-img:hover {
	opacity:.8;
}
#grain .controls .of-border-width {
	width:80px;
	float:left
}
#grain .controls .of-border-style {
	width:120px;
	float:left
}
#grain .hide {
	display:none;
}
#grain .of-option-image {
	max-width:340px;
	margin:3px 0 18px 0;
}
#grain .mini .controls select, #grain .section .mini .controls {
	width: 140px;
}
#grain .mini .controls input, #grain .mini .controls {
	min-width:140px;
	width: 140px;
}
#grain .mini .explain {
	max-width:74%;
}
/* Image Uploader */

#grain .controls input.upload {
	width:80%;
}
#grain .controls input.upload_button {
	float:right;
	width:45px;
	border-color:#BBBBBB;
	cursor:pointer;
	height:16px;
}
#grain .controls input.upload_button:hover {
	border-color:#666666;
	color:#000;
}
#grain .screenshot {
	float:left;
	margin-left:1px;
	position:relative;
	width:344px;
	margin-top:3px;
}
#grain .screenshot img {
	background:#FAFAFA;
	border-color:#ccc #eee #eee #ccc;
	border-style:solid;
	border-width:1px;
	float:left;
	max-width:334px;
	padding:4px;
	margin-bottom:10px;
}
#grain .screenshot .mlu_remove {
	background:url("../images/ico-delete.png") no-repeat;
	border:medium none;
	bottom:4px;
	display:block;
	float:left;
	height:16px;
	padding:0;
	position:absolute;
	left:-4px;
	text-indent:-9999px;
	width:16px;
}
#grain .screenshot .no_image .file_link {
	margin-left: 20px;
}
#grain .screenshot .no_image .mlu_remove {
	bottom: 0px;
}
#grain .reset-button {
	float:left;
	cursor:pointer;
}

/* Bottom Section */

#grain-submit {
	padding: 7px 10px;
	border-top: 1px solid #ECECEC;
	background-color: #F1F1F1;
    background-image: -moz-linear-gradient(center top , #F9F9F9, #ECECEC);
}
#grain .button-primary {
	float:right;
}