.tablemain {
	text-align: center;
}

.tablemain table  {
	background: #fff;
	padding: 1px;
	width: 640px;
	text-align: left;
	margin-top: 10px;
	margin-bottom: 10px;
  	margin-left: auto;
	margin-right: auto;	
	border: 1px solid #006699;
	border-spacing: 1px;
}

.tablemain table th {
	background: #97b7d0; /*#9FC1DB;*/
	color: #fff;
	padding: 0 4px 0 4px;
	font-size: 11px;
	text-align: center;
	border-bottom: 1px solid #376384;
}

.tablemain table th a {
}

.tablemain table th a img {
}

.tablemain table th a:hover{
}

.tablemain table th .button a {
	font-weight: normal;
}

.tablemain table td {
	padding: 4px;
	font-size: 11px;
}

.tablemain table td a {
	color: #36C;
	text-decoration: none;
}

.tablemain table td a:hover {
	color: #009;
	text-decoration: underline;
}

.tablemain table table {
	border: none;
	margin:0;
	padding:0;
	background: none;
	width: 100%;
}

.tablemain table th.submit {
	padding: 6px;
}

.tablemain table tr {
	background: #F4F2F2;
}

.tablemain table iframe {
	border: 1px solid #006699;
}

.tablemain table span.oldval {
	font-size: 14px;
}

.tablemain table .button a {
	text-decoration: none;
}
.tablemain table .button a:hover {
	text-decoration: none;
	color: white;
}



/* -----------------------------------------------------------------------------
	#calendar - calendario classico
----------------------------------------------------------------------------- */
.tablemain#calendar table {
	width: 100%;
	margin-top: 6px;
}

.tablemain#calendar table tr.cal-week {
	height: 70px;
}

.tablemain#calendar table th.month {
	font-weight: bold;
	font-size: 20px;
	text-align: center;
	background: #C1DB9F;
	color: #fff;
	padding: 4px 6px 4px 6px;
	-moz-border-radius-topright: 8px;
	-moz-border-radius-topleft: 8px;
}

.tablemain#calendar table th.month .thismonthlink {
	display: inline;
}

.tablemain#calendar table th.month a {
	text-decoration: none;
	color: black;
}

.tablemain#calendar table th.month a:hover {
	color: white;
}

.tablemain#calendar table th.weekend {
	color: red;
}

.tablemain#calendar table td {
}

.tablemain#calendar table a {
}

.tablemain#calendar table td {
	-moz-border-radius: 9px;
	padding: 4px;
	width: 14%;
}

.tablemain#calendar table a.add {
	float: right;
	background: #fff;
	text-decoration: none;
	padding: 1px 4px 1px 4px;
	width: 10px;
	display: block;
	font-size: 12px;
	font-weight: bold;
	text-align: center;
	-moz-border-radius: 9px;
}

.tablemain#calendar table a.date {
	font-size: 22px;
	float: left;
	text-decoration: none;
	font-style: italic;
}

.tablemain#calendar table td ul {
	margin-top: 30px;
	margin-left: -2px;
	margin-bottom: 0;
	padding: 0;
}
.tablemain#calendar table td ul li {
	list-style: none;
	display: block;  
	margin-bottom: 2px;
}

.tablemain#calendar table td ul li.results {
	font-size: 14px;
	background: #FFDDAA;
	text-align: center;
	-moz-border-radius: 4px;
}

.tablemain#calendar table td ul li a {
	padding: 0 2px 0 2px;
	font-size: 10px;
	margin-right: 2px;
	line-height: 14px;
	-moz-border-radius: 4px;
}
.tablemain#calendar table td ul li a.enabled {
 	text-decoration: none;
}
.tablemain#calendar table td ul li a.disabled {
	text-decoration: line-through;
	color:red;
}

.tablemain#calendar table td ul li a.now {
 	text-decoration: blink;
 	color: blue;
}


.tablemain#calendar table td ul li a.togglebtn {
	
}

.tablemain#calendar table td ul li a.togglebtn:hover {
	text-decoration: none;
}

.tablemain#calendar table td ul li a:hover{
	background: #fff;
	color: #F60;
}


.tablemain#calendar table td.evidenced li a {
	background: #FFDDAA;
	color: #764700;
}
.tablemain#calendar table td.past li a {
	background: #E3F2FC;
	color: #305e81;
}
.tablemain#calendar table td.present li a {
	background: #FCDBEE;
	color: #8f3434;
}
.tablemain#calendar table td.future li a {
	background: #EEFCDB;
	color: #2a532a;
}


.tablemain#calendar table td.past {
	background: #aed4ef;
}
.tablemain#calendar table td.present {
	background: #fc6868 url(img/calendar-present-bkg.gif) no-repeat 24px 0;
}
.tablemain#calendar table td.future {
	background: #a3d360;
}
.tablemain#calendar table td.evidenced {
	background: #ffbd5d;
}

/*
.tablemain#calendar table td.past:hover {
	background: #faeccf;
}
.tablemain#calendar table td.present:hover {
	background: #faeccf;
}
.tablemain#calendar table td.future:hover {
	background: #faeccf;
}
.tablemain#calendar table td.evidenced:hover {
	background: #faeccf;
}
*/

