input[type="text"], input[type="password"] {
    height: 18px;
}

input[type="text"], input[type="password"], textarea, select {
    border: 1px solid #aaaaaa;
    border-radius: 2px;
    box-shadow: inset 1px 1px 5px 0.2px #dddddd;
    padding: 4px;
    margin: 1px;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    border: 1px solid #0186ba;
    box-shadow: inset 1px 1px 5px 0.2px #dddddd, 1px 1px 5px 0.2px #dddddd;
}

input[type="submit"], input[type="button"], button, a.button {
    color: #606060;
    border: solid 1px #B7B7B7;
    border-radius: 2px;
    background: #dcdcdc;
    background: -webkit-gradient(linear, left top, left bottom, from(white), to(#dcdcdc));
    background: -moz-linear-gradient(top, white, #dcdcdc);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#dcdcdc');
    cursor: pointer;
    text-align: center;
    padding: 0.4em 0.6em 0.4em 0.6em;
    /*text-shadow: 0 1px 1px rgba(0, 0, 0, .3);*/
    font-weight: bold;
    box-shadow: 0 0 2px 0px #dddddd;
    margin: 3px;
    margin-left: 6px;
    margin-right: 6px;
}

input[type="submit"]:hover, input[type="button"]:hover, button:hover, a.button:hover,
input[type="submit"]:focus, input[type="button"]:focus, button:focus, a.button:focus {
    background: #E5F1F4;
    background: -webkit-gradient(linear, left top, left bottom, from(white), to(#E5F1F4));
    background: -moz-linear-gradient(top, white, #E5F1F4);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#E5F1F4');
    box-shadow: 1px 0 2px 0.5px #21a6da;
}

input[type="submit"]:active, input[type="button"]:active, button:active, a.button:active {
    box-shadow: inset -1px 1px 3px 1px #bbbbbb, 1px 0 1px 0.5px #21a6da;
}

a.button {
    text-decoration: none;
    margin: 4px 0 4px 0;
}

div.wide.form label {
    float: left;
    margin-right: 10px;
    position: relative;
    text-align: right;
    width: 100px;
    vertical-align: middle;
}

div.search-form {
    background: none repeat scroll 0 0 #E5F1F4;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    border-radius: 3px;
}

form div.row {
    margin-top: 5px;
}

div.form input,
div.form textarea,
div.form select
{
	margin: 0.5em 0.2em 0.2em 0;
}

div.form fieldset
{
	border: 1px solid #DDD;
	padding: 10px;
	margin: 0 0 10px 0;
    border-radius:7px;
}

div.form label
{
	font-weight: bold;
	font-size: 0.9em;
	display: block;
}

div.form input[type="radio"]+label {
    display: inline-block;
}

div.form .row
{
	margin: 5px 0;
}

div.form .hint
{
	margin: 0;
	padding: 0;
	color: #999;
}

div.form .note
{
	font-style: italic;
}

div.form span.required
{
	color: red;
}

div.form div.error label,
div.form label.error,
div.form span.error
{
	color: #C00;
}

div.form div.error input,
div.form div.error textarea,
div.form div.error select,
div.form input.error,
div.form textarea.error,
div.form select.error
{
	background: #FEE;
	border-color: #C00;
}

div.form div.success input,
div.form div.success textarea,
div.form div.success select,
div.form input.success,
div.form textarea.success,
div.form select.success
{
	background: #E6EFC2;
	border-color: #C6D880;
}


div.form .errorSummary
{
	border: 2px solid #C00;
	padding: 7px 7px 12px 7px;
	margin: 0 0 20px 0;
	background: #FEE;
	font-size: 0.9em;
}

div.form .errorMessage
{
	color: red;
	font-size: 0.9em;
}

div.form .errorSummary p
{
	margin: 0;
	padding: 5px;
}

div.form .errorSummary ul
{
	margin: 0;
	padding: 0 0 0 20px;
}

div.wide.form label
{
	float: left;
	margin-right: 10px;
	position: relative;
	text-align: right;
	width: 100px;
}

div.wide.form .row
{
	clear: left;
}

div.wide.form .buttons, div.wide.form .hint, div.wide.form .errorMessage
{
	clear: left;
	padding-left: 105px;
}

.form .tooltip {
    display: none;
    background-color: #EFFDFF;
    opacity: 0.4;
    border: 1px solid #79B4DC;
    border-radius: 4px;
    padding: 10px;
    width: 300px;
    font-weight: bold;
    cursor: help;
    text-align: justify;
}

.form .tooltip:hover {
    opacity: 0.9;
}

.relation label {
    display: inline-block !important;
}