/* SIDEBAR */

#page-sidebar,#page-sidebar-controls{
    position: absolute;
    right: 0px;
    top: 56px;
    z-index:101;
    overflow: hidden;
}

#page-sidebar{
    width: 300px;
    background-color:rgba(255,255,255,0.8);
    overflow-y: auto;
    padding-top:16px;
    padding-bottom: 16px;
    padding-right:6px;
    padding-left:6px;
    color: white;
    border-left: solid 3px white;
    display: none;
    height: 94%;
}
#sidebar-container.open #page-sidebar{ display: block;}

#page-sidebar > div{ display: none; }
#page-sidebar > div.open{ display: block; }

#page-sidebar-controls > div{
    background-color: rgba(255,255,255,0.8);
    margin-top:10px;
    width: 40px;
    height: 40px;
    border-radius: 5px 0px 0px 5px;
    background-position: center;
    background-repeat: no-repeat;
    font-size: 24px;
    padding: 8px;
    padding-top:4px;
}

#page-sidebar-controls > div:hover{ background-color: rgba(150,150,150,1); }
#page-sidebar-controls > div.open{ background-color: rgba(150,150,150,1);}
#sidebar-container.open #page-sidebar-controls{ right: 300px;}
#sidebar-print-content{
  color: #333;
}
#page-sidebar.hidden{
  right: -300px;
  z-index: 1001;
}
#sidebar-heading{
    font-weight: bold;
    font-size: 14px;
    color: black;
}

.location{
  background-image: url('../img/geolocation.png');
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  cursor: pointer;
}




/* SIDEBAR CONTENTS */
#sidebar-map-position{
  text-align: center;
  padding: 5px;
}

.view-ortofoto{
  font-size: 0.8em;
  float: right;
}


/*LayerSwitcher*/
#sidebar-map-layers{
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

li > label {
  font-weight: normal;
}

ul#ls-layers > li.ls-layer{
  margin:0px;
  margin-bottom: 7px;
  padding: 3px;
  background: #fff;
  border-radius: 3px;
  color: #666;
  background-color: #c6c6c6;
  border: 2px solid #c6c6c6;
}

ul#ls-layers > li.ls-layer > label {
  font-weight:normal;
}

li input.ls-layer-visible{
  margin: 0;
  padding: 0;
}

li input.ls-layer-opacity{
  padding: 0;
  margin:0;

  display: block;
  width: 100%;
}

/** Slider styles */
li input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  margin: 5.5px 0;
}
li input[type=range]:focus {
  outline: none;
}
li input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #ffffff;
  border-radius: 4px;
  border: 0.4px solid #828282;
}
li input[type=range]::-webkit-slider-thumb {
  border: 0.5px solid #ffffff;
  height: 15px;
  width: 15px;
  border-radius: 8px;
  background: #ab2836;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -5.9px;
}
li input[type=range]:focus::-webkit-slider-runnable-track {
  background: #ffffff;
}
li input[type=range]::-moz-range-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: #ffffff;
  border-radius: 4px;
  border: 0.4px solid #828282;
}
li input[type=range]::-moz-range-thumb {
  border: 0.5px solid #ffffff;
  height: 15px;
  width: 15px;
  border-radius: 8px;
  background: #ab2836;
  cursor: pointer;
}
li input[type=range]::-ms-track {
  width: 100%;
  height: 4px;
  cursor: pointer;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
li input[type=range]::-ms-fill-lower {
  background: #f2f2f2;
  border: 0.4px solid #828282;
  border-radius: 8px;
}
li input[type=range]::-ms-fill-upper {
  background: #ffffff;
  border: 0.4px solid #828282;
  border-radius: 8px;
}
li input[type=range]::-ms-thumb {
  border: 0.5px solid #ffffff;
  height: 15px;
  width: 15px;
  border-radius: 8px;
  background: #ab2836;
  cursor: pointer;
  height: 4px;
}
li input[type=range]:focus::-ms-fill-lower {
  background: #ffffff;
}
li input[type=range]:focus::-ms-fill-upper {
  background: #ffffff;
}

/** ----- end slider styles ------*/

li span.ls-layer-expand{
  float:left;
  width: 15px;
  display: inline-block;
  border: 1px solid #fff;
  background-color: #fff;
  text-align: center;
  margin-right: 5px;
  font-weight: bold;
  cursor: pointer;
}

/*Expand collapse icons?*/
li.ls-layer.collapsed span.ls-layer-expand:before{
  content: "+";

}
li.ls-layer span.ls-layer-expand:before{
  content: "-";
}

li.ls-layer ul.ls-layer-sublayers{
    background-color: rgba(255,255,255,0.9);
    margin-left: -4px;
    margin-right: -4px;
    margin-top: 2px;
    padding: 5px
}

li.ls-layer ul.ls-layer-sublayers{
  display: block;
}
li.ls-layer.collapsed ul.ls-layer-sublayers{
  display: none;
}



/* MAP CONTROLS */

.sungis-control{
  position: absolute;
  height: 40px;
  width: 40px;
  border-radius: 2px;
  margin: 2px;
}

.sungis-control, .ol-control button, .ol-zoomslider-thumb {
    background-color: #FFF;
    cursor: pointer;
    color: #222;
    font-weight: bold;
}

.sungis-control:hover, .sungis-control:focus,
.ol-control button:hover, .ol-control button:focus,
.ol-zoomslider-thumb:hover, .ol-zoomslider-thumb:focus,
#sidebar-toggle:hover, #sidebar-toggle:focus,
#scene-controls-toggle:hover, #scene-controls-toggle:focus {
    background-color: #DDD;
    box-shadow: 0 2px 6px rgba(250,100,100,0.6),0 -3px 8px rgba(0,0,0,0.2);
}

