@import url('https://fonts.googleapis.com/css?family=Titillium Web');
/* The side navigation menu */
.sidenav {
  height: 100%; /* 100% Full-height */
  width: 0; /* 0 width - change this with JavaScript */
  position: fixed; /* Stay in place */
  z-index: 1; /* Stay on top */
  top: 0; /* Stay at the top */
  left: 0;
  background-color: #111; /* Black*/
  overflow-x: hidden; /* Disable horizontal scroll */
  padding-top: 60px; /* Place content 60px from the top */
  transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
  color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

/* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main {
  transition: margin-left .5s;
  padding: 20px;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

h1 {
	margin-top: 0px;
	margin-bottom: 0px;
	font-size: x-large;
	color: white;
	background:#284661; 
	font-family: "Segoe UI", Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial, sans-serif;
	text-align: center;
	font-weight: normal;
}
FORM {
	padding-right: 0px;
	padding-left: 0px;
	background-image: none;
	padding-bottom: 0px;
	margin: 0px;
	padding-top: 0px;
	background-color: transparent;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}
BODY.main {
	color: black;
	/*background: url("../images/Sfondo.gif");*/
	background-repeat: repeat-x;
	background-position: top left;
}

BODY.grafica {
	background-color: #ffffff;
	color:  black;
	margin: 0;
	padding: 0;
}
fieldset{
	border: 1px solid #8F8E8E;
	border-radius: 6px;
	background-color: white;
	border-collapse: separate;
	overflow: hidden;
	/*height:480px;*/
}

div.intestazione {
	width: 100%;
	color: #4f46e5;
	background-color: #ffffff;
	padding: 0px;
	margin: 0px;
}

table.intestazione {
	width: 100%;
	border: 0px solid #000000;
	padding-top: 1px;
	padding-right: 0px;
	padding-left: 0px;
	padding-bottom: 1px;
}
table.mapgrid {
  border: 4px solid #023553; /* Bordo pi� spesso per la tabella */
  border-collapse: collapse;
}

/* ------------------------------------------------------
	definizioni per sentiero
   ------------------------------------------------------*/
div.sentiero {
	width: 100%;
	color: white;
	background-color: #4f46e5;
	border-left: 0px;
	border-right: 0px;
	border-top: 1px solid black;
	border-bottom: 1px solid white;
	margin: 0px;
	padding-left: 0px;
	padding-right: 0px;
}

SPAN.sentiero {
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	font-weight: normal;
	font-size: small;
	text-decoration: none;
	color: black;
}
A.sentiero {
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	font-weight: normal;
	font-size: small;
	text-decoration: underline;
	color: black;
}
.sentiero A:hover {
	padding-right: 0px;
	padding-left: 0px;
	font-weight: normal;
	font-size: small;
	padding-bottom: 0px;
	color: #ffffff;
	background-color: #8F8E8E;
	padding-top: 0px;
	text-decoration: underline;
}
/* ------------------------------------------------------*/
#graficaContainer {
	background-color: #EFEFEF;
	color: black;
	margin: 0;
	border: 0;
	padding: 0;
	border-bottom: 1px solid black;
	width: 100%;
	height: 100%;
}

#container {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	background-color: white;
	border: 0px solid;
}

#dbcontainer {
	background-color: white;
	border: 1px solid;
}

/* ------------------------------------------------------*/
#Panoramica {
	display: inline;
	visibility: hidden;
	position:absolute; 
	top:0px;
	left:0px;
	width: 200px;
	height: 220px;
	overflow:hidden;
	border-width:1px;
	border-style:solid;
	border-color: #000000;
	background-color: white;
	margin:0px;
	padding:0px;
	z-index:31;
}

#PanoramicaView {
	border-width:1px;
	border-style:solid;
	border-color: #FF0000;
	background-color: #FF0000;
	position:absolute;
	margin:0;
	padding:0;
	cursor:move;
	overflow: hidden;
	filter: alpha(opacity=70);
	-moz-opacity:0.7;/* mozilla */
	opacity: 0.7;
}
/* --------------- Toolbar----------------------------*/
#ToolbarEdit{
	position:absolute;
	top=0;
	left=0;
	background-color: #4f46e5F0 !important;
	box-shadow: 0px 0px 30px 0px #575757;
	border-top:    1px inset gray;
	border-bottom: 1px inset gray;	
	width: 95%;
	cursor: pointer;
	overflow:hidden;
	z-index: 11;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;	
	}
	
#Toolbar {
	position:absolute;
	top=0;
	left=0;
	background-color: #4f46e5F0 !important;
	box-shadow: 0px 0px 30px 0px #575757;
	border-top:    1px inset gray;
	border-bottom: 1px inset gray;	
	width: 100%;
	cursor: pointer;
	overflow:hidden;
	z-index: 11;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 0px;	
	}  
ul.Toolbar {
	margin:0px;
	padding:0px;
	text-align:left;
}
li.TBButton {
	display: inline;
	text-decoration:none;
	margin-left:1px;
}
#btnCercaVia {
    background-color: white;
    border: 1px solid #8F8E8E;
    border-radius: 6px;
    padding: 4px 8px;
	position: relative;
    top: 1px;
}

li.TBCtrlScala {
	display: inline;
	text-decoration:none;
	margin: 0px;
	background-color: transparent;
	color: black;
	font-family:  Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 1em;
	vertical-align: 60%;
	border-radius: 5px;
	border: 1px solid #2A5AA2;
	padding-top: 4px;
	padding-bottom: 6px;
	padding-left: 4px;
	padding-right: 4px;
	}

li.TBCtrlSearch {
	display: inline;
	text-decoration:none;
	margin: 0px;
	background-color: transparent;
	color: black;
	font-family:  Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 1em;
	vertical-align: 60%;
	border-radius: 5px;
	border: 1px solid #2A5AA2;
	padding-top: 4px;
	padding-bottom: 7px;
	padding-left: 4px;
	padding-right: 4px;
	}

img.TBButton {
	display: inline;
	border-width:0px;
	border-style:solid;
	border-color: #000000;
	margin: 0px;
	padding:0px;
	width: 28px;
	height: 28px;
}
img.TBButton:hover {
	border-width: 1px;
	border-color: transparent;
}
img.TBSeparator {
	display: inline;
	border: 0px;
	margin: 0px;
	padding:0px;
	width: 5px;
	height: 37px;
}

li.TBCtrlSearch {
	display: inline;
	text-decoration:none;
	margin: 0px;
	background-color: transparent;
	color: black;
	font-family:  Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: 1em;
	vertical-align: 60%;
	border-radius: 5px;
	border: 1px solid #2A5AA2;
	padding-top: 4px;
	padding-bottom: 7px;
	padding-left: 4px;
	padding-right: 4px;
	}	
/* --------------------- Status bar ---------------------*/
#StatusBar {
    z-index: 10;
	position: fixed;
	bottom: 0px;
    width: 100%;    
    height: 24px;
    border:0;
    margin:0;
    padding:0;
    padding-right:20px;
    border-top: 1px solid gray;
    background-color: #f0f0f0;
    color: black;
    vertical-align: middle;
    font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-size: 10px;
    text-align: right;
    white-space:nowrap;
    word-spacing:-2px;
    letter-spacing:0px;
    overflow:hidden;
    filter: alpha(opacity=90); -moz-opacity: 0.90; opacity: 0.90;
}

