/* Bar style */
.ol-control.ol-bar
{	left: 50%;
	min-height: 1em;
	min-width: 1em;
	position: absolute;
	top: 0.5em;
	transform: translate(-50%,0);
	-webkit-transform: translate(-50%,0);
}

/* Hide subbar when not inserted in a parent bar */
.ol-control.ol-toggle .ol-option-bar
{	display: none;
}

/* Default position for controls */
.ol-control.ol-bar .ol-bar
{	position: static;
}
.ol-control.ol-bar .ol-control
{	position: relative;
	top: auto;
	left:auto;
	right:auto;
	bottom: auto;
	display: inline-block;
	/*vertical-align: middle;dxicay 11/12/2017; para mostrar los controles personalizados arriba y no en medio */
	vertical-align: top;
	background: none;
	padding: 0;
	margin: 0;
	transform: none;
	-webkit-transform: none;
}
.ol-control.ol-bar .ol-bar
{	position: static;
}
.ol-control.ol-bar .ol-control button
{	margin:2px 1px;
}

/* Positionning */
/*.ol-control.ol-bar.ol-left
{	left: 0.5em;
	top: 50%;
	transform: translate(0px, -50%);
}*/

.ol-control.ol-bar.ol-left {
    left: 0.5em; 
    top: 3.0em!important;
    transform: translate(0px, -50%);    
}


.ol-control.ol-bar.ol-left .ol-control
{	display: block;
}

.ol-control.ol-bar.ol-right
{	left: auto;
	right: 0.9em;
	top: 50%;
	transform: translate(0px, -50%);
}
.ol-control.ol-bar.ol-right .ol-control
{	display: block;
}

.ol-control.ol-bar.ol-bottom
{	top: auto;
	bottom: 0.5em;
}

.ol-control.ol-bar.ol-top.ol-left,
.ol-control.ol-bar.ol-top.ol-right
{	top: 4.75em;
	transform:none;
}
.ol-touch .ol-control.ol-bar.ol-top.ol-left,
.ol-touch .ol-control.ol-bar.ol-top.ol-right
{	top: 2.5em; 
}
.ol-control.ol-bar.ol-bottom.ol-left,
.ol-control.ol-bar.ol-bottom.ol-right
{	top: auto;
	bottom: 0.5em;
	transform:none;
}

/* Group buttons */
.ol-control.ol-bar.ol-group
{	margin: 1px 1px 1px 0;
}
.ol-control.ol-bar.ol-right .ol-group,
.ol-control.ol-bar.ol-left .ol-group
{	margin: 1px 1px 0 1px;
}

.ol-control.ol-bar.ol-group button
{	border-radius:0;
	margin: 0 0 0 1px;
}
.ol-control.ol-bar.ol-right.ol-group button,
.ol-control.ol-bar.ol-left.ol-group button,
.ol-control.ol-bar.ol-right .ol-group button,
.ol-control.ol-bar.ol-left .ol-group button
{	margin: 0 0 1px 0;
}
.ol-control.ol-bar.ol-group .ol-control:first-child > button
{	border-radius: 5px 0 0 5px;
}
.ol-control.ol-bar.ol-group .ol-control:last-child > button
{	border-radius: 0 5px 5px 0;
}
.ol-control.ol-bar.ol-left.ol-group .ol-control:first-child > button,
.ol-control.ol-bar.ol-right.ol-group .ol-control:first-child > button,
.ol-control.ol-bar.ol-left .ol-group .ol-control:first-child > button,
.ol-control.ol-bar.ol-right .ol-group .ol-control:first-child > button
{	border-radius: 5px 5px 0 0;
}
.ol-control.ol-bar.ol-left.ol-group .ol-control:last-child > button,
.ol-control.ol-bar.ol-right.ol-group .ol-control:last-child > button,
.ol-control.ol-bar.ol-left .ol-group .ol-control:last-child > button,
.ol-control.ol-bar.ol-right .ol-group .ol-control:last-child > button
{	border-radius: 0 0 5px 5px;
}

/* */
.ol-control.ol-bar .ol-rotate
{	opacity:1;
	visibility: visible;
}
.ol-control.ol-bar .ol-rotate button
{	display: block
}

/* Active buttons */
.ol-control.ol-bar .ol-toggle.ol-active > button
{   background: rgba(60, 136, 0, 0.7);
    background: rgb(60, 136, 0);
}
.ol-control.ol-bar .ol-toggle.ol-active button:hover
{
    background: rgba(60, 136, 0, 0.7);
    background: rgb(60, 136, 0);
}
.ol-control.ol-toggle button:disabled
{	
    background: rgba(0,60,136,.3);
    background: rgb(0,60,136);
}

