/* BROADSHEET TEMPLATE CSS file modificato il 6/6/2018*/
img {border: none;}
body {
  background: #EFEFEF;
  text-align: center;
  font-family: verdana, arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #444444;
  margin-top: 0px;
  margin-bottom: 20px;
  margin-left: 0px;
  margin-right: 0px;
}
#stampa {
  background: #ffffff;
  text-align: left;
  font-family: tahoma, arial, sans-serif;
  font-size: 12px;
  line-height: 20px;
  color: #444444;
  border: 1px solid;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
  padding-top: 5px;
  padding-bottom:5px;
  padding-left: 10px;
  padding-right: 10px;
  }
#stampa table {font-size: 12px;}
table,td,th,tr
{
border:1px solid black;
border-collapse: collapse;
padding:5px;
}
.titolo_scheda
{
border: none;
padding:8px;
}
/*
th {
    background-color: orange;
    color: white;
}
*/
input[type="text"]:disabled {
     background: #ffffff;
 }
/* #consuntivazione {
  display: inline-block;
  background: #ffffff;
  text-align: left;
  font-family: tahoma, arial, sans-serif;
  font-size: 12px;
  line-height: 20px;
  color: #444444;
  border: 1px solid;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: 20px;
  margin-right: 20px;
  padding-top: 5px;
  padding-bottom:5px;
  padding-left: 10px;
  padding-right: 10px;
  }
  #prospetto > tr > td:first-child{width: 200px;}*/
/*#tabella_prospetto_consuntivazione
{
display: block;
width: 850px;
overflow: hidden;}*/
#tabella_prospetto_consuntivazione
{
position: relative;
  width: 870px;
  background-color: #ffffff;
  overflow: hidden;
  border-collapse: collapse;

}
/*thead*/
#tabella_prospetto_consuntivazione thead {
  position: relative;
  display: block; /*seperates the header from the body allowing it to be positioned*/
  width: 870px;
  overflow: visible;

}

#tabella_prospetto_consuntivazione thead th {
  background-color: orange;
  color: white;
  min-width: 120px;
  max-width: 120px;
  height: 80px;
  border: 1px solid #222;
  font-size: 12px;

}

#tabella_prospetto_consuntivazione thead th:nth-child(1)  {/*first cell in the header*/
  position: relative;
  display: block; /*seperates the first cell in the header from the header*/
  background-color: white;
  color: black;
  line-height: 80px;
  min-width: 200px;
  max-width: 200px;
  height: 80px;

}
#tabella_categorie thead th {
  background-color: orange;
  color: white;
  max-width: 120px;
  border: 1px solid #222;
  font-size: 16px;

}


/*tbody*/
#tabella_prospetto_consuntivazione tbody  {
  position: relative;
  display: block; /*seperates the tbody from the header*/
  width: 870px;
  height: 400px;
  overflow: scroll;

}

#tabella_prospetto_consuntivazione tbody td  {
  background-color: white;
  min-width: 120px;
  border: 1px solid #222;

}

#tabella_prospetto_consuntivazione tbody tr td:nth-child(1)  {  /*the first cell in each tr*/
  position: relative;
  display: block; /*seperates the first column from the tbody*/
  height: 40px;
  background-color: #99a;
  font-size: 12px;
  min-width: 200px;
  max-width: 200px;
  line-height: 12px;

}
#tabella_categorie tbody td  {
  background-color: white;
  min-width: 120px;
  border: 1px solid #222;

}
/*
.consuntivazione
{
font-size: 12px;
border:1px solid black;
border-collapse: collapse;
text-align: right;
line-height: 12px;
}
.intestazione
{
background-color: orange;
    color: white;
 border:1px solid black;
border-collapse: collapse;
}
.prima_colonna
{
min-width: 200px;
max-width:200px;
font-size: 12px;
border:1px solid black;
border-collapse: collapse;
}*/
  /* FORMS */
#form1 {margin: 5px;}
#form1 fieldset {border: 1px solid orange/*FCC00*/; width: 100px;}
#form1 legend {font-size: 14px; font-weight: bold; color: orange;}
#form1 ul li {list-style-type: none; margin: 10px 5px; }
#form1 input, textarea, select {border: 1px solid #C6CFE2;     background: #F7FBFE;     padding: 2px; }
#form1 label {font-size: 12px; padding: 2px;     width: 120px;     display: block;     float: left;     font-weight: bold; }
#form1 #submit {background-color: orange;  border: 2px solid FFCC00; float: right; color: #fff;  font-weight: bold; padding: 10px 10px; }
#form1 #form20_submit {background-color: orange;  border: 2px solid FFCC00; float: right; color: #fff;  font-weight: bold; padding: 10px 10px; }