#MessageInfo {
    color: #000000;
    background-color: transparent;
    display: inline;
	position:relative;
    left:0px;
    text-align: left;
    float: left;
}

#CoordinateInfo {
	display: inline;
	position:relative;
	right:0px;
}

#ExtraInfo {
	z-index: 30;
	position:absolute; 
	top:0px;
	left:0px;
	width: 300px;
	height: 100px;
	overflow:hidden;
	border-width:1px;
	border-style:solid;
	border-color: #000000;
	background-color: white;
	margin:0px;
	padding:0px;
}

/* --Per elementi dinamici-------------------------------*/
#myCanvas {
	display:none;
	position:absolute;
	cursor: crosshair;
	top:  0px;
	left: 0px;
	z-index:2;
    background-color: transparent;
}
/* ------------------------------------------------------*/
table {
	border-spacing:0px;
}
TABLE.main {
	background-color: white;
	color: #7B060E;
	border: 1px solid #8F8E8E;
}
TD.main {
	background-color: transparent;
	color: #7B060E;
}
P.titololegenda {
	font-weight: bold;
	font-size: xx-small;
	color: #ffffff;
	font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
}
.input {
	background-color: #FFFFFF;
	font-family: Tahoma, Verdana, Arial, Helvetica,sans-serif;
	font-size: 10pt;
	color: #7B060E;
	text-align: left;
	border: 1px solid #399ab5;
}
.btnSelezionato {
	font-size: x-small;
	width: 100px;
	color: blue;
	FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif;
}
.btnNormale {
	font-size: small;
	width: 100px;
	FONT-FAMILY: Century Gothic ,Verdana, Geneva, Arial, Helvetica, sans-serif;
}
.btnNormale1 {
	font-size: small;
	width: 130px;
	FONT-FAMILY: Century Gothic,Verdana, Geneva, Arial, Helvetica, sans-serif;
}
.btnNormale2 {
	font-size: small;
	width: 200px;
	FONT-FAMILY: Century Gothic,Verdana, Geneva, Arial, Helvetica, sans-serif;
}
.btnNormale3 {
	font-size: small;
	width: 300px;
	FONT-FAMILY: Century Gothic,Verdana, Geneva, Arial, Helvetica, sans-serif
}
.btnHelp {
	font-size: small;
	color: black;
	width: 130px;
	FONT-FAMILY: Century Gothic, Arial, Helvetica, sans-serif
}
.btnRidisegna {
	color: red;
	width: 130px;
	FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif
}

.btnMappa {
    padding: 6px 10px;
    background: #284661;
    border: 0 none;
    cursor: pointer;
    color: white;
	width:200px;
	margin: 2px;
    height: 25px;
}

DIV.Logo {
	position: relative;
}

div#navigatore {
	position: relative;
	display: block;
	border: 0;
	padding: 0;
	margin: 0;
	width: auto;
	height: auto;
	overflow:hidden;
}

table.navigatore {
	margin: 0px;
	padding: 0px;
	border: 0px;
	background-color:#DFDFDF;
	line-height: 10px;
	border-collapse: collapse;
}

table.navigatore TD TR {
	background-color:#DFDFDF;
}

#mappa {
	overflow: hidden;
	border: 0px;
	margin: 0px;
	padding: 0px;
	background-color: transparent;
	position: relative;
	top: 0;
	left: 0;
    /*transform: translate(-20%, -25%);
    width: 100%;
    height: 100%;*/	
	z-index: 2;	
}

#raster {
	position:absolute; 
	top: 0px; 
	left: 0px; 
	z-index: 0;
}

#mapView {
	z-index:0; 
	padding:0px; 
	border:0px; 
	margin:0px; 
	overflow:hidden;"
	background-color: #ffffff;
}

#menugrafica1 {
	visibility: visible;
}
#copyright {
	visibility: hidden;
}
#hotspot {
	visibility: visible;
}
TD.gruppiIndice {
	text-align: left;
}
A.gruppiIndice {
	font-weight: normal;
	font-size: 1em;
	color: #284661;
	background-color: transparent;
	text-decoration: none;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}
A.gruppiIndice:hover {
	FONT-WEIGHT: normal;
	FONT-SIZE: 1em;
	COLOR: black;
	BACKGROUND-COLOR: transparent;
	TEXT-DECORATION: none;
	PADDING-RIGHT: 0px;
	PADDING-LEFT: 0px;
	PADDING-TOP: 0px;
	PADDING-BOTTOM: 0px;
}
TD.itemsIndice {
	cursor: pointer;
	text-align: left;
}
A.itemsIndice {
	font-weight: normal;
	font-size: 1em;
	color: #284661;
	background-color: transparent;
	text-align: left;
	text-decoration: none;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}
A.itemsIndice:hover {
	FONT-WEIGHT: normal;
	FONT-SIZE: 1em;
	COLOR: black;
	BACKGROUND-COLOR: transparent;
	TEXT-DECORATION: none;
	PADDING-RIGHT: 0px;
	PADDING-LEFT: 0px;
	PADDING-TOP: 0px;
	PADDING-BOTTOM: 0px;
}
A.checkContesti {
	margin: 0px;
	padding: 0px;
	border: none;
	text-decoration: none;
	background-color: transparent;
	vertical-align: middle;
}
A.checkContesti:hover {
	margin: 0px;
	padding: 0px;
	border: 1px solid;
	color: #ff0000;
	background-color: transparent;
	text-decoration: none;
	vertical-align: middle;
}
.btnDaticompleti {
	width: auto;
}
A.MostraDati {
	border-right: ButtonFace thin outset;
	border-top: ButtonFace thin outset;
	background-image: none;
	vertical-align: baseline;
	border-left: ButtonFace thin outset;
	width: 100px;
	cursor: pointer;
	color: #000000;
	border-bottom: ButtonFace thin outset;
	font-family: Arial, Verdana, Monospace;
	height: 24px;
	background-color: ButtonFace;
	text-align: center;
}
A.MostraDati:hover {
	border-right: ButtonFace thin inset;
	border-top: ButtonFace thin inset; 
	background-image: none; 
	font-family: Arial, Verdana, Monospace;
	border-left: ButtonFace thin inset;
	cursor: pointer;
	color: #000000;
	border-bottom: ButtonFace thin inset;
	background-color: ButtonFace;
	text-align: center;
}
P.testoform {
	margin-top: 0px;
	margin-bottom: 0px;
	font-size: small;
	color: #000000;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	text-align: center;
}
P.titoloformhome {
    background: #4f46e5 !important; color: #4f46e5 !important;
    text-align: left !important; font-size: 1.2rem !important; font-weight: 700 !important;
    padding: 20px 20px 5px 20px !important; margin: 0 !important;
    border-bottom: 2px solid #f1f5f9 !important;
}
P.titoloform {
	margin-top: 0px;
	margin-bottom: 0px;
	font-size: x-large;
	color: white;
	background:#4f46e5;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	text-align: center;
}
P.subtitoloform {
	margin-top: 0px;
	margin-bottom: 0px;
	font-size: medium;
	color: #000000;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	text-align: center;
}
P.titoloSezioniIndice {
	font-weight: bolder;
	font-size: medium;
	color: black;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	text-align: center;
}
P.subtitoloSezioniIndice {
	font-weight: bolder;
	font-size: xx-small;
	color: #704A01;
	font-family: Arial, Verdana, Sans-Serif;
	text-align: center;
}
#IndiceMaschere {
}
#IndiceQuery {
}
#IndiceDownload {
}
#dwnl_tree_div {
	height: 550px;
	overflow-y: scroll;
	max-height: 700px;
}


