html,body
{
  height:100%;
  overflow:hidden;
}

.navbar
{
  margin-bottom:0;
}

#map-container
{
  height:100%;
  margin:0;
  overflow:hidden;
  position:absolute;
  width:100%;
  z-index:0;
}

#loading-msg
{
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 1em;
  font-size: larger;
}

label
{
  display:inline-block;
  font-weight:400;
  margin-bottom:5px;
}

#search
{
  left:5em;
  position:absolute;
  top:7px;
  width:15em;
  z-index:1000;
}
/* By toggling this class 
add or remove padding in input field
for displaying tash -bin icon
 */
.search-delete-visible
{
  padding-right:30px;
}

#search-delete
{
  left:17.5em;
  position:absolute;
  top:7px;
  z-index:1001;  
  color: #6c757d;
  display: none;
}

#search_list
{
  left:5em;
  position:absolute;
  top:4em;
  z-index:1000;
}

.modal-dialog{
    overflow-y: initial !important;
}

.data-request-table th, .data-request-table td, .data-permission-table th, .data-permission-table td {
    padding: .5em 1em;
    font-weight: normal;
    display: flex;
    align-items: center;
}

.data-request-table, .data-permission-table {
    border: 1px solid #e2e3e5;
    width: 100%;
    overflow: auto;
}

.source-name {
    background-color: #f8f9fa
}

.data-set-name {
    background-color: #e2e3e5
}

.modal-body{
    max-height: calc(100vh - 210px);
    overflow-y: auto;
}

.modal-footer
{
  background-color:#f5f5f5;
  margin:0;
  padding:10px;
}

.ajax_loader_loading
{
  background:url(/static/web/l.gif?de14643a10eb) no-repeat scroll right center / contain #f8f8f8!important;
}

#swipe
{
  bottom: 2.5em;
  position: absolute;
  width: 100%;
  z-index: 2;
}

/* SIDEBAR */

#page-sidebar,#page-sidebar-controls{
    position: absolute;
    right: 0px;
    top: 0px;
    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: calc(100% - 38px);
}
#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('/static/web/img/geolocation.png?28be7de60b30');
  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;
}

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

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

.ls-layer-name{
  margin-left: .5em;
  font-size: large;
}

/** 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{
  width: 1.5em;
  display: inline-block;
  border: 1px solid #fff;
  background-color: #fff;
  text-align: center;
  margin-right: .5em;
  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);
    display: flex;
    align-items: center;
    padding: 5px;
    margin: 4px -4px -4px -4px;
    border-radius: 0 0 3px 3px;
}

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

.ol-viewport {
    outline: none !important;
}

/*  Zoom slider  */
#map-container .ol-viewport .ol-control {
    background-color: #f9fafb80;
}
#map-container .ol-zoom, .ol-zoomslider{
  margin-top: 178px;
  left: -2px;
}

#map-container .ol-zoom .ol-zoom-in,
#map-container .ol-zoom .ol-zoom-out {
    width: 40px;
    height: 40px;
    background-color: #fff;
    color: #000;
    font-size: 1.43em;
    padding-bottom: 3px;
}
#map-container .ol-zoom .ol-zoom-out{
    margin-top: 205px;
}

#map-container .ol-viewport .ol-zoomslider {
    top: 3.3em;
    background-color: #fff;
    width: 0.5em;
    padding: 0;
    -webkit-border-radius: 0.13em;
    -moz-border-radius: 0.13em;
    border-radius: 0.13em;
    margin-left: 1.1em;
}

#map-container .ol-viewport .ol-zoomslider .ol-zoomslider-thumb {
    left: -7px;
    filter: none;
    background-color: rgba(171, 40, 54, 1);
    border-radius: 15px;
    height: 20px;
    width: 20px;
}

#map-container .ol-touch .ol-zoom .ol-zoom-out {
  margin-top: 212px;
}
#map-container .ol-touch .ol-zoomslider {
  top: 2.75em;
}



/* MAP CONTROLS */

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

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

.ol-zoom {
    padding: 1px;
    margin-left: 1px;
}

.ol-zoomslider {
    width: 40px;
    margin-left: 2px;
}

.ol-zoomslider-thumb {
    background-color: #EEE;
    width: 19px;
    height: 14px;
    margin: 4px;
}

.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,
#control-permalink button:hover,  control-permalink button:focus {
    background-color: #DDD;
}

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


.sungis-hand-control{
  top:50px;
  text-align: center;
  padding-top: 3px;
}
.hand-icon{
    font-size: 1.5rem;
    margin-top: 5px;
}