#form2 {margin: 20px;}
#form2 fieldset {border: 1px solid orange/*FCC00*/;}
#form2 legend {font-size: 14px; font-weight: bold; color: orange;}
#form2 ul li {list-style-type: none; margin: 20px 10px; }
#form2 input, textarea, select {border: 1px solid #C6CFE2;     background: #F7FBFE;     padding: 2px;}
#form2 input[type="text"]:disabled{background: #ffe4b5;}
#form2 input[type="text"]:enabled{background: #CCFF99;}
#form2 label {font-size: 12px; padding: 2px;     width: 350px;     display: block;     float: left;     font-weight: normal; }
#form2 #submit {background-color: orange;  border: 2px solid FFCC00; float: right; color: #fff;  font-weight: bold; padding: 2px 10px; }

/* LINKS */
a:link {color:#FF6600; text-decoration: none;}
a:visited {color:#FF6600; text-decoration: none;}
a:hover,a:active {color:#FF6600; text-decoration: underline;}

#top  a:link {color:#FF6600; text-decoration: none; font-weight: bold; border-bottom:none;}
#top a:visited {color:#FF6600; text-decoration: none;font-weight: bold;}
#top a:hover, #top a:active {color:#FF6600; text-decoration: underline;font-weight: bold;}

#footer  a:link {color:#FFFFFF; text-decoration: none; font-weight: bold; border-bottom:none; padding-left:10px; padding-right: 10px;}
#footer  a:visited {color:#FFFFFF; text-decoration: none;font-weight: bold; padding-left:10px; padding-right: 10px;}
#footer  a:hover, #footer  a:active {color:#FBAF5D; text-decoration: none;font-weight: bold; padding-left:10px; padding-right: 10px;}

#bottom  a:link {color:#FF6600; text-decoration: none; font-weight: bold; border-bottom:none;}
#bottom a:visited {color:#FF6600; text-decoration: none;font-weight: bold;}
#bottom a:hover, #bottom a:active {color:#FF6600; text-decoration: underline; font-weight: bold;}

/* LISTS */

#content ul { padding-left: 0px; margin-left: 20px; color: #444444; line-height: 18px; margin-top: 5px;margin-bottom:5px;}
#content li { list-style-type: square;  padding:0px;}

/* TYPOGRAPHY */

p { margin: 0px; padding: 0px; margin-bottom: 12px; 
  orphans: 3; /* Minimo di righe da lasciare in fondo alla pagina */
  widows: 3;  /* Minimo di righe da portare nella pagina successiva */
  line-height: 1.5; /* Aiuta il calcolo dell'altezza */
} 

h1 { font-size: 22px; line-height: 25px;color: #003366; margin:0px; padding: 0px; margin-bottom: 5px; }
h2 { font-size: 20px; line-height: 20px;color: #003366; margin:0px; padding: 0px; margin-bottom: 5px; page-break-after: avoid;
    break-after: avoid;}
h3 { font-size: 17px; line-height: 19px;color: #003366; margin-top:10px; padding: 0px; margin-bottom: 5px; }
h4 { font-size: 14px; line-height: 17px;color: #003366; margin:0px; padding: 0px; margin-bottom: 5px; }
h5 { font-size: 12px; color: #003366; margin:0px; padding: 0px; margin-bottom: 5px; letter-spacing: 2px; }

#header h1 { font-size: 28px; line-height: 32px; letter-spacing: -1px; color: #FFFFFF; margin:0px; padding: 0px;  padding-top: 25px;margin-bottom: 5px; padding-left:35px;}
#header h2 { font-size: 14px; line-height: 16px; letter-spacing: 1px; color: #DDDDDD; margin:0px; padding: 0px;  padding-top: 0px;margin-bottom: 5px; padding-left:35px;}

/* CONTAINERS */

#wrapper {
  width:100%;
  margin: 0 auto;
  /*background:  url('../img/content.jpg') top left repeat-y;*/
background-color: #FFFFFF;
  padding: 0px;
}

#top {
  width: 100%;
  height: 40px;
  /*background:  url('../img/top_nuovo.jpg') top left no-repeat;*/
  background-color: #070570;
  padding: 0px;
}

#top p {
  text-align:left;
  padding-left: 35px;
  padding-top: 9px;
  padding-bottom:0px;
  line-height: 12px;
  font-size:12px
}

#header {
  width: 100%;
  height: 120px;
  /*background:  #004A80 url('../img/header2_nuovo_logo.jpg') top left no-repeat;*/
  background-color: #070570;
  text-align:left;
}

#menu {
  width: 100%;
  height: 30px;
  margin: 0 auto;
  clear:both;
}



#content {
  padding: 0px; margin: 0px;
  border: 0px dashed #cccccc;
  padding-top: 30px;
  padding-bottom: 15px;
  clear:both;
  text-align: left;
  padding-left: 30px;
}

#middle
{
	text-align: left;
	}
	

#content #inside {
  width: 100%;
  text-align: left;
}