BODY.risultatidb {
	margin-top: 2px;
	color: #8F8E8E;
	/*background: url("../images/Sfondo.gif");*/
	background-repeat: repeat-x;
	background-position: top left;
	/*width: 1014px;*/
}
DIV.risultatidb {
	border-right: 2px inset;
	border-top: 2px inset;
	overflow: auto;
	border-left: 2px inset;
	border-bottom: 2px inset;
	min-height: 360px;
	background-color: #DFDFDF;
	text-align: left;
}
/*
TABLE.LegendaMain {
	border-right: thin inset;
	border-top: thin inset;
	border-left: thin inset;
	border-bottom: thin inset;
	background-color: #730913;
}

TABLE.LegendaContesto {
	font-weight: bold;
	font-size: small;
	color: white;
	font-family: 'Arial Narrow' , Arial, Verdana, Sans-Serif;
	background-color: #730913;
	text-align: center;
}
TABLE.LegendaContestoRaster {
	font-weight: bold;
	font-size: small;
	color: white;
	border-top: ridge;
	font-family: 'Arial Narrow' , Arial, Verdana, Sans-Serif;
	background-color: #730913;
}
TABLE.LegendaCategorie {
	border-right: #730913 1px solid;
	border-top: #730913 1px solid;
	border-left: #730913 1px solid;
	border-bottom: #730913 1px solid;
	background-color: #EDD6D7;
	color: #000000;
	font-size: x-small;
	font-family: 'Arial Narrow' , Verdana, Arial, Sans-Serif;
}
TD.LegendaCategorieItem {
	background-color: #EDD6D7;
	color: #000000;
	font-size: x-small;
	font-family: 'Arial Narrow' , Verdana, Arial, Sans-Serif;
}
*/
TABLE.ImpQuery {
	border-right: #000000 1px solid;
	border-top: #000000 1px solid;
	border-left: #000000 1px solid;
	border-bottom: #000000 1px solid;
	background-color: white;
}
THEAD.ImpQuery {
	background-color: #284661;
}
TH.ImpQuery {
	font-weight: bold;
	font-size: small;
	color: #ffffff;
	border-bottom: #000000 1px solid;
	font-family:  Verdana, 'Arial Narrow' , Arial, Sans-Serif;
}
SELECT.ImpQuery {
	font-size: small;
	font-family: Verdana, Sans-Serif;
}
TBODY.ImpQuery {
	background-color: white;
	font-size: small;
	color: #000000;
	font-family:  Verdana, Arial, Sans-Serif;
}
TABLE.RisQuery {
	border-right: #000000 1px solid;
	border-top: #000000 1px solid;
	border-left: #000000 1px solid;
	border-bottom: #000000 1px solid;
	background-color: white;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}
THEAD.RisQuery {
	background-color: #2A5AA2;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}
TH.RisQuery {
	font-weight: bold;
	font-size: small;
	color: white;
	border-bottom: #000000 1px solid;
	font-family:  'Arial Narrow' , Arial, Verdana, Sans-Serif;
}
TBODY.RisQueryPari {
	font-size: small;
	color: black;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	background-color: white;
}
TBODY.RisQueryDispari {
	background-color: #E4E6EA;
	color: black;
	font-size: small;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}
A.RisQuery {
	font-size: small;
	color: black;
	font-family:  'Arial Narrow' , Arial, Verdana, Sans-Serif;
}
A.RisQuery:hover {
	padding-right: 0px;
	padding-left: 0px;
	padding-bottom: 0px;
	padding-top: 0px;
	color: white;
	background-color: #284661;
}
#divRisultati {
	/* background-image: url(../images/texture.gif);*/
	background-color: white;
	margin-top: 0px;
	//margin-left: 5%;
	//margin-right: 5%;
}
#divMaschera {
	border: 1px solid #8F8E8E;
	border-radius: 6px;
	background-color: white;
	margin: 0 5%;
	border-collapse: separate;
	overflow: hidden;
}
.logoutContainer {
	min-height: 600px;
}
.logoutPanel {
	width: 480px;
	max-width: calc(100% - 40px);
	margin: 5em auto 0 auto;
	padding: 24px 28px;
	box-sizing: border-box;
	text-align: center;
	background-color: #ffffff;
	border: 1px solid #8F8E8E;
	border-radius: 6px;
	border-collapse: separate;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	color: #334155;
}
.logoutPanel p {
	margin: 0 0 20px 0;
	line-height: 1.5;
	font-size: 0.95rem;
}
.logoutPanel strong {
	color: #1e293b;
}
.logoutButton {
	min-width: 100px;
}
#divDownload {
	border-right: thin outset;
	border-top: thin outset;
	border-left: thin outset;
	border-bottom: thin outset;
	background-color: #EDD6D7;
	margin-top: 0px;
	margin-left: 5%;
	margin-right: 5%;
}
#btnAddElemet {
	padding:5px 15px; 
	background:#2A5AA2; 
	border:0 none;
	cursor:pointer;
	color: white;
}
#btnStampaRTF {
	padding:5px 15px; 
	background:#2A5AA2; 
	border:0 none;
	cursor:pointer;
	color: white;
}
#btnStampaPDF {
	padding:5px 15px; 
	background:#2A5AA2; 
	border:0 none;
	cursor:pointer;
	color: white;
}
#btnMappa {
	padding:5px 15px; 
	background:#2A5AA2; 
	border:0 none;
	cursor:pointer;
	color: white;
}
#deleteBtn1 {
	padding:5px 15px; 
	background:#2A5AA2; 
	border:0 none;
	cursor:pointer;
	color: white;
}

P.TitoloSuTexture {
	font-weight: bold;
	font-size: medium;
	color: black;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	text-align: center;
	background: #E4E6EA;
	margin-top: 0px;
}
P.SubTitoloSuTexture {
	margin-top: 5px;
	font-weight: bold;
	font-size: small;
	margin-bottom: 0px;
	color: white;
	font-family: Arial, Verdana, Monospace;
	text-align: center;
}
TABLE.TableInit {
    border-top-width: 0px;
    border-right-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
	margin-left: auto;
	margin-right: auto;
	font-size: small;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}
