/*
	blu 1			#16697A
	blu 2		    #489FB5
	blu 3			#82C0CC
	panna			#EDE7E3
	rosso			#d14e36
	
*/
.ui-mobile body {
	overflow: hidden;
}
@media screen and (orientation: landscape){
	.ui-mobile .ui-page {
		min-height: 100%;
	}
}
html {
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}
body, input {
	font-family: 'Red Hat Display', sans-serif;
	margin: 0;
}
div[data-role=page]{
	height: 90%;
}
div.content,
div.header{
	width:99%;
	min-width: 590px;
	max-width: 1200px;
	margin: auto;
	display: block;
}
@media only screen and (max-width: 1380px) {
	div.input{
		max-width:unset !important;
		padding:3px !important;
	}
}
div.header {
	height: 60px;
	background-image: url("../img/header.jpg");
	background-repeat: no-repeat;
	background-size: 100% auto;
}
div.header > div.tit{
	width:100%;
	padding:5px 0 5px 10px;
	font-weight: 100;
	color: #16697a;
}
div.header > div.sx,
div.header > div.dx{
	display:inline-block;
	float: left;
	display: flex;
	gap: 15px;
	justify-content: center;
	margin: 0 10px;
}
div.header > div.sx{
	float:left;
	font-size:1em;
	width:320px;
}
div.header > div.dx{
	float:right;
	width:190px;
}
div.header > div.sx > div,
div.header > div.dx > div{
	flex-grow: 2;
	text-align: center;
	cursor: pointer;
	width: 50%;
	background: #d14e36;
	border-radius: 10px 10px 0 0;
	height: 30px;
	padding-top: 6px;
	text-shadow: none;
	color: #ffffffc7;
}
div.header > div.sx > div.current,
div.header > div.dx > div{
	font-weight:bold;
	font-size:1.1em;
	color: #ffffff;
}
div.header > div.sx .material-symbols-outlined{
	margin-right: 6px;
	font-size: 20px;	
}
div.content {
	border: 1px solid #d14e36;
	height: 700px;
	-webkit-overflow-scrolling: touch;
	display: flex;
	justify-content: space-between;
	border-radius: 2px;
	margin-bottom: 15px;
}
div.content > div{
	padding: 0 15px;
}
p {
	margin: 0;
}
tr.b td,
td.b {
	font-weight:bold;
}
.sx {
	text-align: left !important;
}
.dx {
	text-align: right !important;
}
.cn {
	text-align: center !important;
}
div {
	display: inline-block;
}
.nascosto {
	display: none;
}
.invisibile {
	opacity: 0;
}
h2 .material-symbols-outlined{
	vertical-align: bottom;
	margin-right: 6px;
	font-size: 28px;
	color: #d14e36;
}
table {
	width: 100%;
	font-size: 14px;
	border-spacing: 0;
	border: 3px solid #489FB5;
	margin-bottom: 8px;
	border-spacing: 0;
	border-collapse: collapse;
}
table > tbody > tr > td:first-child,table tr > th:first-child:not(.br){
	text-align: left;
	padding-left: 6px;
	padding-right: 6px;
}
table > tbody > tr > td.cn,table tr > th.cn{
	text-align: inherit;
	border-left: inherit;
}
table > tbody > tr:nth-child(even){
	text-shadow: none;
}
th,td {
	padding: 2px;
	text-align: center;
	border-right: 1px solid #489FB5;
	/*border-bottom: 1px solid #489FB533;*/
	text-shadow: none;
	background: #ffffff;
}
th {
	background: #16697A;
	color:#ffffff;
	padding: 3px 6px;
}
tr.farm > th,
th.farm {
	color: #245562;
	background: #e0ecf0;
	text-align: left;
	font-weight: normal;
	border-right: unset;
	font-weight: bold;
}
#costi tr.farm:hover th{
	background: #d5e5eb;
}
span.nrm{
	font-weight: normal;
}
tr.farm{
	cursor:pointer
}
table .material-symbols-outlined{
	cursor:pointer;
	vertical-align: bottom;
	margin-right: 5px;
	font-size: 22px;
}
tr.tot td, tr.tot th{
	font-weight: bold;
	/* background: #e0ecf0;*/
}
tr.tot.parz td,
tr.tot th.nrm{
	font-weight: unset;
}
tr.bt0 td,
tr.bt0 th{
	border-top:unset !important;
}
tr.tot td{
	background: #e0ecf0;
}
tr.tot td > div.input{
	font-weight: bold;
}
th > div.input {
	font-weight:bold;
}
th > div.input.inattivo {
	color:#16697a;
	min-width: unset;
	margin: -3px 0;
}
td.errore{
	animation-name: err;
	animation-duration: 0.3s;
	background: #fab1b1;
}
@keyframes err {
	from {background:#ffffff;}
	to {background: #fab1b1;}
}
div.er{
	position: relative;
	top: 26px;
	left: -5px;
	float: right;
	z-index: 1;	
}
div.er > span{
	position: absolute;
	background: red;
	padding: 2px 3px;
	font-weight: bold;
	border-radius: 0 5px 5px 5px;
	color: #ffffff;
	font-size: 11px;
}
td.noErrore{
	animation-name: noErr;
	animation-duration: 0.3s;
	background: #ffffff;
}
@keyframes noErr {
	from {background:#fab1b1;}
	to {background: #ffffff;}
}
tr.dosaggio th,
tr.dosaggio td,
tr.tot th,
tr.tot td{
	border-top:2px solid #489FB5;
}
tr.dosaggio th{
	border-right:unset;
}
h2{
	color: #16697A;
	font-size: 1.2em;
	margin-block-start: 1em;
	margin-block-end: 5px;
	font-weight: 100;
	text-shadow: none;
}
span.pul{
	cursor: pointer;
	width: 170px;
	background: #d14e36;
    margin: 0 0 4px 0;
    padding: 7px 15px;
    display: inline-block;
    color: #ffffff;
    border-radius: 5px;
}
#coorte div.input {
	min-width: 70px;
}
div.header > div.sx > div:not(.current):hover,
div.header > div.dx > div:hover,
span.pul:hover{
	opacity:0.9;
}
#costi thead th > span{	
	opacity:0;
}
#costi thead th:nth-child(-n+2){	
	border-right:hidden;
}
#costi.ap thead th > span{	
	opacity:1;
}
#costi tbody.aperto .material-symbols-outlined.aperto,
#costi tbody.chiuso .material-symbols-outlined.chiuso,
#costi tbody.chiuso tr.det{
	display:none;
}
#ridistribuzione text {
	font-family: 'Red Hat Display', sans-serif;
	text-shadow: none;
}
#ridistribuzione text.tit {
	fill:#ffffff;
	font-weight:Bold;
}
#risultati div.content > div{
	padding: 0 15px;
	display:flex;
	justify-content: space-between;
	flex-direction:column;
}
#ridistribuzione text.edit {
	fill:black;
	font-size: 15px;
}
#ridistribuzione g path,
#ridistribuzione g polygon{
	fill: #ffffff;
	stroke: #91d8e5;
	stroke-width: 2px;
}
#freqUnivoca.edit #ridistribuzione text.edit {
	font-weight:bold;
}
#freqUnivoca.edit #ridistribuzione text.edit {
	fill:#ffffff;
}
#freqUnivoca.edit #ridistribuzione g path,
#freqUnivoca.edit #ridistribuzione g polygon{
	fill: #d14e36;
	stroke: #d14e36;
}
#freqUnivoca.edit #ridistribuzione g.inEditing path,
#freqUnivoca.edit #ridistribuzione g.inEditing polygon{
	fill: #a74230;
}
#freqUnivoca.edit g,
#freqUnivoca.edit g{
	cursor: pointer;
}
#freqUnivoca.edit #ridistribuzione g:hover path,
#freqUnivoca.edit #ridistribuzione g:hover polygon{
	fill: #e5664e;
}
#risultati h2{
	margin-top: 10px;
}
#risultati div.img{
	border: 1px solid #bbbbbb;
	flex-grow: 2;
	background: #ffffff;
	width: 400px;
	margin-bottom: 20px;
}
#risultati table{
	font-size:13px;
}
#pazOttimizzati th,#isoRisorse th{
	text-align:center;
	height:30px;
	font-size:14px;
}
#pazOttimizzati th span{
	color: #d14e36;
    font-size: 17px;
    line-height: 1px;
    position: relative;
    margin-left: 2px;
    margin-right: 2px;
}
#tabRisultati tbody[k=costi] td:not(.ne)::after {
	content: "€";
	margin-left: 3px;
}
#tabRisultati th {
	padding-top: 2px;
	padding-bottom: 2px;
}
#conseguenzeOttimizzazioneTot {
    text-align: center;
    text-shadow: none;
    margin: 5px 0;
    padding: 20px;
    border: 2px solid #d14e36;
    flex-grow: 2;
	position: relative;
	font-size: 105%;
}
#conseguenzeOttimizzazioneTot > div{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	width: 95%;
}
#conseguenzeOttimizzazioneTot > div > span{
	font-weight: bold;
	color: #d14e36;
}
#isoRisorse{
	height:122px;
}
#risultati.ottimizzato #isoRisorse{
	border: 2px solid #d14e36;
	margin-bottom: 30px;
	max-width:414px;
}
#risultati.ottimizzato #isoRisorse tr:first-child,
#risultati.ottimizzato .opt,
#risultati.ottimizzato #tabRisultati tbody[k=costi]{
	display:none;
}
#risultati:not(.ottimizzato) #tabRisultati .or{
	display:none;
}
#risultati.ottimizzato #tabRisultati th,
#risultati.ottimizzato #tabRisultati #tabRisultati th{
    padding-top: 7px;
    padding-bottom: 7px;
}
#risultati.ottimizzato table:not(#isoRisorse){
   font-size: 15px;
}
#fraseAlert{
	width:100%;
	font-weight:bold;
	margin: 0.5em 0;
	color: #d14e36;
}
#risultati.ottimizzato #pazOttimizzati th{
	height: 50px;
}
#omini {
	display: flex;
	flex-wrap: wrap;
	justify-content: left;
	align-items: stretch;
	height: 90px;
}
@keyframes omini {
  0%   {opacity:0;}
  100% {opacity:0.2}
}
#omini > span {
    height: 22px;
    width: 4%;
    background-repeat: no-repeat;
    background-size: cover;
	background-size: 100% auto;
	animation-name: omini;
	animation-duration: 0.1s;
	filter: grayscale(1);
	opacity:0.2;
    background-image: url(../img/omino.png);
}
@keyframes ominiOn {
  0%   {opacity:0.2;filter: grayscale(1);}
  100% {opacity:1;filter: grayscale(0);}
}
#omini > span.on {
	animation-name: ominiOn;
	animation-duration: 1s;
	filter: grayscale(0);
	opacity:1;
}