/* Subbar toolbar */
.ol-control.ol-bar .ol-control.ol-option-bar 
{	display: none;
	position:absolute;
	top:100%;
	left:0;
	margin: 5px 0;
	border-radius: 0;
	background: rgba(255,255,255, 0.8);
	background: rgb(255,255,255);
	/* border: 1px solid rgba(0, 60, 136, 0.5); */
	box-shadow: 0 0 0 1px rgba(0, 60, 136, 0.5), 1px 1px 2px rgba(0, 0, 0, 0.5);
	box-shadow: 0 0 0 1px rgb(0, 60, 136), 1px 1px 2px rgb(0, 0, 0);
}

.ol-control.ol-bar .ol-option-bar:before
{	content: "";
	border: 0.5em solid transparent;
	border-color: transparent transparent rgba(0, 60, 136, 0.5);
	border-color: transparent transparent rgb(0, 60, 136);
	position: absolute;
	bottom: 100%;
	left: 0.3em;
}

.ol-control.ol-bar .ol-option-bar .ol-control
{	display: table-cell;
}
.ol-control.ol-bar .ol-control .ol-bar
{	display: none;
}
.ol-control.ol-bar .ol-control.ol-active > .ol-option-bar 
{	display: block;
}

.ol-control.ol-bar .ol-control.ol-collapsed ul
{	display: none;
}

.ol-control.ol-bar .ol-control.ol-text-button > button:hover,
.ol-control.ol-bar .ol-control.ol-text-button > button
{	background: none;
	/*color: rgba(0, 60, 136, 0.5);
	color: rgb(0, 60, 136);*/	
	
	width: auto;
	min-width: 1.375em;
	margin: 0;
}

.ol-control.ol-bar .ol-control.ol-text-button
{	font-size:1.2em;
	/*border-left: 1px solid rgba(0, 60, 136, 0.8);
	border-left: 1px solid rgb(0, 60, 136);*/
	
	/*background: rgba(60, 136, 0, 0.7);*/
    background: #777;
	
	
	border-radius: 0;
}
.ol-control.ol-bar .ol-control.ol-text-button:first-child
{	border-left:0;
}
.ol-control.ol-bar .ol-control.ol-text-button button
{	padding:0 0.3em;
	font-weight: normal;
	height:1.4em;
}
.ol-control.ol-bar .ol-control.ol-text-button button:hover
{	
    /*color: rgba(0, 60, 136, 1);
 	color: rgb(0, 60, 136);
 	*/
 	background: rgba(60, 136, 0, 0.7);
    background: rgb(60, 136, 0);
}

.ol-control.ol-bar.ol-bottom .ol-option-bar
{	top: auto;
	bottom: 100%;
}
.ol-control.ol-bar.ol-bottom .ol-option-bar:before
{	
    border-color: rgba(0, 60, 136, 0.5) transparent transparent ;
    border-color: rgb(0, 60, 136) transparent transparent ;
	bottom: auto;
	top: 100%;
}

.ol-control.ol-bar.ol-left .ol-option-bar
{	left:100%;
	top: 0;
	bottom: auto;
	margin: 0 5px;
}
.ol-control.ol-bar.ol-left .ol-option-bar:before
{	
    border-color: transparent rgba(0, 60, 136, 0.5) transparent transparent;
    border-color: transparent rgb(0, 60, 136) transparent transparent;
	bottom: auto;
	right: 100%;
	left: auto;
	top: 0.3em;
}
.ol-control.ol-bar.ol-right .ol-option-bar
{	right:100%;
	left:auto;
	top: 0;
	bottom: auto;
	margin: 0 5px;
}
.ol-control.ol-bar.ol-right .ol-option-bar:before
{	
    border-color: transparent transparent transparent rgba(0, 60, 136, 0.5);
    border-color: transparent transparent transparent rgb(0, 60, 136);
	bottom: auto;
	left: 100%;
	top: 0.3em;
}

.ol-control.ol-bar.ol-left .ol-option-bar .ol-option-bar,
.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar
{	top: 100%;
	bottom: auto;
	left: 0.3em;
	right: auto;
	margin: 5px 0;
}
.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar
{	right: 0.3em;
	left: auto;
}
.ol-control.ol-bar.ol-left .ol-option-bar .ol-option-bar:before,
.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar:before
{	
    border-color: transparent transparent rgba(0, 60, 136, 0.5);
    border-color: transparent transparent rgb(0, 60, 136);
	bottom: 100%;
	top: auto;
	left: 0.3em;
	right: auto;
}
.ol-control.ol-bar.ol-right .ol-option-bar .ol-option-bar:before
{	right: 0.3em;
	left: auto;
}
