/*
======================= START OF LICENSE NOTICE =======================
Copyright (C) 2023 Alessandro Battistini. All Rights Reserved
NO WARRANTY. THE PRODUCT IS PROVIDED BY DEVELOPER "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DEVELOPER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE PRODUCT, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
======================== END OF LICENSE NOTICE ========================
This file is an integral part of the framework AB_WEBMAP, please do not edit, use, modify or change without permission of the developer
*/

/* barre buttons */

.ab_UR {
  z-index: 2002;
  position: absolute;
  right: 0px;
  top: 0px;
}

.ab_UL {
  z-index: 2002;
  position: absolute;
  left: 0px;
  top: 0px;
}

.ab_LL {
  z-index: 1999;
  position: absolute;
  left: 0px;
  bottom: 0px;
}

.ab_LR {
  z-index: 1999;
  position: absolute;
  right: 0px;
  bottom: 0px;
}

/* barra superiore e inferiore */

.ab-bottomBar {
  padding-left: 155px;
} 

.ab-topBar {

}

.ab-map-infopanel {
  z-index: 2000;
}

.ab-map-headerpanel {
  z-index: 2000;
  position: absolute;
  top: 0px;
}

/* colonne */

.ab_SX1 {
  z-index: 2001;
  position: absolute;
  left: 0px;
  top: 35px;
  width: 44px;
}

.ab_SX2 {
  z-index: 1998;
  position: absolute;
  left: 0px;
  bottom: 35px;
  width: 44px;
}

.ab_DX1 {
  z-index: 2001;
  position: absolute;
  right: 0px;
  top: 35px;
  width: 44px;
}

.ab_DX2 {
  z-index: 1998;
  position: absolute;
  right: 0px;
  bottom: 35px;
  width: 44px;
}

/* 
#opzioni {
    z-index: 9999;
    position: absolute;
} */

/* ICONE  */

i.icon.icon-mouse {
  width: 32px;
  height: 32px;
  background-image: url("icons/mouse.png");
}

/* ZOOM SLIDER */

.ol-zoomslider {
  /* top: 36px !important; */
  /* left: auto; */
  /* right: 0px; */
  position: static;
  background-color: rgba(0, 76, 126, 0.2);
  width: 44px;
  height: 180px;
  padding: 0;
  box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2),
    0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12);
  border-radius: 0px;
}

.ol-zoomslider:hover {
  background-color: rgba(0, 45, 126, 0.3);
}

.ol-zoomslider-thumb {
  height: 20px !important;
  width: 42px !important;
  margin: 0;
  filter: none;
  background-color: rgba(0, 108, 126, 0.6);
  border-radius: 0px;
}

a.ol-zoomslider-handle:hover {
  background-color: rgba(255, 69, 0, 0.7);
}

/* Overview map */

.ab_ol_overviewmap,
.ab_ol_overviewmap.ol-uncollapsible {
  /* bottom: 0px;
    right: 0px; */
  /* left: auto;
    top: auto; */
}

.ab_ol_overviewmap:not(.ol-collapsed) {
  border: 1px solid black;
  border-radius: 0px;
}

.ab_ol_overviewmap .ol-overviewmap-map {
  border: none;
  width: 300px;
}

.ab_ol_overviewmap .ol-overviewmap-box {
  border: 2px solid red;
}

.ab_ol_overviewmap:not(.ol-collapsed) button {
  bottom: 1px;
  right: 1px;
  left: auto;
  top: auto;
}

/* Mouse position coordinates */

.ab_mouseCoordinate {
  width: 100px;
}

.custom-mouse-coordinate {
  position: relative;
  display: block;
  font-weight: normal;
  margin: 0em 0em 0em 0em;
  text-align: center;
  /* vertical-align: middle; */
  font-size: smaller;
  line-height: 12px;
  top: 5px;
}

.ab_mousePrjChoice label {
  display: inline-block;
  /* padding-right: 2px; */
}

.ab_mousePrjChoice select {
  line-height: 32px;
  display: inline-block;
  cursor: pointer;
}

/* map scale */

.ab_mapScale select {
  line-height: 32px;
  height: 32px;
  cursor: pointer;
}

.ab_mapScale label {
  line-height: 32px;
}

.ab_mapScaleLine .ol-scale-line {
  bottom: 5px;
}

/* bottoni sulle dialog */

.ab-dialog-title-minmax-btn {
  /* position: absolute; */
  width: 20px;
  padding: 1px;
  margin: 0 3px 0 0;
  height: 20px;
}

.ab-dialog-titlebar-minmax-bar {
  position: absolute;
  margin: -10px 0 0 0;
  height: 20px;
  top: 50%;
  right: 2.2em;
}

.ab-dialog-title-minmax-btn-collapse {
  /* right: 2.4em; */
}

.ab-dialog-title-minmax-btn-minimize {
  /* right: 6.7em; */
}

.ab-dialog-title-minmax-btn-maximize {
  /* right: 4.5em; */
}

#ab_mapScaleText {
  position: absolute;
  top: 6px;
  pointer-events: none;
  line-height: 36px; 
  height: 32px;
  cursor: pointer;
}

.ab-bar{
  align-self: center;
  display: flex;
  flex-wrap: nowrap;
  border-radius: var(--f7-button-border-radius);
  box-shadow: var(--f7-button-box-shadow);
  box-sizing: border-box;
}

.ab_infoScriptButton{
  width: auto;
}