/* CALENDAR STYLESHEET - Copyright (C) 2007 Charles A Upsdell, All Rights Reserved; www.upsdell.com */


/* Screen font sizes */

div.calendar table.calendar tbody tr td, div.calendar table.calendar tbody tr td p
			{ font-size:0.9em; }
div.calendar button, div.calendar table.grid td, small
			{ font-size:0.8em; }


/* Printer font sizes */

@media print
{
div.calendar table.calendar td
			{ font-size:11pt; }
div.calendar table.grid td
			{ font-size:9pt; }
}


/* General styles */

ul.cal_legend li p	{ width:20em; height:32px; }

div.calendar	{ color:#000; background-color:#ccc; line-height:1; margin:0; padding:0.5ex; border-top:0.5ex solid #060; border-bottom:0.5ex solid #060; }
div.calendar h3	{ color:#000; margin-top:0; margin-bottom:0.67em; }
div.calendar h3 img { float:right; border:none; }

div.calendar table.grid { color:inherit; background-color:#fff; border-left:1px solid #999; border-top:1px solid #999; border-right:1px solid #003; border-bottom:1px solid #003; }
div.calendar table.grid tr th { color:#000; background-color:#ddd; font-weight:bold; text-align:left; }
div.calendar table.grid tr th { border-left:1px solid #fff; border-top:1px solid #fff; border-right:1px solid #99c; border-bottom:1px solid #99c; }
div.calendar table.grid tbody tr td { color:#000; vertical-align:top; border-left:1px solid #fff; border-top:1px solid #fff; border-right:1px solid #69c; border-bottom:1px solid #69c; }
div.calendar table.grid tbody tr.e td { background-color:#f7f7f7; }
div.calendar table.grid tbody tr.e td.daynumb { background-color:#fff; }

div.calendar table.grid { width:100%; clear:both; }
div.calendar div.grid table { color:inherit; background-color:#f1f1f9; border:1px outset #eef; margin-bottom:0.67em; }
div.calendar table.grid td.dayname { width:8em; }
div.calendar table.grid td.daynumb { width:2em; text-align:center; }
div.calendar table.grid td.none {  }
div.calendar table.calendar td.day p.none { color:#000; background-color:#fff !important; }
div.calendar table.calendar td.day { color:#000; background-color:#eee !important; }
div.calendar table.grid td.daynumb.game, div.calendar table.calendar td.game, div.calendar table.calendar td.day p.game, ul.cal_legend p.game
				{ color:#fff; background-color:#060 !important; font-weight:bold; }
div.calendar table.grid td.daynumb.game, div.calendar table.calendar td.game, ul.cal_legend p.game
				{ border-left:1px solid #090; border-top:1px solid #090; border-right:1px solid #030; border-bottom:1px solid #030; }
div.calendar table.calendar td.home { }
div.calendar table.calendar td.away { background-image:url('img2004/bak_away.png'); }
div.calendar table.calendar td.tournament { background-image:url('img2004/bak_tournament.png'); }
div.calendar table.calendar td.day p.game a { color:#0cf !important; }
div.calendar table.grid td.daynumb.event, div.calendar table.calendar td.event, div.calendar table.calendar td.day p.event, ul.cal_legend p.event
				{ color:#000; background-color:#fc6 !important; }
div.calendar table.grid td.daynumb.event, div.calendar table.calendar td.event, ul.cal_legend p.event
				{ border-left:1px solid #fc9; border-top:1px solid #fc9; border-right:1px solid #960; border-bottom:1px solid #960; }
div.calendar table.grid td.daynumb.holiday, div.calendar table.calendar td.holiday, div.calendar table.calendar td.holiday p, div.calendar table.calendar td.day p.holiday, ul.cal_legend p.holiday
				{ color:#fff; background-color:#f00 !important; font-weight:bold !important; }
div.calendar table.grid td.daynumb.holiday, div.calendar table.calendar td.holiday, ul.cal_legend p.holiday
				{ border-left:1px solid #f66; border-top:1px solid #f66; border-right:1px solid #600; border-bottom:1px solid #600; }
div.calendar table.grid td.daynumb.practice, div.calendar table.calendar td.practice, div.calendar table.calendar td.day p.practice, ul.cal_legend p.practice
				{ color:#fff; background-color:#090 !important; font-weight:bold; }
div.calendar table.grid td.daynumb.practice, div.calendar table.calendar td.practice, ul.cal_legend p.practice
				{ border-left:1px solid #0c0; border-top:1px solid #0c0; border-right:1px solid #060; border-bottom:1px solid #060; }
div.calendar table.grid td.scheduled.none { color:#999; background-color:#fff !important; }
div.calendar table.calendar td.game p, div.calendar table.calendar td.practice p { color:#fff; font-weight:normal !important; }
div.calendar table.calendar td.game p a, div.calendar table.calendar td.game p.game a, div.calendar table.calendar td.practice p a { color:#cff !important; }
div.calendar table.calendar td p.event a { color:#00f !important; }

div.calendar table.calendar th { width:13%; text-align:center; }
div.calendar table.calendar td.spacer { background-color:#f7f7f7; }
div.calendar table.calendar td.day { background-color:#fff; font-weight:bold; height:5em; }
div.calendar table.calendar td.day p { font-weight:normal; margin-bottom:4px; }
div.calendar table.calendar td.day p.none, div.calendar table.calendar td.day p.practice, div.calendar table.calendar td.day p.event
			{ border:1px inset #808080; padding:2px; }
div.calendar table.calendar td.day p.game
			{ border:1px inset #006600; padding:2px; }

table.calendar_games
			{ border-top:none !important; border-right:none !important; }
table.calendar_games tr.gap td
			{ background-color:#fff; line-height:0.33; font-size:1px; border-right:none; }
table.calendar_games th.game
			{ border-left:1px solid #ccc !important; }
table.calendar_games th.year, table.calendar_games th.month, table.calendar_games th.weekday, table.calendar_games th.day, table.calendar_games th.time
			{ border-right:none !important; }
table.calendar_games th.month, table.calendar_games th.weekday, table.calendar_games th.day, table.calendar_games th.time, table.calendar_games th.type
			{ border-left:none !important; }
table.calendar_games th.year, table.calendar_games td.year
			{ border-left:1px solid #ccc !important; }
table.calendar_games td.year, table.calendar_games td.month, table.calendar_games td.weekday, table.calendar_games td.day, table.calendar_games td.time
			{ border-right:none !important; }
table.calendar_games td.month, table.calendar_games td.weekday, table.calendar_games td.day, table.calendar_games td.time, table.calendar_games td.type
			{ border-left:none !important; }
table.calendar_games td.weekday, table.calendar_games td.weektime
			{ text-align:center; }
table.calendar_games td.day, table.calendar_games td.time, table.calendar_games td.type
			{ text-align:right; }
table.calendar_games tr td.typeT, table.calendar_games tr.e td.typeT, table.calendar_games tr.o td.typeX, table.calendar_games tr.e td.typeX, span.calendar_games_typeT, span.calendar_games_typeX
			{ color:#fff !important; background-color:#666 !important; }
span.calendar_games_typeT, span.calendar_games_typeX
			{ padding:0 0.33ex; }
table.calendar_games td.result_l
			{ color:#fff !important; font-weight:bold; background-color:#900 !important; background-image:url('img2007/bak_l.png'); background-repeat:repeat-x; background-position:center center; }
table.calendar_games td.result_t
			{ color:#960 !important; font-weight:bold; background-color:#c90 !important; background-image:url('img2007/bak_t.png'); background-repeat:repeat-x; background-position:center center; }
table.calendar_games td.result_w
			{ color:#fff !important; font-weight:bold; background-color:#090 !important; background-image:url('img2007/bak_w.png'); background-repeat:repeat-x; background-position:center center; }


/* Season record styles */

p.game_record { }
p.game_barchart { margin-left:1.5em; }
span.lose	{ color:#f00; background-color:transparent; }
span.remaining { color:#999; }
span.tie	{ color:#c90; background-color:transparent; }
span.win	{ color:#090; background-color:transparent; }
span.l i	{ font-style:normal; color:inherit; background-color:#c00; border-left:1px solid #f66; border-top:1px solid #f60; border-right:1px solid #600; border-bottom:1px solid #600;
			  background-image:url('img2004/bak_l.png'); background-repeat:repeat-x; background-position:center center; }
span.r i	{ font-style:normal; color:inherit; background-color:#ddd; border-left:1px solid #eee; border-top:1px solid #eee; border-right:1px solid #666; border-bottom:1px solid #666;
			  background-image:url('img2004/bak_r.png'); background-repeat:repeat-x; background-position:center center; }
span.t i	{ font-style:normal; color:inherit; background-color:#fc0; border-left:1px solid #fc9; border-top:1px solid #fc9; border-right:1px solid #960; border-bottom:1px solid #960;
			  background-image:url('img2004/bak_t.png'); background-repeat:repeat-x; background-position:center center; }
span.w i	{ font-style:normal; color:inherit; background-color:#0c0; border-left:1px solid #0f0; border-top:1px solid #0f0; border-right:1px solid #060; border-bottom:1px solid #060;
			  background-image:url('img2004/bak_w.png'); background-repeat:repeat-x; background-position:center center; }


/* Printer styles */

@media print
{
	div.calendar { page-break-before:always; page-break-inside:avoid; }

	div.calendar { border-top:none; border-bottom:none; }
	div.calendar table.calendar td, div.calendar table.calendar_games { border:1px solid black !important; } 
	div.calendar table.calendar td a, div.calendar table.calendar td p a { color:#000 !important; background-color:#fff !important; }
	div.calendar table.calendar td p { border:none !important; }
}