TABLE.Maschera {
	border: 1px solid #8F8E8E;
	border-radius: 6px;
	background-color: white;
	margin: 0 5%;
	width: 50%;
	border-collapse: separate;
	overflow: hidden;
}
THEAD.Maschera {
	background-color: #DFBD76;
}
TH.Maschera {
	font-weight: bold;
	font-size: small;
	color: white;
	border-bottom: #000000 1px solid;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}
TD.MascheraLabel {
	font-size: small;
	color: black;
	background-color: #E4E6EA;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	width: 20%;
	text-align: left;
}
TD.MascheraField {
	background-color: white;
	font-size: small;
	color: black;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	width: auto;
	text-align: left;
}
TABLE.MascheraQP {
	/* border-right: #7B060E 1px solid;
*/
	/* border-top: #7B060E 1px solid;
*/
	/* border-left: #7B060E 1px solid;
*/
	/* border-bottom: #7B060E 1px solid;
*/
	border: 1px solid  #8F8E8E;
	background-color: white;
	margin-left: 5%;
	margin-right: 5%;
}
TBODY.MascheraQP {
	background-color: white;
	font-size: small;
	color: #FDDFA1;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}
TD.MascheraQPLabel {
	font-size: small;
	color: black;
	background-color: #E4E6EA;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}
TD.MascheraQPField {
	background-color: white;
	font-size: small;
	color: #1F4888;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	width: auto;
}
#bodyStampa {
	font-size: 12pt;
	color: #000000;
	font-family: Arial, Verdana, Sans-Serif;
	background-color: white;
}
#divStampa_Titolo {
	font-weight: bold;
	font-size: 20pt;
	color: #000000;
	font-family: Arial, Verdana, Sans-Serif, Monospace;
	background-color: white;
	text-align: center;
}
#divStampa_Form {
	font-weight: bold;
	font-size: 12pt;
	color: #000000;
	font-family: Arial, Verdana, Sans-Serif, Monospace;
	background-color: white;
}
#divStampa_Grafica {
	text-align: center;
	font-weight: normal;
	font-size: 12pt;
	color: #000000;
	font-family: Arial, Verdana, Sans-Serif, Monospace;
	background-color: white;
}
TABLE.StampaReport {
	font-size: 12pt;
	color: #000000;
	font-family: Arial, Verdana, Sans-Serif;
	background-color: white;
}
THEAD.StampaReport {
	font-weight: bold;
	color: #000000;
	font-family: Arial, Verdana, Sans-Serif;
	background-color: gainsboro;
}
TBODY.StampaReportD {
	font-weight: normal;
	color: #000000;
	font-family: Arial, Verdana, Sans-Serif;
	background-color: white;
}
TBODY.StampaReportP {
	font-weight: normal;
	color: #000000;
	font-family: Arial, Verdana, Sans-Serif;
	background-color: lightcyan;
}
#zoomwinrect {
	position: absolute;
	top: 0;
	left: 0;
	height: 0px;
	width: 0px;
	z-index: 2;
	border: thin solid black;
	visibility: visible;
	background-color: transparent;
}
img.lgnSelAll {
	BACKGROUND-COLOR: transparent;
	border: 1px;
	width: 16px;
	height: 16px;
	PADDING: 0px;
}
img.lgnCasella {
	BACKGROUND-COLOR: transparent;
	BORDER-TOP-STYLE: none;
	BORDER-RIGHT-STYLE: none;
	BORDER-LEFT-STYLE: none;
	BORDER-BOTTOM-STYLE: none
}
input.submit {
	border-bottom: 1px solid #399ab5;
	border-left: 1px solid #399ab5;
	border-right: 1px solid #399ab5;
	border-top: 1px solid #399ab5;
	background-color: #dbe5f1;
	font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #7B060E;
}
input[type=submit] {
    padding:5px 15px; 
    background:#4f46e5; 
    border:1px solid white;
    cursor:pointer;
    color: white;
}
input[type=button] {
    padding:5px 15px; 
    background:#4f46e5; 
    border:1px solid white;
    cursor:pointer;
	color: white;
}
#Legenda {
	z-index:30;
	float: left;
	position: absolute;
	top: 0px;
	left: 0px;
	border: 1px solid black;
	background-color: #ffffff;
	display: block;
	padding: 0;
	margin: 0;
	min-width: 300px;
	min-height: 300px;
	overflow: hidden;
}

#LegendaContent {
 	border:0; 
 	margin:0; 
 	padding:0; 
 	position: relative;
 	top:20px; 
 	left:0px; 
	height: 300px;
 	overflow: auto;
}

 #LegendaTabs {
 	border:0; 
 	margin:0; 
 	padding:0; 
 	top:20px; 
 	height: 20px;
 	position: relative;
 	background: #ffffff;
 }

.LegendaContainer {
	border: 0;
	margin: 0;
	padding: 0;
	overflow: auto;
}

div.LegendaContesto {
    border: 1px solid  #e4e6ea;
    background-color: #4f46e5;
	padding: 0px;
	display: block;
	clear: both;
	height: 20px;
    white-space:nowrap; 
    word-spacing:-2px; 
    letter-spacing:0px;	
	border-radius: 5px;
	}
div.LegendaContesto:hover {
	background-color: #a5bddc;
	background-image: none;
}

div.LegendaContestoIcon {
	clear: left;
	float: left;
}	

div.LegendaContestoFolder {
	float: left;
}	

div.LegendaContestoCheck {
	float: left;
}	

input.LegendaContesto {
	margin: 0;
	padding: 0;
	}

div.LegendaContestoLabel {
	display: inline;
	cursor: pointer;
	padding-left: 0px;
	margin-left: 2px;
	width : 100% ;
}
	
span.LegendaContestoLabel {
	color: white;
	background-color: transparent;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	font-weight: bold;
	font-size: 12px;
	text-align: left;
}

div.LegendaContestoContainer {
	/*background-color: #EFEFEF;*/
	display: block;
	clear: both;
	float: none;
	padding: 1px 0px 1px 0px;
}

/* 
	defines per categorie 
*/
div.LegendaCategoria {
	clear: both;
	background-color: transparent;
	color: #000000;
	border: 0;
	margin: 0;
	padding: 0;
}
div.LegendaCategoria:hover { background-color: #a5bddc; }

.LegendaCategoriaSymbol  {
	float: left;
	margin: auto 0px auto 0px;
}

.LegendaCategoriaCheck  {
	float: left;
	padding-left: 10px;
}

.LegendaCategoriaSymbol input {
	margin: 0;
}

.LegendaCategoriaLabel {
	clear: right;
	color: black;
	background-color: transparent;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	font-weight: normal;
	font-size: 8pt;
    text-align: left;
    word-spacing:0px; 
    letter-spacing:0px;	
	line-height: 28px;
	padding-left: 2px;
	margin: 0px;
	overflow: hidden;
}

.LegendaCategoriaImage {
	border-radius: 5px 5px 5px 5px; 
	box-shadow: 0px 0px 20px 0px #939393;
}

.LegendaCategoriaCheckbox {
	vertical-align: text-top;
}
/* ================================================================ */

#marchio {
	
}

#divMascheraCaption{
	background-color: transparent;
	color: #ffffff;
	width: 100%;
	height: 40px;
	border-bottom-color: rgb(118 125 132 / 98%); 
	border-bottom-style: solid;
	border-bottom-width: 3px;
	border-bottom-left-radius: 5px;
}

#divTitleCaption {
	background-color: rgb(118 125 132 / 98%);
	box-shadow: 0px 0px 30px 0px #575757;
	border-top:    1px inset gray;
	border-bottom: 1px inset gray;	
	text-align: center;
	vertical-align: middle;
	width: 35%;
	height: 40px;
	float: left;
	-webkit-border-radius: 0px;
	-moz-border-radius: 0px;
	border-radius: 6px;		
}

#TitleCaption {
	color: #ffffff;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	text-align: left;
	font-size: medium;
}

#SubTitleCaption {
	color: #ffffff;
	text-align: left;
	font-size: small;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
}

#divTitleAction {
	float: right;
	width: 65%;
	background-color: transparent;  
	padding-top: 5px;
	text-align: left;
}

#TitleAction {
	color: #000000;
	font-size: larger;
	/*font-style: italic;*/
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	padding-left: 5px;
}

#divMenuEdita {
	text-align: right;
	/*float: right;*/
	margin-right: 6px;
	position: relative;
	top: 1px;
}

.btnMenuEdit {
	width: 80px;
	height: auto;
	font-family: Century Gothic;
}

