/*
======================= 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
*/

/* ------------------------- */
/* AB POPUP */
/* ------------------------- */

.ab-popup-menu,
.ab-popup {
  position: "absolute";
  width: fit-content;
  height: auto;
  z-index: 999999;
  background-color: white;
  overflow: auto;
  overflow-x: hidden;

  border-radius: var(--f7-popover-border-radius);
  box-shadow: var(--f7-popover-box-shadow);
}

.ab-popup-menu {
  overflow: hidden;
}

.ab-popup-menu-row {
  min-height: 20px;
  padding: 10px;
  height: auto;
  width: auto;

  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* combobox, preso da jquery autocomplete combox */
.ab-combobox {
  position: relative;
  display: inline-block;
}
.ab-combobox-toggle {
  position: absolute;
  top: 0;
  bottom: 0;
  margin-left: -1px;
  padding: 0;
}
.ab-combobox-input {
  margin: 0;
  padding: 5px 10px;
  width: 100%;
}

.ab-popup .ab-content {
  border: 1px solid black;
  padding: 5px;
}
.ab-popup .ab-btnsBottom {
  display: flex;
  justify-content: space-between;
  padding: 0px 5px;
}

/* ------------------------- */
/* AB SLIDER */
/* ------------------------- */

.ab-slider-tooltip {
  position: absolute;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 10000;
  white-space: nowrap;
}

.ab-slider.ui-slider {
  /* background: transparent !important; */
  /* border: none !important; */
  box-shadow: none !important;
  height: 6px;
  background: #eee; /* Grigio chiaro per la traccia */
  border: none;
  border-radius: 3px;
  position: relative;
  margin: 10px 0;
}

/* Sovrascrive lo stile azzurro di jQuery UI */
.ab-slider .ui-slider-range.ui-widget-header {
  background: #555 !important; /* Grigio scuro */
  border: none !important;
}

/* Range attivo (valore selezionato) */
.ab-slider.ui-slider-range {
  background: #555; /* Grigio scuro per il tratto attivo */
  border-radius: 3px;
}

/* Maniglia (quadrata) */
.ab-slider .ui-slider-handle {
  width: 14px;
  height: 14px;
  background: #f8f8f8; /* Quasi bianco */
  border: 1px solid #444; /* Grigio scuro */
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  top: 50%;
  transform: translateY(-50%);
}

/* Hover/Focus (migliore visibilità su interazione) */
.ab-slider .ui-slider-handle:hover,
.ab-slider .ui-slider-handle:focus {
  background: #e0e0e0;
  border-color: #222;
}