.tablemain#calendar table td.evidenced a.add {
	color: #624c0a;
}
.tablemain#calendar table td.evidenced a.add:hover {
	background: #845000;
	color:#fff;
}
.tablemain#calendar table td.past a.add {
	color: #9FC1DB;
}
.tablemain#calendar table td.past a.add:hover {
	background: #9FC1DB;
	color:#fff;
}
.tablemain#calendar table td.present a.add {
	color: #a12828;
}
.tablemain#calendar table td.present a.add:hover {
	background: #9d222b;
	color:#fff;
}
.tablemain#calendar table td.future a.add {
	color: #5b733c;
}
.tablemain#calendar table td.future a.add:hover {
	background: #5b733c;
	color:#fff;
}

.tablemain#calendar table td.evidenced a.date {
	color: #6e4f12;
}
.tablemain#calendar table td.evidenced a.date:hover {
	color: #fff;
}
.tablemain#calendar table td.past a.date {
	color: #4b738a;
}
.tablemain#calendar table td.past a.date:hover {
	color: #fff;
}
.tablemain#calendar table td.present a.date {
	color: #8c1515;
}
.tablemain#calendar table td.present a.date:hover {
	color: #fff;
}
.tablemain#calendar table td.future a.date {
	color:  #384b1a;
}
.tablemain#calendar table td.future a.date:hover {
	color: #fff;
}








/* -----------------------------------------------------------------------------
	#caltab - calendario tabulare
----------------------------------------------------------------------------- */
.tablemain#caltab table {
	width: 100%;
	margin-top:0;
	border-top: none;
}

.tablemain#caltab table tr {
	background: #dbe2ea;
}

.tablemain#caltab table td {
	text-align: center;
}

.tablemain#caltab table th {
	text-align: center;
}

.tablemain#caltab table td a.notesadm {
	color: rgb(150,0,0);
}

.tablemain#caltab table td a.notesadm:hover {
	color: rgb(255,0,0);
}

.tablemain#caltab table td a.notes {
	color: rgb(150,100,0);
}

.tablemain#caltab table td a.notes:hover {
	color: rgb(155,155,0);
}

.tablemain#caltab table td a.past {
}

.tablemain#caltab table td a.past:hover {
}

.tablemain#caltab table td a.present {
	color: rgb(150,0,0);
}

.tablemain#caltab table td a.present:hover {
	color: rgb(255,0,0);
}

.tablemain#caltab table td a.future {
	color: rgb(0,100,0);
}

.tablemain#caltab table td a.future:hover {
	color: rgb(50,200,50);
}

.tablemain#caltab table img.ordericon {
	border: 0;
}

.tablemain#caltab table th.main {
	height: 28px;
}

.tablemain#caltab table th.second {

}

.tablemain#caltab table tr.cal-disabled {
	background: rgb(255,200,200);
}

.tablemain#caltab table tr.cal-disabled td {
	border-top: 1px solid red;
	border-bottom: 1px solid red;	
}

.tablemain#caltab table tr.cal-disabled-partial {
	background: rgb(255,230,180);
}

.tablemain#caltab table tr.cal-disabled-partial td {
	border-top: 1px solid #f3ba46;
	border-bottom: 1px solid #f3ba46;	
}

.tablemain#caltab table tr.cal-enabled {
}


.tablemain#caltab table tr:hover {
	background: #fae6bc url(img/caltab-tr-bkg.gif) repeat-x bottom;
}

.tablemain#caltab table td.details {
	width: 20px;
	text-align: left;
}

.tablemain#caltab table tr.notes td {
	border-bottom: 5px solid #eee;
	text-align: left;
	padding: 0;
}
.tablemain#caltab table tr.notes td.notes-did {
	background: #dbe2ea;
	text-align: center;
}

.tablemain#caltab table tr.notes {
	background: #F9F9F9;
}
.tablemain#caltab table tr.notes:hover {
	background: #F9F9F9;
}

.tablemain#caltab table a.buttonnotes:hover {
	cursor: pointer;
}

.tablemain#caltab table th.details {
	width: 40px;
	text-align:center;
}

.tablemain#caltab table td.option {
	width: 20px;
	text-align: center;
}

.tablemain#caltab table th.options {
	width: 40px;
	text-align: center;
}



/* -----------------------------------------------------------------------------
	#usertab
----------------------------------------------------------------------------- */
.tablemain#usertab table {
	width: 100%;
	margin-top: 0;
	border-top: none;
}

.tablemain#usertab table tr {
	background: #dbe2ea;
}

.tablemain#usertab table tr:hover {
	background: #fae6bc url(img/caltab-tr-bkg.gif) repeat-x bottom;
}

.tablemain#usertab table td {
	text-align: center;
	font-size: 10px;
}

.tablemain#usertab table td.admin {
	background: rgb(255,230,180);
}

.tablemain#usertab table td.userdisabled a {
	text-decoration: line-through;
	color: red;
}

.tablemain#usertab table td.lastlog-recent {
	color: green;
	font-weight: bold;
}