#tabmenu {
  color: #000000;
  border: 0; 
  margin: 0;
  padding: 0;
  border-bottom:1px solid black;
  background-color: #EFEFEF;
}

#tabmenu li {
  display: inline;
  overflow: hidden;
  list-style-type: none;
  }

#tabmenu a {
  color: rgb(128,128,128);
  background: #f0f0f0;
  font-family: "Titillium Web",Helvetica,Arial,sans-serif;
  font-size: small;
  padding: 2px 10px 0px 10px;
  margin: 0;
  text-decoration: none; 
  white-space:nowrap; 
  /*border-radius: 10px 10px 0px 0px;*/
  border-top: 1px solid black;
  border-left: 1px solid black;;
  border-right: 1px solid black;;
  border-bottom:0px solid black;
  border-top-left-radius:0.5em;
  border-top-right-radius:0.5em;
/*  border-top-left-radius:0.5em;*/
/*-webkit-border-top-right-radius:0.0em; */ 
/*-webkit-border-top-left-radius:0.5em; */
}

#tabmenu a.active {
  background: #ffffff;
  border-bottom: 2px solid #ffffff; 
  color: #284661;
  }

#tabmenu a:hover {
  background: #a5bddc;
  color: #ffffff; 
}
#tabmenu a.active:hover {
  background: #a5bddc;
  color: #ffffff; 
}

.dlg_caption_mini {
	position: absolute;
	top:0px;
	left:0px;
	margin:0;
	padding:0;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	font-size: 9pt;
	font-weight: normal;
	color: #ffffff;
	background-color: #4f46e5;   
	text-align: left;
	text-indent: 0.5em;
    white-space: nowrap;
	overflow: hidden;	
}
#waitPanel {  display: none; z-index: 999; position: absolute; top: 0px; left: 0px; height: 100%; width: 100%; background-color: #000000; filter: alpha(opacity=40); -moz-opacity: 0.4; opacity: 0.4; text-align: center; }
#waitPanelText { display: none; z-index: 1000; position: absolute; top: 0px; left: 0px; border: 0px solid #0000ff; background-color: transparent; text-color: #000000; text-align: center; }       

#printWaitPanel {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	filter: alpha(opacity=8);
	opacity: 0.08;
	backdrop-filter: blur(2px);
	z-index: 9999;
}

#printWaitPanelText {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	padding: 18px 26px;
	background-color: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
	color: #2f3a45;
	font-family: "Segoe UI", Tahoma, Arial, sans-serif;
	font-size: 14px;
	font-weight: bold;
	white-space: nowrap;
	transform: translate(-50%, -50%);
	z-index: 10000;
}

#printWaitPanelText img {
	vertical-align: middle;
}

.dynDiv_closeDiv {
 position: absolute;
 top: 1px;
 right: 0px;
 width: 16px;
 height: 16px;
 background: #faa;
 font-size: 15px;
 padding: 0;
 margin: 0;
 cursor:pointer;
 background: url("../images/icon_close_na.gif");
}

.dynDiv_closeDiv:hover {
 background: url("../images/icon_close.gif");
}

/*
CSS per report tabellare
*/
P.Report {
	font-weight: bold;
	font-size: small;
	color: #000000;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	text-align: left;
}
TABLE.Report {
    border: #8F8E8E 1px solid;
	border-collapse: collapse;
	font-family: "Titillium Web",Helvetica,Arial,sans-serif;
	font-size: x-small;
	margin-left: auto;
	margin-right: auto;
	color: #000000;
}

TABLE.Report THEAD {
	background-color: #8F8E8E;
}
TABLE.Report TH {
	font-weight: bold;
	color: white;
}
TABLE.Report TR.ReportPari {
	background-color: #E4E6EA;
}
TABLE.Report TR.ReportDispari {
	background-color: white;
}
TABLE.Report td.row-id {
    text-align: right;
}
TABLE.Report A:hover {
	padding: 0;
	color: white;
	background-color: steelblue;
}

.innertooldiv {
 border: 0;
 padding: 10px;
 margin-left: auto;
 margin-right: auto;
 font-family: Verdana, Arial, Sans-Serif;
 font-size: 10pt;
 font-weight: bold;
 text-align: left;
 
}
.innertooldiv li {
 cursor: pointer;
 border: 1px solid transparent;
 height: 40px;
 vertical-align: top;
}
.innertooldiv li:hover {
 border: 1px solid red;
}
.innertooldiv a {
 color: #000000;
 text-decoration: none;
 text-indent: 0.5em;
}

#bottomPanel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 22vh; /* altezza iniziale */
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
    transition: height 0.3s ease; /* animazione */
	border-top-left-radius: 16px !important;
	border-top-right-radius: 16px !important;
}

#bottomPanelHeader {
    height: 28px;
    background: #f2f2f2;
    border-bottom: 1px solid #ccc;

    display: flex;
    align-items: center;        /* ? centratura verticale */
    justify-content: flex-end;  /* bottoni a destra */
    gap: 6px;                   /* spazio tra bottoni */
    padding-right: 6px;
	border-top-left-radius: 16px !important;
	border-top-right-radius: 16px !important;
}

/* Bottoni */
#bottomPanelHeader button {
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;        /* ? centra immagine verticalmente */
    justify-content: center;    /* ? centra immagine orizzontalmente */
}

/* Immagini */
#bottomPanelHeader button img {
    width: 15px;
    height: 15px;
    pointer-events: none;       /* evita click �sull�immagine� */
}

/* Hover (opzionale, consigliato) */
#bottomPanelHeader button:hover {
    background: rgba(0,0,0,0.08);
    border-radius: 3px;
}

#bottomPanelClose:hover {
    color: #000;
}

#bottomPanel.bottomPanelLocked {
    height: 100vh !important;
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    transition: none;
}

#bottomPanel.bottomPanelLocked #bottomPanelHeader {
    display: none;
}

#bottomPanel.bottomPanelLocked #bottomFrame {
    height: 100%;
}

#bottomFrame {
    width: 99%;
    height: calc(100% - 28px);
    border: none;
	padding-left: 10px;
}


















/*
AGGIUNTE BX
*/
.no-border{
	border:none !important;
}



/* ==========================================================================
   KARTO-WEB MODERN THEME - ULTIMATE (STYLED INPUTS)
   ========================================================================== */

/* --- 1. RESET GLOBALE --- */
html, body, body.main, body.grafica, body.risultatidb {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    font-family: 'Segoe UI', 'Inter', Roboto, sans-serif !important;
    font-size: 13px !important;
    color: #334155 !important;
    height: auto !important;
    overflow-y: visible !important;
}

#container, #divImposta, #divRisultati, 
table.main, table.MascheraQP, #graficaContainer, #dbcontainer {
    width: 100% !important; max-width: 100% !important;
    margin: 0 !important; padding: 0 !important;
    border: none !important; background: transparent !important;
    box-shadow: none !important; border-spacing: 0 !important;
    border-collapse: collapse !important; overflow: visible !important;
}

/* --- 2. HEADER / TOOLBAR --- */


li.TBCtrlScala, li.TBCtrlSearch { border: none !important; padding: 0 !important; margin: 0 10px !important; }

/* BARRA DI RICERCA (Google) */
#SearchBarVia {
    height: 24px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important;
    padding: 0 10px !important; font-size: 13px !important; background-color: #f8fafc !important;
    transition: all 0.2s !important;
}
#SearchBarVia:focus {
    background-color: #fff !important; border-color: #4f46e5 !important; 
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

