.form {
//	@include test(orange);
	.section-header {
		@include border-radius(3px);
		background: rgba(white, 0.1);
		font-size: 0.8em;
		margin-top: $interiorMargin;
		padding: $interiorMargin;
		&:first-child {
			margin-top: 0;
		}
	}
	.form-section {
		position: relative;
	}

	.form-row {
		@include box-sizing(border-box);
		@include clearfix;
		border-top: 1px solid $colorInteriorBorder;
		margin-top: $interiorMargin;
		padding: $interiorMargin;
		position: relative;
		&.first {
			border-top: none;
		}

		.label,
		.controls {
//			@include test(orange);
			@include box-sizing(border-box);
			@include clearfix;
			box-sizing: border-box;
			font-size: 0.75rem;
			line-height: $formInputH;
            min-height: $formInputH;
		}

		>.label {
			// Only style this way for immediate children of .form-row; prevents problems when .label is used in .controls section of a form
			float: left;
            position: relative;
			white-space: nowrap;
			width: $formLabelW;
		}

		.value {
			color: lighten($colorBodyFg, 20%);
		}

		.controls {
			float: left;
            position: relative;
			width: 99.9% - $formLabelW; // Start with less than 100% for Firefox

			.l-composite-control {
//				display: inline-block;
				&.l-checkbox {
//					@include test();
//					height: $formRowCtrlsH;
					display: inline-block;
					line-height: $formRowCtrlsH;
					margin-right: 5px;
				}
			}

			input[type="text"] {
				height: $formInputH;
				line-height: $formInputH;
				margin-top: -4px;
				vertical-align: baseline;
			}

			.l-med input[type="text"] {
				width: 200px;
			}

			.l-small input[type="text"] {
				width: 50px;
			}

			.l-numeric input[type="text"] {
				text-align: right;
			}

			.select {
				margin-right: $interiorMargin;
			}
		}

		.field-hints {
			color: darken($colorBodyFg, 20%);
		}

		.selector-list {
			// Used in create overlay to display tree view
			$h: 150px;
			@include border-radius($basicCr);
			@include box-sizing(border-box);
			background: rgba(black, 0.2);
			padding: $interiorMargin;
			position: relative;
			height: $h;
			overflow: auto;
//			max-width: 50%;
			.wrapper {
				$p: $interiorMargin;
				overflow-y: auto;
				position: absolute;
				top: $p;
				right: $p;
				bottom: $p;
				left: $p;
			}
		}
	}
}

label.form-control.checkbox {
	input {
		margin-right: $interiorMargin;
		vertical-align: top;
	}
}

.hint,
.s-hint {
	font-size: 0.9em;
}

.l-result {
	// Used in /vista/channel-query.html and evr-query.html as of 2/24/15
	display: inline-block;
	min-width: 32px; min-height: 32px;
	position: relative;
	vertical-align: top;

	div.s-hint {
		@include border-radius($basicCr);
		background: rgba($colorFormInvalid, 0.8);
		display: block;
		color: lighten($colorFormInvalid, 30%);
		padding: $interiorMargin;
	}
}