/*
======================= 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
*/

:root {
  --f7-theme-color: black;
  --f7-menu-bg-color: var(--f7-theme-color);
  --f7-menu-item-height: 36px;
  --f7-menu-item-border-radius: 0px;
  --f7-menu-item-spacing: 0px;
}

:root {
  --ab-font-family: Arial;
  --ab-bg-color: #ffffff;
  --ab-font-color: #000000;
  --ab-bg-color-onMap: var(--ab-bg-color);
  --ab-font-color-onMap: var(--ab-font-color);
  --ab-bg-color-widget: #ffffff;
  --ab-font-color-widget: #000000;
  --ab-bg-color-control: var(--ab-bg-color);
  --ab-font-color-control: var(--ab-font-color);
}

/* .segmented .ab-button,
.segmented,
.ab-button,
.segmented .ab-button:first-child,
.segmented .ab-button:last-child,
.segmented .ab-button:first-child:last-child {
  border-radius: 0px;
  height: 36px;
  display: flex;
} */

.menu-item {
  padding-left: 8px;
  padding-right: 8px;
}

.menu-item-dropdown-left .menu-dropdown:after,
.menu-item-dropdown-center .menu-dropdown:after,
.menu-dropdown-left:after,
.menu-dropdown-center:after {
  background-image: none;
}

.ab-control-vertical .menu-item {
  display: flex;
}

.list {
  margin: 0px;
}

/* .draggable {
    padding: 5px;
    float: left;
    margin: 0 10px 10px 0;
    font-size: .9em;
} */

.ui-dialog-titlebar {
  background: var(--f7-menu-bg-color);
  color: var(--f7-menu-text-color);
}

.ui-widget-header p,
.ui-widget-content p {
  margin: 0;
}

body {
  opacity: 0;
}

p {
  margin: 1em 0;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85em;
  margin: 0px;
}


.bold {
  font-weight: bold !important;
}

.italic {
  font-style: italic !important;
}

.AllCaps {
  text-transform: uppercase !important;
}

.Normal {
  text-transform: none !important;
  font-variant: none !important;
}

.SmallCaps {
  font-variant: small-caps !important;
}

.Capitalized {
  text-transform: capitalize !important;
}

.Medium {
  font-size: medium !important;
}

.Small {
  font-size: small !important;
}

.XSmall {
  font-size: x-small !important;
}

.Large {
  font-size: large !important;
}

.Larger {
  font-size: larger !important;
}

.XLarge {
  font-size: x-large !important;
}

.XXLarge {
  font-size: xx-large !important;
}

.XXXLarge {
  font-size: -webkit-xxx-large !important;
}

.StrokeBlack {
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
}

.StrokeYellow {
  text-shadow: -1px -1px 0 rgb(255, 255, 0), 1px -1px 0 rgb(255, 255, 0),
    -1px 1px 0 rgb(255, 255, 0), 1px 1px 0 rgb(255, 255, 0);
}

.StrokeRed {
  text-shadow: -1px -1px 0 rgb(255, 0, 0), 1px -1px 0 rgb(255, 0, 0),
    -1px 1px 0 rgb(255, 0, 0), 1px 1px 0 rgb(255, 0, 0);
}

.StrokeGreen {
  text-shadow: -1px -1px 0 rgb(0, 255, 0), 1px -1px 0 rgb(0, 255, 0),
    -1px 1px 0 rgb(0, 255, 0), 1px 1px 0 rgb(0, 255, 0);
}

.StrokeOrange {
  text-shadow: -1px -1px 0 rgb(255, 128, 0), 1px -1px 0 rgb(255, 128, 0),
    -1px 1px 0 rgb(255, 128, 0), 1px 1px 0 rgb(255, 128, 0);
}

.StrokeGray {
  text-shadow: -1px -1px 0 rgb(128, 128, 128), 1px -1px 0 rgb(128, 128, 128),
    -1px 1px 0 rgb(128, 128, 128), 1px 1px 0 rgb(128, 128, 128);
}

.Spacing5 {
  letter-spacing: 5px;
}

.Spacing3 {
  letter-spacing: 3px;
}

.Spacing2 {
  letter-spacing: 2px;
}

.Spacing1 {
  letter-spacing: 1px;
}

.Spacing-1 {
  letter-spacing: -1px;
}

#pageMappa,
#pageContentMappa {
  overflow-x: hidden;
  overflow-y: hidden;
  height: 100%;
}

#content {
  height: 100%;
  border: 1px solid black;
}

.ui-content {
  padding: 0px;
}

.ui-page {
  overflow-y: hidden !important;
}