#Scale {
    height: 24px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important;
    padding: 0 10px !important; font-size: 13px !important; background-color: #f8fafc !important;
    transition: all 0.2s !important;
}
#Scale:focus {
    background-color: #fff !important; border-color: #4f46e5 !important; 
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

/* --- 3. BREADCRUMBS --- */
div.sentiero {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-top: none !important; border-left: none !important; border-right: none !important;
    padding: 1px 20px !important; width: 100% !important; box-sizing: border-box !important;
    margin: 0 !important;
}
body.risultatidb div.sentiero { background-color: transparent !important; }
span.sentiero, a.sentiero { font-size: 0.75rem !important; color: #64748b !important; text-decoration: none !important; font-weight: 500 !important; }
a.sentiero:hover { color: #4f46e5 !important; text-decoration: underline !important; }

/* --- 4. LEGENDA (SIDEBAR) --- */
#Legenda {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 5px 0 25px -5px rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    padding: 0 !important;
}
#marchio.dlg_caption_mini,
#LegendaTabs,
#LegendaContent { position: relative !important; top: auto !important; left: auto !important; width: 100% !important; }

/* TABS */
#LegendaTabs {
    order: 1 !important;
    background-color: #ffffff !important; height: 48px !important;
    border-bottom: 1px solid #e2e8f0 !important; z-index: 10 !important;
}
#tabmenu {
    display: flex !important; height: 100% !important;
    align-items: flex-end !important; padding: 0 10px !important; gap: 5px !important;
    background: transparent !important; border: none !important;
}
#tabmenu a {
    border-radius: 6px 6px 0 0 !important; padding: 10px 15px !important;
    font-size: 12px !important; color: #64748b !important;
    background: transparent !important; border: none !important;
    margin-bottom: -1px !important; transition: all 0.2s !important;
}
#tabmenu a:hover { background-color: #f1f5f9 !important; color: #4f46e5 !important; }
#tabmenu a.active {
    background-color: #f8fafc !important;
    color: #4f46e5 !important; font-weight: 700 !important;
    border-bottom: 2px solid #4f46e5 !important;
}

/* TITOLO */
#marchio.dlg_caption_mini {
    order: 2 !important;
    background-color: #4f46e5 !important; color: white !important;
    height: 36px !important;
    display: flex !important; align-items: center !important; padding: 0 15px !important;
    font-size: 12px !important; text-transform: uppercase; font-weight: 700 !important;
    cursor: move !important; border-radius: 0 !important;
}

.dynDiv_closeDiv, .dynDiv_minmaxDiv {
    top: 10px !important; right: 10px !important;
    filter: brightness(0) invert(1) !important; opacity: 0.8 !important;
}

/* CONTENUTO */
#LegendaContent {
    background-color: #f8fafc !important;
    overflow-y: auto !important;
    padding: 10px !important; width: 100% !important; box-sizing: border-box !important;
}

/* --- ELEMENTI LEGENDA (ALLINEAMENTO & CARD) --- */
div.LegendaContesto {
    background-color: #EFEFEF !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    padding: 10px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
    display: flex !important; align-items: center !important;
    height: auto !important; cursor: pointer !important;
    width: 100% !important; box-sizing: border-box !important;
}
div.LegendaContesto:hover { border-color: #c7d2fe !important; background-color: #eef2ff !important; }

div.LegendaContestoIcon { display: flex !important; align-items: center !important; margin-right: 8px !important; height: 100% !important; }

div.LegendaCategoria {
    border: none !important;
    border-bottom: 1px dashed #e2e8f0 !important;
    padding: 6px 0 !important;
    display: flex; align-items: center !important;
    width: 100% !important; box-sizing: border-box !important;
    min-height: 32px !important;
}
div.LegendaCategoria:last-child { border-bottom: none !important; }

.LegendaCategoriaSymbol {
    display: flex !important; align-items: center !important; justify-content: center !important;
    height: 100% !important; padding-left: 5px !important;
}
.LegendaCategoriaSymbol input, .LegendaCategoriaSymbol img {
    margin: 0 6px 0 0 !important; vertical-align: middle !important; display: inline-block !important;
}

div.LegendaContestoLabel, span.LegendaContestoLabel, 
p.LegendaCategoriaLabel, .LegendaCategoriaLabel {
    font-weight: 400 !important; color: #1e293b !important;
    font-size: 11px !important; font-family: 'Segoe UI', sans-serif !important;
    white-space: normal !important; flex-grow: 1 !important;
    margin: 0 !important; padding: 0 !important; line-height: 1.2 !important; display: flex !important; align-items: center !important;
}

div.LegendaContestoLabel, span.LegendaContestoLabel{
    font-weight: 500 !important; color: #1e293b !important;
    font-size: 13px !important; font-family: 'Segoe UI', sans-serif !important;
    white-space: normal !important; flex-grow: 1 !important;
    margin: 0 !important; padding: 0 !important; line-height: 1.2 !important; display: flex !important; align-items: center !important;
}

/* =====================================================
   STYLING FORM CONTROLS (CHECKBOX & SELECT)
   ===================================================== */

/* 1. CHECKBOX MODERNE */
input[type="checkbox"] {
    accent-color: #4f46e5 !important; /* Colore Indaco */
    width: 12px !important; 
    height: 12px !important;
    margin: 0 8px 0 0 !important;
    cursor: pointer !important;
    outline: none !important;
    vertical-align: middle !important;
    /* Reset base per browser che supportano appearance */
    appearance: auto !important; 
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.1));
}

/* 2. SELECT NATIVE (es. Scala) */
select, select.ScaleCtrl {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 6px 30px 6px 12px !important; /* Spazio per la freccia custom */
    font-size: 13px !important;
    color: #334155 !important;
    height: 32px !important;
    cursor: pointer !important;
    outline: none !important;
    
    /* FRECCINA CUSTOM SVG */
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 14px !important;
    transition: all 0.2s ease !important;
}

select:hover, select.ScaleCtrl:hover {
    border-color: #4f46e5 !important;
    background-color: #fbfcfe !important;
}