#content #inside #left {
  margin-left: 5px;
  float: left;
  width: 25%;
}

#content #inside #middle {
  margin-left: 15px;
  margin-right: 15px;
  float:left;
  width: 70%;
  text-align: left;
}

#content #inside #singlepage {
  margin-left: 15px;
  float:left;;
  width: 870px;
}

#content #inside #right {
  margin-left: 15px;
  float:right;
  width: 30%;
}

#footer {
  width: 100%;
  height: 80px;
  /*background: #004A80 url('../img/footer.jpg') bottom left no-repeat;*/
  background-color: #070570;
}

#footer p {
  text-align:center;
  padding-left: 20px;
  padding-top: 17px;
  padding-bottom:0px;
  line-height: 16px;
  font-size:12px;
  color: #DDDDDD;
}

#bottom {
  width:100%;
  margin: 0 auto;
  padding: 0px;
  text-align:center;
  padding-left: 20px;
  padding-top: 0px;
  padding-bottom:0px;
  line-height: 16px;
  font-size:12px
}

#lista_con_immagini li {list-style-type: none !important;}

/* NAVIGATION


div#hormenu {     width: 100%;     float: left;      margin: 0;      padding: 0;     border-top: 1px solid black;     background-color: orange; }
div#hormenu ul {     margin: 0;     padding: 0;     list-style-type: none; }
div#hormenu li {float:left;     margin: 0;     padding: 0;     border-right: 1px solid black;     color:#FFFFFF; }
div#hormenu a {display: block; text-align:center;    padding: 5px;     color: #FFFFFF;     text-decoration: none; font-size: 14px; font-weight: bold;}   div#hormenu a:hover {background-color: #FCC347;     color: #111111;     text-decoration: none; }
div#hormenu li ul {     display: none}
div#hormenu li:hover ul {     display: block;     position: absolute;     z-index:1;     width:200px;     padding: 0;     margin: 0 0 0 -1px;     border:1px solid black;     background: white; }
div#hormenu li li   { border:none; width:200px; color: black;}  div#hormenu li li a { padding:2px 2px 2px 10px; color: black; font-size: 10px; }
*/
/* prova */
#navigatore {     width: 100%;     float: left;      margin: 0;      padding: 0;     border-top: 1px solid black; border-left: 1px solid black;  border-bottom: 1px solid black; background-color: orange; font-weight: bold; }
#navigatore ul {
  list-style: none;
  padding: 0;
  margin: 0;
  }

#navigatore ul li {
float:left;
  display: block;
  position: relative;
  background: orange;
  color:#FFFFFF;

}
#navigatore li ul { display: none; }

#navigatore ul li a {
  display: block;
  padding: 5px;
  text-decoration: none;
  white-space: nowrap;
  color:white;
  font-size: 14px;
  border-right: 1px solid black;
  }

#navigatore ul li a:hover { background-color: #FCC347;
     color: #111111; font-size: 14px;}
#navigatore li:hover > ul {
  display: block;
  position: absolute;
  border-top: 1px solid #111111;
  border-left: 1px solid #111111;
  border-bottom: 1px solid #111111;
}

#navigatore li:hover li { float: none; }

#navigatore li:hover a { background: white; color: #111111; font-weight: normal; font-size: 14px;}

#navigatore li:hover li a:hover { background: #FCC347; }

#navigatore .main-navigation li ul li { border-top: 1px; }
#navigatore ul ul ul {
  left: 100%;
  top: 0;
}
#navigatore ul:before,
#navigatore ul:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

#navigatore ul:after { clear: both; }
/* fine prova */
/*
#navcontainer ul
{
  padding-left: 0;
  margin-left: 0;
  margin-right: 0px;
  margin-top: 0px;
  margin-bottom: 0px;
  background-color: #F3A90A;
  color: #FFFFFF;
  float: left;
  width: 100%;
  font-family: verdana, arial, helvetica, sans-serif;
  font-size: 14px; font-weight: bold;
}

#navcontainer ul li { display: inline; }
#navcontainer li ul { display: none; }
#navcontainer li:hover ul {     display: block;     position: absolute;     z-index:1;     width:80px;     padding: 0;     margin: 0 0 0 -1px;     border:1px solid black;     background: white; }


#navcontainer ul li a
{
  padding:10px 15px;
  background-color: #F3A90A;
  color: #FFFFFF;
  text-decoration: none;
  float: left;
  border-right: 1px solid #fff;
font-size: 14px;
}

#navcontainer ul li a:hover
{
  background-color: #FCC347;
  color: #111111;
}
*/
/* IMAGE PLACEMENT */

.float_left {
  float:left;
  border: 1px solid black;
  margin-right: 20px;
  margin-bottom: 5px;
  margin-top: 5px;
  margin-left: 10px;
  padding-top: 30px;
}

