#header {
  /*background: #DDDDDD;*/
  background: url('/img/banner.jpg');
  border-bottom: 1px solid #AAA;
  padding-top: 5px;
  padding-left: 15px;
}
#header h1 {
  margin: 0;
}

#footer {
  clear: both;
  background: #DADDDD;
  padding-top: 20px;
	height: 30px;
	vertical-align: bottom;
	text-align: center;
	border-top: 1px solid #666;
}

#tools {
  /*background: #DDDDDD;
  background: url('/img/banner.jpg');
	border-bottom: 1px solid #AAA;*/
  margin-top: -10px;
  text-align: right;
  padding-right: 300px;
}
#tools button{
	color: #000;
	background: #fff;
	border: 1px solid #000;
}
#menu {
  border-right: 1px solid #CCCCCC;
	margin: 0px;
	padding: 0px;
/*	background: #DDDDDD;*/
}
#menu ul {
  /*border: 1px solid blue;*/
	margin: 2px;
	padding: 0px;
	list-style: none;
}
#menu li {
  /*border: 1px solid green;*/
	margin: 2px;
	margin-left: 10px;
	padding: 2px;
	text-decoration: none;
}
#menu li:hover {
}
#menu li ul {
	border-left: 1px dashed #BBBBBB;
}
#menu a {
	width: 100%;
	text-decoration: none;
	color: #000;
}
#menu li {
  padding: 4px;
  margin: 4px;
  border-bottom: 1px dotted;
  text-decoration: none;
  background: #ddddaa;
}
#menu li:hover {
  text-decoration: none;
	color: #000000;
  background: #F8F6E8;
}

.m_spec {
  border-top: 3px solid #BBB;
  border-bottom: 3px solid #BBB;
  color: #800;
}

#contents #icontitle table  {
  margin: 0px;
  background: transparent;
	border-collapse: collapse;
	border: 0px;
}
#contents #icontitle td {
  background: transparent;
  padding: 3px;
  border: 0px;
}
#contents #icontitle tr:hover {
  background: transparent;
}

#contents .bianca {
  margin: 0px;
  background: transparent;
	border-collapse: collapse;
	border: 0px;
}

#contents #tabellabianca table  {
  margin: 0px;
  background: transparent;
	border-collapse: collapse;
	border: 0px;
}
#contents #tabellabianca td {
  background: transparent;
  padding: 3px;
  border: 0px;
}
#contents #tabellabianca tr:hover {
  background: transparent;
}

#contents table {
  margin: 5px;
  background: #EEEEEE;
	border-collapse: inherit;
	border-spacing: 0;
}

#contents tr:hover {
  background: #bababa;
}

#contents th {
  background: #DDDDAA;
	font-weight: bold;
  border-top: 1px solid #FFF;
  border-bottom: 1px solid #FFF;
  border-right: 1px solid #FFF;
	  /*border-bottom: 1px solid #FFFFFF;*/
  padding: 2px;
  padding-left: 6px;
  padding-right:6px;
}

/* schede paziente */

#contents td {
  padding: 3px;
  border-top: 1px solid #FFF;
  border-bottom: 1px solid #FFF;
}

#schedepaziente table {
  margin: 2px;
  background: #EEEEEE;
	border-collapse: inherit;
	border-spacing: 0;
  background: transparent;
  vertical-align: top;
}

#schedepaziente .border {
  border: 1px solid #AAF;
}

#schedepaziente tr {
  background: transparent;
}
#schedepaziente tr:hover {
  background: transparent;
}

#schedepaziente th {
  background: #CCF;
	font-weight: bold;
  border: 0px;
  border-bottom: 1px solid #AAF;
  padding: 2px;
  padding-left: 6px;
  padding-right:6px;
}

#schedepaziente td {
  vertical-align: top;
  padding: 1px;
  border: 0px;
}

/* tabella riassunto */

#riassunto {
  font-size: 0.9em;
  margin-top: 1px;
  margin-bottom: 1px;
  margin-left: 10px;
  margin-right: 10px;
}

#riassunto table {
  border: 1px dashed #66f;
  padding: 2px;
}

#riassunto th {
  margin: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 5px;
  padding-right: 5px;
  vertical-align: center;
}

#riassunto td {
  margin: 0px;
  padding: 0px;
  vertical-align: center;
}

#contents #riassunto th.schedatitolo {
  font-size: 1em;
  line-height: 100%;
  vertical-align: center;
  padding: 5px;
	color: #44C;
	border: 1px solid #777;
}

/* tabella della scheda */

#contents th.scheda {
  text-align: right;
	padding-right: 10px;
  background: #DDDDAA;
	font-weight: bold;
	border-top: 1px solid #FFF;
  border-bottom: 1px solid #FFF;
}

#contents label.obbligatorio1 {
  /*background: #77F;
  padding: 2px;*/
  border-bottom: 2px solid #00F;
}
#contents label.obbligatorio2 {
  /*background: #77F;
  padding: 2px;*/
  border-bottom: 2px solid #DA0;
}

#contents label.setbase {
  /*background: #77F;
  padding: 2px;*/
  color: #060;
}

#contents th.schedatitolo {
  font-size: 1.1em;
  background: #FFF;
	color: #44C;
	line-height: 25px;
	border: 1px solid #777;
}

#contents th.schedamsg {
  text-align: center;
  background: #F0F0FF;
	font-weight: bold;
	border: 0px;
	border-bottom: 1px dotted #aaa;
}