.ui-dialog {
  z-index: 8000;
  /* Attenzione non metterlo sopra 9998 sennò l'overlay di modal non lo maschera */
  /* basta sopra 6000 per stare sopra i panel */
}

.ab-right10 {
  position: absolute;
  right: 10px;
}

.ab-right20 {
  position: absolute;
  right: 20px;
}

.left10 {
  position: absolute;
  left: 10px;
}

.left20 {
  position: absolute;
  left: 20px;
}

.ab-textCenter {
  text-align: center;
}

.ab-textEllipsis {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.center {
  margin-left: auto;
  margin-right: auto;
}

.bottom10 {
  position: absolute;
  bottom: 10px;
}

.bottom20 {
  position: absolute;
  bottom: 20px;
}

.bottom30 {
  position: absolute;
  bottom: 30px;
}

.bottom40 {
  position: absolute;
  bottom: 40px;
}

.topright10 {
  position: absolute;
  top: 10px;
  right: 10px;
}

.top20 {
  position: absolute;
  top: 20px;
}

.top10 {
  position: absolute;
  top: 10px;
}

.ab-left {
  float: left;
}

.ab-right {
  float: right;
}

.ab-row {
  display: flex;
  flex-direction: row;
}

#autenticazione {
  position: absolute;
  top: 5px;
  right: 10px;
}

.inputObbligatorio {
  background-color: #fba;
  border: 1px solid red;
}

.inputNormale {
  background-color: #bfa;
}

input {
  text-align: center;
}

h1 {
  font-size: 200%;
  /* font-style: italic; */
  font-weight: bold;
}

h2 {
  font-size: 120%;
  font-weight: bold;
}

h3 {
  font-size: 100%;
  font-weight: bold;
}

.ricerca {
  width: 320px;
  height: 402px;
  vertical-align: top;
  position: absolute;
  top: 120px;
  left: 5px;
}

.mappa {
  width: 100%;
  height: 420px;
  display: block;
  padding: 0px;
  margin: 0px;
  position: absolute;
  top: 120px;
  left: 5px;
}

/*  riscriviamo alcune cose di jquery ui */

.ui-corner-all,
.ui-corner-top {
  border-radius: 0px;
}

.ui-dialog,
.ui-dialog-content {
  padding: 0px !important;
}

.panel-view,
.panel-view .list ul {
  background-color: var(--ab-bg-color-widget);
  color: var(--ab-font-color-widget);
}

.ui-widget-content {
  background-color: var(--ab-bg-color-widget);
  color: var(--ab-font-color-widget);
}

.ui-widget-content input,
.ui-widget-content .list input[type="date"],
.ui-widget-content .list input[type="datetime-local"],
.ui-widget-content .list input[type="email"],
.ui-widget-content .list input[type="month"],
.ui-widget-content .list input[type="number"],
.ui-widget-content .list input[type="password"],
.ui-widget-content .list input[type="search"],
.ui-widget-content .list input[type="tel"],
.ui-widget-content .list input[type="text"],
.ui-widget-content .list input[type="time"],
.ui-widget-content .list input[type="url"],
.ui-widget-content .list select {
  background-color: var(--ab-bg-color-widget);
  color: var(--ab-font-color-widget);
}

.ui-widget-content .list ul,
.ui-widget-content .list .item-floating-label,
.ui-widget-content .list .item-label {
  background-color: var(--ab-bg-color-widget);
  color: var(--ab-font-color-widget);
}

.ui-resizable-s {
  height: 10px !important;
}

/* handle on the right */
.ui-resizable-e {
  width: 10px !important;
}
/* handle icon (corner) */
.ui-resizable-se,
.ui-resizable-so,
.ui-resizable-ne,
.ui-resizable-no {
  width: 10px !important;
  height: 10px !important;
}

/* per l'autocomplete simuliamo il slect di chrome che è carino */
.ui-autocomplete {
  background: #333;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #eee;
  font-weight: 600;
  border-radius: 10px;
}

/*++++++++++++++++++++*/
/* ROBA DI AB_WEB_MAP */
/*++++++++++++++++++++*/

.ab-combobox input {
  background: transparent;
}

.ab-link-onMap {
  font-size: medium;
  cursor: pointer;
  z-index: 900;
  text-shadow: 2px 2px 4px #ffffff;
}

.ab-text-onMap {
  font-size: medium;
  z-index: 900;
  color: #ffffff;
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
  background-color: none;
  text-align: center;
}

.ab-blackShadow {
  text-shadow: 1px 1px 2px #000000;
}

#app404 {
  background-color: white;
}

#ab_footer,
#ab_footerSS {
  position: absolute;
  bottom: 0px;
  width: inherit;
}