select:focus {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

/* 3. PLUGIN "CHOSEN" (Menu Ricerca Avanzata) - OVERRIDE TOTALE */

/* Contenitore principale */
.chosen-container {
    width: 100% !important;
    font-size: 13px !important;
}

/* Casella singola (chiusa) */
.chosen-container-single .chosen-single {
    background: #ffffff !important; /* Rimuove gradienti vecchi */
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    height: 34px !important;
    line-height: 32px !important;
    color: #334155 !important;
    box-shadow: none !important;
    padding: 0 12px !important;
    display: flex !important; align-items: center !important;
}

/* Freccina Chosen */
.chosen-container-single .chosen-single div b {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") no-repeat center center !important;
    background-size: 14px !important;
    width: 20px !important;
}

/* Focus / Aperto */
.chosen-container-active .chosen-single {
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
}

/* Dropdown (Lista aperta) */
.chosen-container .chosen-drop {
    border-color: #4f46e5 !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15) !important;
    background: #fff !important;
    z-index: 999999 !important;
    margin-top: -2px !important;
}

/* Elementi della lista */
.chosen-container .chosen-results li {
    padding: 8px 12px !important;
    line-height: 1.4 !important;
    border-radius: 4px !important;
    margin: 2px !important;
}

/* Elemento Evidenziato (Hover) */
.chosen-container .chosen-results li.highlighted {
    background-color: #4f46e5 !important; /* Indaco pieno */
    background-image: none !important;
    color: #fff !important;
}

/* Casella di ricerca dentro il dropdown */
.chosen-container .chosen-search input[type="text"] {
    border: 1px solid #e2e8f0 !important;
    border-radius: 4px !important;
    padding: 6px !important;
    margin: 5px 0 !important;
    background: #f8fafc !important;
}

/* --- FINE STYLING FORM --- */



.dynDiv_resizeDiv_br { order: 4 !important; position: absolute !important; bottom: 0 !important; right: 0 !important; z-index: 20 !important; }

/* --- 5. MASCHERA DI RICERCA --- */
p.titoloform {
    background: transparent !important; color: #4f46e5 !important;
    text-align: left !important; font-size: 1.2rem !important; font-weight: 700 !important;
    padding: 20px 20px 5px 20px !important; margin: 0 !important;
    border-bottom: 2px solid #f1f5f9 !important;
}
p.TitoloSuTexture {
    background: #f1f5f9 !important; color: #64748b !important;
    font-size: 0.85rem !important; text-align: left !important;
    padding: 10px 15px !important; margin: 15px 20px !important;
    border-left: 4px solid #4f46e5 !important;
}

table.MascheraQP tr:hover, table.MascheraQP td:hover { background-color: transparent !important; cursor: default !important; }
td.MascheraQPLabel {
    background-color: transparent !important; color: #475569 !important;
    font-weight: 600 !important; padding: 12px 20px !important;
    border-bottom: 1px solid #f1f5f9 !important; width: 25% !important;
}
td.MascheraQPField { padding: 10px 20px !important; border-bottom: 1px solid #f1f5f9 !important; width: 75% !important; overflow: visible !important; }

/* --- 6. TABELLE --- */
table.RisQuery, table.Report {
    width: 100% !important; border-collapse: collapse !important;
    margin-top: 10px !important; border: none !important;
    background-color: #fff !important;
}
th.RisQuery, table.Report thead th {
    background-color: #f8fafc !important; color: #4f46e5 !important;
    padding: 12px 10px !important; font-size: 0.75rem !important;
    text-transform: uppercase !important; border-bottom: 2px solid #e2e8f0 !important;
    text-align: center !important;
}
table.RisQuery td, table.Report td {
    padding: 12px 10px !important; border-bottom: 1px solid #f1f5f9 !important;
    font-size: 0.9rem !important; text-align: center !important;
    vertical-align: middle !important; background-color: transparent !important;
    color: #334155 !important;
}
table.RisQuery td:hover, table.Report td:hover { background-color: transparent !important; }
a.RisQuery:hover, table.Report a:hover { text-decoration: underline !important; color: #4f46e5 !important; }
tbody.RisQueryDispari tr, table.Report tr.ReportDispari { background-color: #ffffff !important; }
tbody.RisQueryPari tr, table.Report tr.ReportPari { background-color: #fbfcfe !important; }

p.Report { margin: 10px 0 !important; color: #334155 !important; }
body.risultatidb > p.Report:first-of-type {
    background-color: #f1f5f9 !important; padding: 10px 15px !important;
    border-radius: 6px !important; border-left: 4px solid #4f46e5 !important;
    font-weight: 600 !important; color: #1e293b !important;
}

/* --- 7. TASTINI & INPUT --- */
input[type="submit"], input[type="button"], .btnMappa, .bottone {
    background-color: #4f46e5 !important; color: white !important;
    border: none !important; height: auto !important; line-height: 1.2 !important;
    padding: 8px 20px !important; border-radius: 6px !important;
    font-weight: 600 !important; cursor: pointer !important;
    transition: all 0.2s !important; display: inline-block !important;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2) !important;
}
input[type="submit"]:hover, .btnMappa:hover {
    background-color: #4338ca !important; transform: translateY(-1px) !important;
}
input[name="Gestionale"] {
    background-color: transparent !important; color: #4f46e5 !important;
    border: 1px solid #4f46e5 !important; padding: 5px 12px !important;
    font-size: 0.7rem !important; border-radius: 4px !important;
    font-weight: 700 !important; height: auto !important; box-shadow: none !important;
}
input[name="Gestionale"]:hover { background-color: #4f46e5 !important; color: white !important; }

/* Input Text Generici */
input[type="text"] {
    height: 32px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important;
    padding: 0 10px !important; font-size: 13px !important;
}

input[type="password"] {
    height: 32px !important; border: 1px solid #cbd5e1 !important; border-radius: 6px !important;
    padding: 0 10px !important; font-size: 13px !important;
}

/* --- 8. ACCESSORI --- */
#StatusBar {
    background-color: #4f46e5F0 !important; color: black !important;
	box-shadow: 0px 0px 30px 0px #575757 !important;
    height: 28px !important; line-height: 28px !important;
    border: none !important; font-size: 11px !important;
    padding: 0 10px !important; position: fixed !important; bottom: 0 !important; z-index: 500 !important;
}
#MessageInfo, #CoordinateInfo { color: white !important; font-family: sans-serif !important; }

#Panoramica, #div_zoom {
    border: 1px solid #4f46e5 !important; box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
    border-radius: 8px !important; background: #fff !important;
}


/* --- 9. MODAL SYSTEM --- */
#mapModal {
    display: none; position: fixed !important; z-index: 2147483647 !important;
    left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.85) !important; backdrop-filter: blur(4px);
}
.modal-content-wrapper {
    position: absolute !important; top: 50% !important; left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: #ffffff !important; border-radius: 12px !important;
    width: 95% !important; height: 90% !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
    overflow: hidden !important; display: flex !important; flex-direction: column !important;
}
.modal-header {
    padding: 15px 20px !important; background: #4f46e5 !important;
    color: white !important; display: flex !important;
    justify-content: space-between !important; align-items: center !important;
}
.close-modal { cursor: pointer !important; font-size: 28px !important; font-weight: bold !important; line-height: 1 !important;}
#mapIframe { flex-grow: 1 !important; width: 100% !important; height: 100% !important; border: none !important; }

/* Pulizia */
#divRisultati br, #divImposta br, .subtitoloform { display: none !important; }
div[id^="divPARTI"] { overflow-x: visible !important; margin-top: 10px !important; }
/* Forza il cursore a manina sui link e sulle immagini con onclick dentro le tabelle */
table.Report a, 
table.Report img[onclick] {
    cursor: pointer !important;
}
/* ============================================================
   FIX DI EMERGENZA: CHECKBOX E ICONE CLICCABILI
   ============================================================ */

/* 1. CHECKBOX: Forza posizione e cliccabilit� */
input[type="checkbox"] {
    /* Assicura che stia SOPRA a qualsiasi testo o contenitore */
    position: relative !important; 
    z-index: 100 !important; 
    
    /* Impedisce che Flexbox la schiacci a zero pixel */
    flex-shrink: 0 !important; 
    min-width: 12px !important;
    min-height: 12px !important;
    
    /* Forza la gestione del mouse */
    pointer-events: auto !important;
    cursor: pointer !important;
    
    /* Ripristina il motore di rendering nativo */
    appearance: auto !important;
    -webkit-appearance: auto !important;
}



/* 3. TESTI: Non devono sovrapporsi agli input a sinistra */
div.LegendaContestoLabel, 
p.LegendaCategoriaLabel, 
.LegendaCategoriaLabel {
    position: relative !important;
    z-index: 80 !important; /* Pi� basso di input e icone */
    pointer-events: auto !important;
    /* Un piccolo margine di sicurezza a sinistra */
    margin-left: 5px !important; 
}

/* 4. CONTENITORI: Non devono bloccare i click sui figli */
div.LegendaContestoIcon, 
div.LegendaCategoriaSymbol {
    pointer-events: none !important; /* Lascia passare i click attraverso il div contenitore... */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 101 !important; /* ...ma sta sopra graficamente */
}

/* ...riabilita i click sugli input dentro quei contenitori */
div.LegendaContestoIcon input, 
div.LegendaCategoriaSymbol input,
div.LegendaCategoriaSymbol img {
    pointer-events: auto !important;
}

/* ============================================================
   FIX VISIBILIT� SCHEDE (TAB SYSTEM FIX)
   ============================================================ */

/* 1. REGOLA D'ORO: Rispetta il JavaScript! 
   Se il JS imposta display: none, il CSS deve obbedire e nascondere l'elemento. */
#LegendaContent > div[style*="none"],
.LegendaContainer[style*="none"] {
    display: none !important;
}

/* 2. SOLO se l'elemento � attivo (non nascosto), lo mostriamo e lo stilizziamo */
#LegendaContent > div:not([style*="none"]),
.LegendaContainer:not([style*="none"]) {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    box-sizing: border-box !important;
    animation: fadeIn 0.2s ease-in-out; /* Piccolo effetto comparsa */
}

/* 3. Fix specifico per il pannello "Ricerca" e "Info" che potrebbero avere margini strani */
#RicercaDB, #AnalisiDB, #Tools {
    padding: 5px !important;
    overflow-y: auto !important;
}

/* 4. Animazione per cambio scheda fluido (Opzionale) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 5. Z-INDEX FIX: Assicura che i popup mobili (es. Misure/ExtraInfo) stiano sopra la Legenda */
#ExtraInfo, #div_zoom, #Panoramica {
    z-index: 10000 !important; /* Molto alto per stare sopra a tutto */
    background-color: white !important;
    border: 1px solid #4f46e5 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

/* ============================================================
   FIX VISIBILIT� DISEGNO (CANVAS, POLIGONI, ZOOM)
   ============================================================ */

/* 1. CONTENITORE MAPPA (Ancora Relativa) */
/* � fondamentale che questo abbia position:relative per fare da "recinto" 
   agli elementi absolute al suo interno */
#navigatore, #mapView {
    position: relative !important;
    z-index: 1 !important; /* Livello base */
    overflow: hidden !important; /* Niente scrollbar qui dentro */
}