#contents #msg {
  color: #000;
}
#contents #err {
  color: #f00;
}
/* giusto perche' a volte uso nomi diversi */
#contents #error {
  color: #f00;
}
.error {
  color: #D00;
  /*text-decoration: underline;*/
}

#promemo {
  margin: 10px;
  padding: 10px;
  border: 1px solid #DDD;
  background: #EEF;
  color: #000;
}

#borderbottom {
  text-align: center;
	padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid #aaa;
}

.sottoscheda {
  border: 2px solid #AAA;
}

h2.schedatitolo {
  font-size: 1.6em;
  margin-top: 7px;
  margin-bottom: 3px;
}

.boldcentro {
  font-weight: bold;
  text-align: center;
}

.green {
  background: #8F8;
}

.red {
  background: #F88;
}

.underline {
  border-bottom: 1px dotted #BBBBCC;
}

#pulsanti_indice {
  position: absolute;
  top: 30px;
  left: -5px;
}
#indice {
  border-top: 1px solid #AAA;
  border-left: 1px solid #888;
  border-bottom: 1px solid #444;
  background: #ddd;
  margin: 0px;
  padding: 5px;
	padding-left: 35px;
	opacity: 0.8;
  width: 300px;
  /* height: 100px;*/
  z-index: 200;
  position: fixed;
  top: 5px;
  right: 0px;
  /*display: block;*/
  font-size: 0.8em;
}
#indice ul {
  padding: 0px;
  margin: 0px;
  list-style-type: circle;
}

#storia {
  /*border: 1px solid #888;
  background: #ddf;*/
  margin: 5px;
  padding: 5px;
  /*width: 300px;
  height: 100px;
  z-index: 200;
  position: fixed;
  top: 5px;
  right: 5px;*/
  font-size: 0.8em;
  display: block;
}


#numeroscheda {
  background: #E0EEEE;
  color: #000;
  font-weight: bold;
  font-size: 1.3em;
}
button {
  font-size: 1em;
}
textarea {
  font-size: 1em;
}
input {
  border: 1px solid #888888;
  font-size: 1em;
}
input.error {
  border: 1px solid red;
}
select.error {
  border: 1px solid red;
}
label.error {
  color: #F00;
  text-decoration: underline;
}

/* selettori per i disabilitati */

input[disabled], 
input[readonly], 
select[disabled], 
select[readonly], 
checkbox[disabled], 
checkbox[readonly], 
textarea[disabled], 
textarea[readonly]
{
  background-color: #dddddd;
  border: 1px dotted #666666;
  color: #222222;
}

/* campi specifici */

input.icd9cm {
  /*width: 60px;*/
}
div.icd9cm {
  border: 1px solid #888;
	background: #fff;
	margin: 0px;
	padding: 0px;
  /*width: 300px;*/
	height: 100px;
	z-index: 100;
	visibility: hidden;
	position: absolute;
	top: 0px;
	left: 0px;
	display: none;
	overflow: scroll;
}

div.searchbox {
  border: 1px solid #888;
	background: #fff;
	margin: 0px;
	padding: 0px;
  /*width: 300px;*/
	height: 100px;
	z-index: 100;
	visibility: hidden;
	position: absolute;
	top: 0px;
	left: 0px;
	display: none;
	overflow: scroll;
}

/* contenuti per il div searchbox usato da ajax */

#searchbox table {
  border: 1px solid #222222;
	margin: 0px;
	padding: 0px;
	background: #fff;
	width: 100%;
}
#searchbox tr:hover {
  background: #4444ff;
	color: #ffffff;
}

#searchbox td {
  margin: 0px;
	padding: 1px;
}

ul.searchbox {
  margin: 0px;
	padding: 1px;
}
li.searchbox {
}
li.searchbox:hover {
  background: #4444ff;
	color: #ffffff;
}
a.searchbox {
}
a.searchbox:hover {
  background: #FF8888;
}

/* per la stampa */
#print {
  width: 280mm;
  height: 190mm;
  /*height: 99%;*/
}

#intestazione {
  /*border: 1px solid #666;*/
  padding: 5px;
  margin: 5px;
  text-align: right;
}

#intestazione-left {
  float:left;
}

#intestazione.right {
  float:right;
}

#print table {
  margin: 5px;
  padding: 10px;
  border: 1px solid #666;
  background: #FFF;
	border-collapse: collapse;
	width: 99%;
	/*height: 99%;*/
	table-layout: fixed;
	font-weight: bold;
	font-size: 1.4em;
}

#print th {
  background: #FFF;
	font-weight: bold;
  padding-top: 3px;
  padding-bottom: 0px;
  padding-left: 6px;
  padding-right:6px;
}

#print td {
  background: #FFF;
  text-align: center;
  vertical-align: center;
  padding: 10px;;
  border: 1px solid #666;
  line-height: 200%;
}

#print #numeroscheda {
  background: #444;
  color: #FFF;
  font-weight: bold;
  font-size: 1.4em;
  border: 1px solid #000;
}

#print th.scheda {
  text-align: right;
	padding-right: 6px;
  padding-top: 3px;
  padding-bottom: 0px;
  padding-left: 6px;
  /*border-bottom: 1px solid #CCCCCC;*/
}
#print th.schedatitolo {
  font-size: 1.1em;
	color: #000;
	line-height: 25px;
	padding-top: 10px;
	border-bottom: 1px solid #000;
}