.ab-disabled {
  opacity: 0.5;
}
.ab-disabled:active {
  pointer-events: none;
}
.ab-disabledWait {
  pointer-events: none; /* Blocca il click */
  opacity: 0.5; /* Schiarisce visivamente */
  /* filter: grayscale(100%); */
  cursor: wait; /* Clessidra */
}

.ab-noClick:active {
  pointer-events: none;
}

.ab-opacity05 {
  opacity: 0.5;
}

.cursor-info {
  cursor: help;
}

#ab_webMap_disclaimer {
  position: absolute;
  right: 0px;
  bottom: 0px;
  font-size: smaller;
}

#dlgAboutPrj .block-header {
  font-weight: bold;
}

#dlgAboutPrj .block-footer {
  font-style: italic;
  font-size: small;
}

.ui-widget,
.ui-widget input,
.ui-widget select,
.ui-widget textarea,
.ui-widget button {
  font-family: var(--ab-font-family);
  /* così li prende dai css root */
}

.ab-btn-tech {
  background: unset !important;
  color: unset !important;
}

.ab-header {
  position: absolute;
  top: 0px;
}

.ab-footer {
  position: absolute;
  bottom: 0px;
}

.ab-item-selected {
  filter: invert(100%);
}

.ab-text-stroke-black {
  text-shadow: 0 0 1px #000;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
}

.ab-text-stroke-white {
  text-shadow: 0 0 1px #fff;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: white;
}

#ab_wait_overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99999999999;
  background: rgba(0, 0, 0, 0.5) url(../images/wait.gif) no-repeat 50% 50%;
  cursor: progress;
}

/* ------------------------------------------ 
    Roba di formattazione veloce 
 ------------------------------------------ */

.ab_center {
  text-align: center;
}

.ab_border_collapsed {
  border-collapse: collapse;
}

.ab_border_bottom {
  border-bottom: 1px solid;
}

.ab_border_top {
  border-top: 1px solid;
}

.ab_border_left {
  border-left: 1px solid;
}

.ab_border_right {
  border-right: 1px solid;
}

/* link */
.ab-link {
  cursor: pointer;
}
.ab-link {
  transition: opacity 300ms;
}
.ab-link.ab-active {
  opacity: 0.3;
  transition-duration: 0ms;
}
/* .ab-link:not(.ab-active):not(.no-hover):hover {
  opacity: 0.65;
  transition-duration: 0ms;
} */

.ab-content .ab-row {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  height: 24px;
  padding: 10px;
  border-bottom: 1px solid #eeeeee;
  display: flex;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ab-content .ab-row .ab-icon {
  flex: 1;
  max-width: 32px;
  margin-right: 5px;
  margin-left: 5px;
  text-align: center;
}



.ab-bi-icon.ab-icon {
  font-size: 24px;
}

.ab-content .ab-row .ab-title {
  flex: 2;
  margin-right: 5px;
  margin-left: 5px;
  flex-grow: 1;
}

.ab-content .ab-row .ab-title {
  min-width: 0;
  flex-shrink: 1;
  white-space: var(--f7-list-item-title-white-space);
  position: relative;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: var(--f7-list-item-title-font-size);
  font-weight: var(--f7-list-item-title-font-weight);
  color: var(--f7-list-item-title-text-color);
  line-height: var(--f7-list-item-title-line-height);
}

.ab-badge {
  color: var(--f7-badge-text-color);
  background: var(--f7-badge-bg-color);
  text-align: center;
  vertical-align: middle;
  font-weight: var(--f7-badge-font-weight);
  font-size: var(--f7-badge-font-size);
  border-radius: var(--f7-badge-size);
  padding: var(--f7-badge-padding);
  height: var(--f7-badge-size);
  min-width: var(--f7-badge-size);
}

.ab-cursor-progress {
  cursor: progress !important;
}

.ab-centered {
  top: 50%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 99;
}

.ab-control-map{
  color: var(--ab-font-color-control) !important;
  /* background: var(--ab-bg-color-control) !important; 
  senno mi maschera la barra che è trasparente, se da problemi mettere i colori ai singoli elementi
  .menu-item,
.menu-dropdown-content,
.ab-button,
.ab-button,
.ab-menu-item,
.ab-menu-dropdown-content,
  */
}

.ab-control-map .menu-item,
.ab-control-map .menu-item-content,
.ab-control-map .ab-button,
.ab-control-map.segmented,
.ab-control-map .ab-button {
  border-radius: 0 !important;
}



.ab-no-border-radius {
  border-radius: 0 !important;
}




.ab-icon-svg {
  width: 28px;
  height: 28px;
  color: var(--ab-font-color);
}



/* Optional: bar container */
/* .ab-menu-bar{
  display: inline-flex;
  align-items: center;
  gap: 8px;
} */