/*	COMUNI	*/

.switch{
	cursor: pointer;
	position: relative;
	display: inline-block;
	text-align: center;
	width:100%;
}
.switch > span.label{
	float: left;
	font-size: 14px;
	margin-top: 4px;
}
.switch > div{
	background-color: #e9e9e9;
	width: 60px;
	border-radius: 4px;
	box-shadow: inset 0 1px 3px rgb(0 0 0 / 20%);
	height: 26px;
	float:right;
}
.switch > div > span{
	display:inline-block;
	height: 20px;
	width: 20px;
	border-radius: 4px;
	margin:3px;
	background:#ffffff;
	-webkit-box-shadow: 0 1px 3px rgb(0 0 0 / 20%);
	-moz-box-shadow: 0 1px 3px rgba(0,0,0,.20);
	box-shadow: 0 1px 5px rgb(0 0 0 / 20%);
	animation-name: switchOFF;
	animation-duration: 0.1s;	
	margin-left: 0;
	margin-right: 55%;	
}
.switch > div:before{
	content: "No";
	display: inline-block;
	position: absolute;
	height: 25px;
	font-size: 0.8em;
	font-weight: 700;
	line-height: 2.2em;
	width: 40px;
	right: 0px;
	padding-left: 10px;
	padding-right: 10px;
	text-shadow: none;
	text-align: right;
}
.switch.on > div{
	background-color:#d14e36;
}
.switch.on > div > span{
	/*float:right;*/
	animation-name: switchON;
	animation-duration: 0.1s;
	margin-left: 0;
	margin-right: -55%;
}
.switch.on > div:before{
	content: "Sì";
	text-align: left;
	color: #fff;
}
@keyframes switchOFF {
	from {
		margin-left: 55%;
		margin-right: 0%;
	}
	to {
		margin-left: 0;
		margin-right: 55%;
	}
}
@keyframes switchON {
	from {
		margin-left: -55%;
		margin-right: 0%;
	}
	to {
		margin-left: 0;
		margin-right: -55%;
	}
}
.scelta  {
	width:100%;
}
.scelta > div {
	font-weight:bold;
	cursor: pointer;
	margin: 10px;
}
#isoRisorse.tot div.tot > span,
#isoRisorse.farm div.farm > span {
    background: #16697a;
}
.scelta > div:first-child {
	margin-right:15px;
}
.scelta > div > span{
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0ecf0;
    margin: 0 5px;
    display: inline-block;
    vertical-align: text-top;
    border: 2px solid #16697a;
}
.ui-controlgroup-vertical .ui-btn,
.ui-controlgroup-vertical .ui-btn:hover{
	border:unset;
	background:#ffffff;
}
.ui-controlgroup-vertical .ui-btn{
	padding: 4px 30px;
}
.ui-page-theme-a .ui-radio-on:after{
	border-color: #16697a;	
}