/*
 * (c) 2009 Christoph Böhme <christoph@b3e.net>
 * 
 * This file is part of Novam.
 * 
 * Novam is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Novam is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Foobar.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * Widgets: Default styles
 */

h2
{
	position: absolute;
	top: 0px;
	left: 0px;
	right: 0px;
	height: 20px;

	margin: 0px;

	padding-left: 5px;
	padding-top: 1px;
	padding-right: 5px;
	padding-bottom: 1px;

	border-bottom: 1px solid #babdb6;

	font-weight: bold;
	font-size: small;
}

/*
 * StopViewer
 */

h2.StopViewer img
{
	margin-right: 5px;

	vertical-align: middle;
}

dl.StopViewer
{
	position: absolute;
	left: 0px;
	top: 23px;
	right: 0px;
	bottom: 23px;

	margin: 0px;

	padding: 10px;

	font-size: small;

	overflow: auto;
}

dl.StopViewer dt
{
	display: block;
	float: left;
	clear: both;

	width: auto;
	min-width: 190px;

	font-weight: bold;
}

dl.StopViewer dd
{
	display: block;
	margin-left: -5px;
	padding-left: 195px;

	width: auto;
}

dl.StopViewer span.TagPrefix
	{ color: #729fcf; }

dl.StopViewer dd.MissingTag,
dl.StopViewer dd.InvalidTag,
dl.StopViewer dd.InvalidTagRemark
	{ background-color: #fef7b8; }

dl.StopViewer dd.MissingTag,
dl.StopViewer dd.InvalidTag
	{ margin-top: 2px; }

dl.StopViewer .MissingTag,
dl.StopViewer .InvalidTagRemark
	{ margin-bottom: 2px; }

dl.StopViewer dd.InvalidTag,
dl.StopViewer dt.MissingTag
{
	font-weight: bold;
	color: #a40000;
}

dl.StopViewer dt.InvalidTagRemark 
	{ visibility: hidden; }

dl.StopViewer dd.InvalidTagRemark,
dl.StopViewer dd.MissingTag
	{ color: #a40000; }

p.StopViewer
{
	position: absolute;
	left: 0px;
	right: 0px;
	bottom: 0px;

	height: 20px;

	margin: 0px;

	padding-left: 5px;
	padding-top: 1px;
	padding-right: 5px;
	padding-bottom: 2px;

	font-size: small;

	overflow: auto;

	text-align: right;
}

h2.StopViewer span.OSMReference
	{ color: #babdb6; }

object.StopViewer
{
	/* display: none does not work here as Opera
	 * won't attempt to load the object in this 
	 * case (I have not checked other browsers).
	 */
	width: 0px; 
	height: 0px; 
}

div.StopViewer.FlashMessage
{
	position: absolute;
	left: 10%;
	right: 10%;
	top: 33px;

	border: 1px solid black;

	padding: 5px;

	text-align: center;

	background-color: white;
}

/*
 * Map Key
 */

dl.MapKey
{
	margin-left: 10px;
	margin-top: 35px;
}

dl.MapKey dt
{
	display: block;
	float: left;
	clear: both;

	width: 20px;

	height: 20px;
}

dl.MapKey dd
{
	display: block;
	margin-left: 30px;
	margin-bottom: 7px;

	width: auto;
}

p.MapKey
{
	margin-left: 40px;
	margin-top: 20px;

	font-size: small;
}

/*
 * SchemeSelector
 */

fieldset.SchemeSelector
{
	position: absolute;
	left: 0px;
	top: 23px;
	right: 0px;
	bottom: 0px;

	margin: 0px;

	padding: 10px;

	border-style: none;

	font-size: small;

	overflow: auto;
}

fieldset.SchemeSelector label
	{ display: none; }

fieldset.SchemeSelector select
	{ width: 100%; }

/*
 * SearchBox
 */

fieldset.SearchBox
{
	position: absolute;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;

	margin: 0px 0px 2px;

	padding: 5px 450px 5px 70px;

	text-align: left;

	border-left: none;
	border-right: none;
	border-top: 1px solid #babdb6;
	border-bottom: 1px solid #babdb6;

	font-size: small;

	overflow: hidden;

	line-height: 26px;
}

fieldset.SearchBox label
{
	width: 45px;

	margin-left: -60px;
	margin-right: 10px;

	vertical-align: middle;

	font-weight: bold; 

	line-height: normal; 
}

fieldset.SearchBox input[type=text]
{
	width: 100%; 
	vertical-align: middle;

	line-height: normal; 
}

fieldset.SearchBox button
{
	width: 70px;
	margin-right: -80px;
	margin-left: 10px;

	vertical-align: middle;

	line-height: normal; 
}

div.SearchBox.FlashMessage
{
	position: absolute;
	top: 6px;
	right: 10px;
	bottom: 6px;

	padding: 0px 0px;

	width: 350px;

	font-size: x-small;
}

div.SearchBox.FlashMessage img
{
	float: left;
	margin-right: 10px;
}

div.SearchBox.ResultsBrowser
{
	display: table-row;

	position: absolute;
	top: 6px;
	right: 10px;
	bottom: 6px;

	width: 350px;
}

div.SearchBox.ResultsBrowser div.PreviousResult
{
	display: table-cell;

	vertical-align: middle;

	width: 12px;
	height: 26px;

	background-image: url(arrow_left.png);
	background-position: center;
	background-repeat: no-repeat;

	cursor: pointer;
}

div.SearchBox.ResultsBrowser div.PreviousResult:hover
	{ background-image: url(arrow_left_highlighted.png); }

div.SearchBox.ResultsBrowser div.NextResult
{
	display: table-cell;

	vertical-align: middle;

	width: 12px;
	height: 26px;

	background-image: url(arrow_right.png);
	background-position: center;
	background-repeat: no-repeat;

	cursor: pointer;
}

div.SearchBox.ResultsBrowser div.NextResult:hover
	{ background-image: url(arrow_right_highlighted.png); }

div.SearchBox.ResultsBrowser div.ResultsCounter
{
	display: table-cell;

	vertical-align: middle;
	
	width: 26px;
	max-height: 26px;

	padding: 0px 10px;
}

div.SearchBox.ResultsBrowser div.ResultsCounter span.LocationIndex
{
	position: relative;
	top: -4px;
	left: -1px;
	
	font-size: small;
}

div.SearchBox.ResultsBrowser div.ResultsCounter span.LocationLength
{
	position: relative;
	top: 3px;
	left: 1px;
	
	font-size: small;
}

div.SearchBox.ResultsBrowser div.LocationInfo
{
	display: table-cell;

	vertical-align: middle;
	
	width: 270px;
	max-height: 26px;

	padding: 0px 10px 0px 0px;

	font-size: x-small;

	overflow: hidden;
	cursor: pointer;
}

div.SearchBox.ResultsBrowser div.LocationInfo:hover
	{ color: #204a87; }

/*
 * MapControl
 */

#map
{
	position: absolute;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;

	border: 1px solid #babdb6; 
}

/* For some reason the slider image has a top offset of 6px which results in 
 * a displacement of the slider on the zoombar. Setting vertical-align to top 
 * solves this issue. However it should not be neccessary in the first place!
 */
img[src="scripts/OpenLayers/img/slider.png"]
	{ vertical-align: top; }

#map_OpenLayers_ViewPort
	{ z-index: 0; }

div.MapStatus
{
	position: absolute;
	left: 30%;
	right: 30%;
	top: 15px;

	padding: 5px;

	border: 1px solid black;

	background-color: white;

	text-align: center;

	z-index: 1;
}