.float_right {
  float:right;
  border: 1px solid;
  margin-left: 10px;
  margin-bottom: 5px;
  margin-top: 5px;
  margin-right: 10px;
}

/* OTHER */

.box_300x300 {
  border:1px solid #DDDDDD;
  background-color: #f9f9f9;
  width: 300px;
  height: 300px;
  margin-bottom: 10px;
}

.box_180x60 {
  border:1px solid #E6E6E6;
  background-color: #f9f9f9;
  width: 180px;
  height: 120px;
  margin-bottom: 10px;
}

.spacer {
  clear:both;
}
/* messaggi */
.info, .success, .warning, .error, .validation {border: 1px solid;  margin: 20px 0px;    padding:15px 10px 15px 50px;    background-repeat: no-repeat;    background-position: 10px center; font-size: 12px; font-family: verdana, arial, sans-serif;}
.info {color: #00529B;    background-color: #BDE5F8;    background-image: url('../img/info.png');}
.success {    color: #4F8A10;    background-color: #DFF2BF;    background-image:url('../img/success.png');}
.warning {    color: #9F6000;    background-color: #FEEFB3;    background-image: url('../img/warning.png');}
.error {    color: #D8000C;    background-color: #FFBABA;    background-image: url('../img/error.png');}
.info1{border: 1px solid;  padding:5px 5px 5px 5px;font-size: 12px; font-family: verdana, arial, sans-serif; color: #00529B;    background-color: #BDE5F8;}
/*classi per tabelle*/
.elenco td{font-size: 10px;}
.esportazione th{font-size: 8px; color:#FFFFFF; border: none; background-color: #FFFFFF;}
.esportazione tr{font-size: 8px; color:#FFFFFF; border: none;}
.esportazione td{font-size: 8px; color:#FFFFFF; border: none;}
.esportazione table{border: none;}
.esportazione tbody{border: none;}
.esportazione thead{border: 0;}
.risultati {border-style: hidden;}
/*capolettere*/
.capolettera1libri {
  float: left;
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
  padding: 20px;
  margin-top: 5px;
  margin-right: 5px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-family: Georgia, serif;
  background-color: #FFFF99;
}
.capolettera2libri {
  float: left;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  padding: 5px;
  margin-right: 5px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-family: Georgia, serif;
  background-color: #FFFF99;
}
.capolettera1autori {
  float: left;
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
  padding: 20px;
  margin-top: 5px;
  margin-right: 5px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-family: Georgia, serif;
  background-color: #CCCCFF;
}
.capolettera2autori {
  float: left;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  padding: 5px;
  margin-right: 5px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-family: Georgia, serif;
  background-color: #CCCCFF;
}
.capolettera1editrici {
  float: left;
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
  padding: 20px;
  margin-top: 5px;
  margin-right: 5px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-family: Georgia, serif;
  background-color: #FF33FF;
}
.capolettera2editrici {
  float: left;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  padding: 5px;
  margin-right: 5px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-family: Georgia, serif;
  background-color: #FF33FF;
}
.capolettera1correnti {
  float: left;
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
  padding: 20px;
  margin-top: 5px;
  margin-right: 5px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-family: Georgia, serif;
  background-color: #FFCC00;
}
.capolettera2correnti {
  float: left;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  padding: 5px;
  margin-right: 5px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-family: Georgia, serif;
  background-color: #FFCC00;
}
.capolettera1premi {
  float: left;
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
  padding: 20px;
  margin-top: 5px;
  margin-right: 5px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-family: Georgia, serif;
  background-color: #CCFF00;
}
.capolettera2premi {
  float: left;
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  padding: 5px;
  margin-right: 5px;
  border: 1px solid #000000;
  border-radius: 4px;
  font-family: Georgia, serif;
  background-color: #CCFF00;
}
/* Stili validi SOLO per la stampa e il salvataggio in PDF */
@media print {
    /* 1. Nascondi gli elementi che non servono su carta */
    .no-print, 
    #navigatore, 
    #footer, 
	#left,
	#bottom,
    .sidebar, 
    .buttons {
        display: none !important;
    }

    /* 2. Ottimizza il corpo della pagina */
    body {
        background: white !important;
        color: black !important;
        font-size: 12pt;
        line-height: 1.5;
        margin: 0;
        padding: 0;
    }

    /* 3. Espandi l'area di contenuto a tutta pagina */
     #middle
    {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    /* 4. Gestione delle interruzioni di pagina (opzionale) */
    h1, h2, h3 {
        page-break-after: avoid; /* Evita che i titoli rimangano isolati a fondo pagina */
    }
    
    .page-break {
        page-break-before: always; /* Forza l'inizio di una nuova pagina su elementi specifici */
    }
}