/* 

Silverstripe PaddyGreen Theme
Styles related to forms markup

Forms markup adopeted from http://nidahas.com/sandbox/form_template.html
Created by Prabhath Sirisena(http://www.nidahas.com) 

*/

p.legend { margin-bottom: 1em; }
p.legend em { color: #C00; font-style: normal; }

div.errors { margin: 0 0 10px 0; padding: 5px 10px; border: #FC6 1px solid; background-color: #FFC; }
div.errors p { margin: 0; }
div.errors p em { color: #C00; font-style: normal; font-weight: bold; }

#Layout form p { margin: 0; }
#Layout form p.note, #Layout form span.required { margin-left: 170px; font-size: 90%; color: #C00; }
#Layout form fieldset { margin: 10px 0; padding: 10px; border: #DDD 1px solid; }
#Layout form legend { font-weight: bold; color: #666; }
#Layout form fieldset div { padding: 0.25em 0; }
#Layout label, 
#Layout span.label { margin-right: 10px; padding-right: 10px; width: 150px; display: block; float: left; text-align: right; position: relative; }
#Layout label.error, 
#Layout span.error { color: #C00; }
#Layout label em, 
#Layout span.label em { position: absolute; right: 0; font-size: 120%; font-style: normal; color: #C00; }
#Layout input.error { border-color: #C00; background-color: #FEF; }
#Layout input:focus,
#Layout input.error:focus, 
#Layout textarea:focus {	background-color: #FFC; border-color: #FC6; }
#Layout div.controlset label, 
#Layout p.field label,
#Layout div.controlset input{ display: inline; float: none; }
#Layout div.controlset div, #Layout ul.optionset { margin-left: 170px; }
#Layout li input{display:inline;float:none;}
#Layout ul label{display:inline; float:none;text-align:left; width:100px; padding-left: 5px;}
#Layout div.buttonrow, #Layout p.Actions { margin-left:180px; }