/* 2. IMMAGINE MAPPA (Sfondo) */
#mappa {
    position: relative !important;
    z-index: 5 !important;
}

/* 3. CANVAS DI DISEGNO (Dove appaiono le linee/poligoni) */
#myCanvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 50 !important; /* Deve stare SOPRA l'immagine mappa (5) */
    pointer-events: none !important; /* Lascia passare i click alla mappa sotto */
}

/* 4. ELEMENTI VETTORIALI (Linee e Poligoni generati da JS) */
/* La libreria jsGraphics crea dei DIV per disegnare. Dobbiamo assicurarci che si vedano */
#myCanvas div {
    position: absolute !important;
    z-index: 51 !important;
    box-sizing: content-box !important; /* Fix per vecchie librerie grafiche */
    font-size: 1px !important; /* Trucco per linee sottili in vecchi browser */
}

/* 5. RETTANGOLO DI ZOOM (Zoom Box) */
/* Lo rendiamo moderno invece del vecchio rettangolo nero tratteggiato */
#zoomwinrect {
    position: absolute !important;
    z-index: 100 !important; /* Sopra a tutto il resto nella mappa */
    border: 2px dashed #4f46e5 !important; /* Tratteggio Indaco */
    background-color: rgba(79, 70, 229, 0.15) !important; /* Sfondo semitrasparente */
    display: none; /* Gestito da JS */
}

/* 6. HOTSPOTS (I mirini rossi/verdi) */
img[id^="hotspot"] {
    position: absolute !important;
    z-index: 60 !important; /* Sopra le linee, sotto lo zoom */
    pointer-events: none !important;
}

/* 7. COPYRIGHT E LOGHI MAPPA */
#copyright, .ol-attribution {
    z-index: 200 !important; /* Sempre visibili sopra la mappa */
    pointer-events: auto !important;
}
/* ============================================================
   BASEMAP PANEL
   ============================================================ */

#GisMasterWinVisualBasemap_panWindow {
    display: none;
    position: absolute;
    width: 316px;
    min-height: 372px;
    z-index: 991;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 5px 0 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#GisMasterWinVisualBasemap_panWindow .GisMasterWinVisualBasemap_header {
    position: relative;
    left: 14px;
    top: 0;
    width: auto;
    height: 24px;
    line-height: 24px;
    padding: 0 32px 0 11px;
    background-color: #4f46e5;
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #ffffff;
}

#GisMasterWinVisualBasemap_panWindow .GisMasterWinVisualBasemap_body {
    padding: 38px 12px 12px 12px;
}

#GisMasterWinVisualBasemap_panWindow .GisMasterWinVisualBasemap_intro {
    margin: 0 0 10px 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.GisMasterWinVisualBasemap_grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.GisMasterWinVisualBasemap_option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #EFEFEF;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.GisMasterWinVisualBasemap_option:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    transform: translateY(-1px);
}

.GisMasterWinVisualBasemap_option.is-active {
    background: #eef2ff;
    border-color: #818cf8;
    box-shadow: inset 0 0 0 1px #c7d2fe, 0 1px 2px rgba(0,0,0,0.03);
}

.GisMasterWinVisualBasemap_thumb {
    flex: 0 0 94px;
    height: 64px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}

.GisMasterWinVisualBasemap_option[data-basemap='none'] .GisMasterWinVisualBasemap_thumb {
    background:
        linear-gradient(135deg, transparent 0 46%, rgba(100,116,139,.55) 46% 50%, transparent 50% 100%),
        repeating-linear-gradient(0deg, rgba(148,163,184,.16) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(90deg, rgba(148,163,184,.16) 0 1px, transparent 1px 12px),
        #f8fafc;
}

.GisMasterWinVisualBasemap_option[data-basemap='osm'] .GisMasterWinVisualBasemap_thumb {
    background-image: url('../Images/Osm.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.GisMasterWinVisualBasemap_option[data-basemap='satellite'] .GisMasterWinVisualBasemap_thumb {
    background-image: url('../Images/Satellite.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.GisMasterWinVisualBasemap_option[data-basemap='WMS01'] .GisMasterWinVisualBasemap_thumb {
    background-image: url('../Images/Ortofoto1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.GisMasterWinVisualBasemap_option[data-basemap='WMS02'] .GisMasterWinVisualBasemap_thumb {
    background-image: url('../Images/Ortofoto2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat
}

.GisMasterWinVisualBasemap_text {
    flex: 1 1 auto;
    min-width: 0;
}

.GisMasterWinVisualBasemap_titleRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.GisMasterWinVisualBasemap_tag {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 999px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 10px;
    line-height: 14px;
}

.GisMasterWinVisualBasemap_title {
    font-weight: bold;
    color: #1e293b;
    font-size: 12px;
}

.GisMasterWinVisualBasemap_desc {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.3;
    color: #475569;
}