.tablemain#usertab table td.lastlog-never {
	color: red;
}

.tablemain#usertab table td.notes {
	width: 20px;
}
.tablemain#usertab table td.notes-adm {
	width: 20px;
	background: #ffb883;
}
.tablemain#usertab table tr.notes td {
	border-bottom: 5px solid #eee;
	text-align: left;
	padding:0;
}
.tablemain#usertab table tr.notes td.notes-did {
	background: #dbe2ea;
	text-align: center;
}

.tablemain#usertab table tr.notes {
	background: #F9F9F9;
}
.tablemain#usertab table tr.notes:hover {
	background: #F9F9F9;
}


.tablemain#usertab table tr.notes table.notes-adm {
	border: none;
	margin: 0;
}
.tablemain#usertab table tr.notes table.notes-adm tr {
	background: #F9F9F9;
}
.tablemain#usertab table tr.notes table.notes-adm td.notes-did {
	width: 56px;
}
.tablemain#usertab table tr.notes table.notes-adm td {
	border-bottom: 1px solid #eee;
}

.tablemain#usertab table a.buttonnotes:hover {
	cursor: pointer;
}







/* -----------------------------------------------------------------------------
	#userstats
----------------------------------------------------------------------------- */

.tablemain#userstats table {

}

.tablemain#userstats table td {
	padding:2px;
}

.tablemain#userstats table tr.grandtotal {
	font-weight: bold;
	background-color: rgb(250,250,220);
}


.tablemain#userstats table tr.grandtotal td {
	border-bottom: 1px solid #006699;
}

.tablemain#userstats table tr:hover {
	background: #fae6bc url(img/caltab-tr-bkg.gif) repeat-x bottom;
}




/* -----------------------------------------------------------------------------
	#usereditor
----------------------------------------------------------------------------- */

.tablemain#usereditor table {
	width: 500px;
}

.tablemain#usereditor table table.datipers {
	border: none;
	margin:0;
	padding:0;
	background: none;
	width: 100%;
}

.tablemain#usereditor table td { 
	text-align: left;
}

.tablemain#usereditor table td { 
	border-bottom: none;
}




/* -----------------------------------------------------------------------------
	#caldet - calendar details
----------------------------------------------------------------------------- */
.tablemain#caldet table {
	width: 350px;
}

.tablemain#caldet table th {
	width: 10%;
}

#caldet-container {

}

#caldet-container .tablemain#caldet {
	margin-top: 4px;
	border-top: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

#caldet-container .tablemain#caldet:hover {
	background-color: #faf4e6;
}

#caldet-container .tablemain#caldet table {

}

.tablemain#caldet table tr.cal-disabled td {
	background: rgb(255,200,200);
	border-top: 1px solid red;
	border-bottom: 1px solid red;	
}

.tablemain#caldet table tr.cal-disabled-partial td {
	background: rgb(255,230,180);
}

.tablemain#caldet table tr.cal-enabled td {
	/*background: rgb(0,0,0);*/
}

.tablemain#caldet table td {
	font-size: 10px;
}

.tablemain#caldet table td.service {
	font-size: 12px;
	font-weight: bold;
	text-align: center;
	border: 2px solid #fae7be;
}

.tablemain#caldet table th.options {
	height: 30px;
}

.tablemain#caldet table table.orari {
	border: none;
	margin: 0;
	padding: 0;
	background: none;
	width: 100%;
}

.tablemain#caldet table td.note {
	margin: 4px;
	padding: 4px;
}

.tablemain#caldet .caldet-user {
	display: none;
}


/* -----------------------------------------------------------------------------
	#search
----------------------------------------------------------------------------- */
.tablemain#search table {

}

.tablemain#search table th {
}

.tablemain#search table td {

}

.tablemain#recsearch table {
	font-size: 8px;
	width: 100%;
}

.tablemain#recsearch table th {
	padding: 1px;
	font-size: 10px;
	font-weight: normal;
}

.tablemain#recsearch table td {
  padding: 1px;
  text-align: center;
}


/* -----------------------------------------------------------------------------
	#userdetails
----------------------------------------------------------------------------- */
.caldet-user .tablemain#userdetails {
	display: inline;
}

.tablemain#userdetails table {
	width: 90%;
}

.tablemain#userdetails table th {
	width: 10%;
}

.tablemain#userdetails table.minimal {
	width: 200px;
}

.tablemain#userdetails table td.userdisabled {
	color: red;
	font-weight: bold;
	text-align: center;
	font-size: 14px;
}

.tablemain#userdetails table td.admin {
	background: rgb(255,230,180);
}

.tablemain#userdetails table td.modified,
.tablemain#userdetails table td.creation {
	text-align: center;
}


/* -----------------------------------------------------------------------------
	#caleditor
----------------------------------------------------------------------------- */
.tablemain#caleditor table {
	width: 550px;
}

.tablemain#caleditor table td.servizio {
	font-size: 16px;
	font-weight: bold;
	border: 2px solid #fae7be;
}

.tablemain#caleditor table td.turni {
	padding: 2px;
	width: 260px;
}

.tablemain#caleditor table td.turni table {
	width: 250px;
	margin: 0;
}





