.button,
button,
input,
select,
textarea,
span.disabledInput {
	display:inline-block;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;	
	border:1px solid #BBB;
  /*border-radius:2px;*/
  margin:0;
	padding:2px;
	line-height:19px;
}

.button,
button,
input,
select,
textarea.oneline {
	vertical-align:middle;
	height:23px;
}

textarea.oneline {
	overflow:hidden;	
}

input[type="button"],
input[type="submit"],
button {
	line-height:1.2;
	border-radius:2px;
}

button,
.button,
input[type="button"],
input[type="submit"] {
	background:#FFF url('/images/ui/gradient.png') 0 50% repeat-x;
	border-color:#CCC;
	font-weight:bold;
	text-shadow:0 1px 0 #FFF;
	text-decoration:none;
	padding:3px 1em;
	width:auto;
	overflow:visible;
	cursor:pointer;
	/*border-radius:3px;*/
}

.buttonHighlight {
    border-color: #F00;
}

input[type="submit"] {
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="text"]:focus,
input[type="password"]:focus, 
textarea:focus,
select:focus {
	border-color:#AAA;
	box-shadow:0 0 3px rgba(0,0,0,0.15);
}

button:hover,
.button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
	background-position:0 100%;
}

button:active,
.button:active,
input[type="button"]:active,
input[type="submit"]:active {
	background-color:#EEE;
	border-color:#888;
}

span.disabledInput,
input[disabled],
textarea[disabled],
select[disabled] {
	background:#F8F8F8!important;
	color:#888;
	border:1px solid #DDD;
}

select {
	padding:2px 2px 2px 0;
}

select.multiple {
    height: 5em;
}

/* Defaults */

input[type="text"] {
	width:250px;
}

textarea {
	overflow:auto;
	vertical-align:top;
	width:250px;
	height:105px;
	line-height:1.3;
}

input.number {
	width:75px;
	text-align:right;
}

input.date {
	width:92px;
	padding-right:20px;
	background-image:url('/images/icons/calendar.png');
	background-position:96% 52%;
	background-repeat:no-repeat;
	cursor:pointer;
}

input.date[disabled] {
	background-image:url('/images/icons/calendar-disabled.png');
	background-image:none;
	padding-right:2px;
	margin-right:17px;
	width:75px;
	cursor:text;
}

textarea.oneline {
	vertical-align:top;
}

button img {
	vertical-align:middle;
	margin:-1px 4px 2px -3px;
}

/* fieldset */

fieldset {
	border:1px solid #DDD;
	padding:0.5em;
	margin-bottom:1em;
}

fieldset legend {
	padding:0 0.5em;
	font-weight:bold;
	color:#042360;
}

fieldset legend input {
	margin-left:0.5em;
}

fieldset legend label {
}


/* table.form */

.form {
	border-collapse:separate;
	border-spacing:3px;
}

.form td {
	line-height:23px;
	height:23px;
	padding:0;
	white-space:nowrap;
	vertical-align:top;
}

.form .label {
	font-weight:bold;
	min-width:120px;
	text-align:right;
	padding-right:5px;
	/*
	background:#3170B0;
	color:white;
	*/
}

.form td.label {
	width:120px;
}

.form td label {
	display:inline-block;
	vertical-align:middle;
}

.form td input,
.form td textarea,
.form td select,
.form td label,
.form td span {
	display:inline-block;
}

.form td br + input,
.form td br + textarea,
.form td br + select,
.form td br + label,
.form td br + span {
	margin-top:3px;
}

.form td.form-buttons {
	padding-top:2em;
}

/* table.compactform */

.compactform {
	width:355px;
	/*margin-left:-15px;*/
	margin-bottom:10px;
}


/* IE */
.placeholder {
	color:#888;
}
input[type="radio"],
input[type="checkbox"],
input[type="file"] {
	border:0;
	background:none;
	height:auto;
}


/* Firefox */
input::-moz-focus-inner,
button::-moz-focus-inner {
	padding:1px;
	border:0;
}


/* Webkit */

@media screen and (-webkit-min-device-pixel-ratio:0) {
	select,
	button,
	.button,
	input[type="button"],
	input[type="submit"] {
		margin-top:-1px;
	}
}


/* feilmeldinger */
div.error {
    display: none;
}

label.error {
    width: 250px;
    display: block;
    color: red;
    font-style: italic;
}

input.error,
select.error,
textarea.error {
    border: 1px solid red;
}

input.required,
select.required,
textarea.required {
	background-color: #F9F9B1;
}

/* all */
::-webkit-input-placeholder { /* Webkit */
	color: silver;
 }
 
 :-moz-placeholder { /* Firefox 18-4 */
	color: silver;  
 }
 
 ::-moz-placeholder {  /* Firefox 19+ */
	color: silver;  
 }
 
 :-ms-input-placeholder {  /*  IE10+  */
	color: silver;  
 }