.sungis-control-icon{
  width: 100%;
  height: 100%;
  display: inline-block;
  background-image: url(/static/adtipub/css/images/spritesheet.png);
}

.sungis-control.active{ border:2px solid red; }


/*[S]*/
/*[S] -> [p] [l] [a]*/
.icon-ruler{ background: #fff url('../img/ruler.svg') no-repeat center left;}
.measure-tool, .search-tool{
  z-index: 1;
  box-shadow: none;
}

.measure-group, .search-group{
  top: 95px;
  cursor: pointer;
  display: inline-block;
  padding: 3px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.measure-group.expand, .search-group.expand{ width: 116px;}

.measure-line{ top: 95px; left:35px; display: none;}
.measure-line-icon{ background-position:-211px -2px; }
.measure-area{ top: 95px; left: 62px; display: none;}
.measure-area-icon{ background-position:-241px -2px; }
.measure-clear{ top: 95px; left: 89px; display: none;}
.measure-clear-icon{ background-position:-181px 0px; }


.search-group{
  top: 65px;
  padding-left:9px;
  font-weight: bold;
  font-size: 1.2em;
}


.search-point{ top:65px; left:35px;  display: none; }
.search-point-icon{ background-position:-122px -2px; }
.search-line{ top:65px; left:62px; display: none; }
.search-line-icon{ background-position:-2px -2px; }
.search-area{ top:65px; left:89px; display: none; }
.search-area-icon{ background-position:-31px -2px; }






/* Measure tooltip style */
.tooltip {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  color: white;
  padding: 4px 8px;
  opacity: 0.7;
  white-space: nowrap;
}
.tooltip-measure {
  opacity: 1;
  font-weight: bold;
}
.tooltip-static {
  background-color: #ffcc33;
  color: black;
  border: 1px solid white;
}
.tooltip-measure:before,
.tooltip-static:before {
  border-top: 6px solid rgba(0, 0, 0, 0.5);
  border-right: 6px solid transparent;
  border-left: 6px solid transparent;
  content: "";
  position: absolute;
  bottom: -6px;
  margin-left: -7px;
  left: 50%;
}
.tooltip-static:before {
  border-top-color: #ffcc33;
}

#mouse-position{
  position: absolute;
  z-index: 1;
  width: 200px;
  text-align: center;
  margin-left: -100px;
  left: 50%;
  background: rgba(0,60,136,.3);
  border-radius: 4px;
  bottom: 8px;
  padding: 2px;
  font-size: 0.9em;
  color:white;
}


/*MINIMAP*/
.ol-overviewmap{
  left: initial;
  right: .5em;
  bottom: 1.5em;
}


/* Layerswitcher settings */
.layer-settings{
  float: right;
}
.layer-settings:hover{
  font-size: 1.2em;
}

.layer-settings-dialog{
  display: none;
  z-index: 102;
  position: absolute;
  top: 8em;
  left: 5em;
  background-color: white;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3),0 -3px 8px rgba(0,0,0,0.2);
  max-width: 600px;
  min-width: 400px;
}

.layer-settings-dialog .close{
  float: right;
  margin-left: 10px;
}

.layer-settings-dialog .head{
  border-bottom: 1px solid #e5e5e5;
  font-size:18px;
  font-weight: bold;
  cursor: pointer;
}

.layer-settings-dialog .head, .layer-settings-dialog .body{
  padding: 15px;
}

.fa { cursor: pointer; }