.sungis-drag-zoom-control{
  top:5px;
  padding: 4px;
}
.sungis-drag-zoom-control.active{
  border:2px solid red;
}

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

.drag-zoom-icon{
  font-size: 1.5rem;
  margin-left: 4px;
  margin-top: 5px;
}
.sungis-print-control {
    top: 465px;
    padding: 3px;
}
.print-icon { background: url('/static/web/img/print.png?28be7de60b30') no-repeat top left; }


/*[S]*/
/*[S] -> [p] [l] [a]*/
.icon-ruler{
    background: url('/static/web/img/ruler.svg?28be7de60b30') no-repeat center left;
    display: block;
    width: 32px;
    height: 32px;
}
.measure-tool, .search-tool{
  z-index: 1;
  box-shadow: none;
}

.submission-group {
    top: 20em;
    display: flex;
    align-items: center;
    font-size: 1.5rem;
}

.measure-group, .search-group{
  top: 140px;
  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::before, .search-group::before{
    content: '';
    width: 4px;
    position: absolute;
    background-color: rgba(171, 40, 54, 1);
    height: 100%;
}

.search-group::before{
    margin-top: -4px;
    margin-left: -9px;
}

.measure-group::before{
    margin-top: -3px;
    margin-left: -3px;
}

.measure-line{
    top: 140px;
    left:40px;
    display: none;
}
.measure-line-icon{
    background: url('/static/web/img/line.png?28be7de60b30') no-repeat center left;
    background-size: 35px 35px;
}
.measure-area{
    top: 140px;
    left: 80px;
    display: none;
}
.measure-area-icon{
    background: url('/static/web/img/polygon.png?28be7de60b30') no-repeat center left;
    background-size: 35px 35px;
}
.measure-clear{
    top: 140px;
    left: 120px;
    display: none;
}
.measure-clear-icon{
    background: url('/static/web/img/bin.png?28be7de60b30') no-repeat center left;
    background-size: 35px 35px;
}


.search-group {
    top: 95px;
    font-size: 1.5rem;
    padding-top: 4px;
    padding-left: 9px;
}


.search-point{
    top:95px;
    left:40px;
    display: none;
}
.search-point-icon{
    background: url('/static/web/img/marker.png?28be7de60b30') no-repeat center left;
    background-size: 35px 35px;
}
.search-line{
    top: 95px;
    left: 80px;
    display: none;
}
.search-line-icon{
    background: url('/static/web/img/line.png?28be7de60b30') no-repeat center left;
    background-size: 35px 35px;
}
.search-area{
    top:95px;
    left:120px;
    display: none;
}
.search-area-icon{
    background: url('/static/web/img/polygon.png?28be7de60b30') no-repeat center left;
    background-size: 35px 35px;
}

.submit-polygon{
    top: 30em;
    left: 2.5em;
    display: none;
}






/* 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{
    display: none;
}

/* Bottom-right tools */
#control-permalink {
    background-color: rgba(255,255,255,.4);
    border-radius: 4px;
    padding: 2px;
    user-select: none;
}

#control-permalink button {
    font-weight: 900;
}

.control-attributions>button {
    position: relative;
    flex: 1 1 auto;
    padding: .375rem;
    width: 40px;
    height: 40px;
}

.control-attributions {
    position: relative;
    display: inline-flex;
}

.control-attributions:not(.ol-collapsed) {
  background: none;
}

.control-attributions.ol-collapsed ul {
  display: none !important;
}

.control-attributions ul {
  display: flex;
  position: absolute;
  bottom: 2.5rem;
  right: -0.5rem;
  align-items: center;
  padding: .5em 1em;
  margin-bottom: .5em;
  background: rgba(255,255,255,.9);
  border: solid 1px gray;
  font-weight: normal;
}

.control-attributions li {
  margin-left: auto;
}

/* A.Ansbergs 22.07.21 */
.control-attributions-expand {
    font-size: 1.25em;
}

#modal_restoreMapSate input {
    font-size: 0.9em;
}

.ol-scale-line {
    bottom: 3em;
}

.bottom-bar {
    background-color: snow; 
    height: 2.5em; 
    position: absolute; 
    bottom: 0; 
    border-top: solid 1px gray;
    opacity: 60%;
}

/*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; }


.text-input-wrapper {
    position: relative;
}

.text-input-wrapper span {
  cursor:pointer;
  font-weight: bold;
  font-size: 1.5rem;
  position: absolute;
  right: 10px;
  top: 1px;
  display: none;
}

@media print {
    #search, .ol-control,
    #page-sidebar-controls, .bottom-bar,
    .sungis-control, #nav_colapse {
        display: none !important;
    }
}
