/* CALENDAR STYLESHEET - Copyright (C) 2009-2010 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 */

div.calendar div.grid table tr td, div.grid table tr.o td { background-color:#eee; }
div.calendar div.grid table tr.e td { background-color:#ddd; }

div.calendar	{ color:#000; background-color:#fff; line-height:1; margin:0; padding:0.5ex; border:none; }
div.calendar h3	{ color:#666; margin-top:0; margin-bottom:0.67em; }
div.calendar h3 img { float:right; border:none; }
img.calbuttonL, img.calbuttonM, img.calbuttonR
	{ border-top:2px solid #000 !important; border-bottom:2px solid #000 !important; margin-bottom:1px; }
img.calbuttonL
	{ border-left:2px solid #000 !important; margin-bottom:1px; }
img.calbuttonR
	{ border-right:2px solid #000 !important; margin-right:1px; margin-bottom:1px; }

div.calendar table.grid { color:inherit; background-color:#fff; border:none; }
div.calendar table.grid tr th { color:#fff; background-color:#000; font-weight:bold; text-align:center; }
div.calendar table.grid tr th { border:1px solid #fff; }
div.calendar table.grid tbody tr td { color:#000; vertical-align:top; border:1px solid #fff; }
div.calendar table.grid tbody tr td.dayname, div.calendar table.grid tbody tr td.daynumb, div.calendar table.grid tbody tr.e td.dayname, div.calendar table.grid tbody tr.e td.daynumb { color:#000; background-color:#ccc; }
div.calendar table.grid tbody tr td.scheduled { background-color:#eaeaea; }
div.calendar table.grid tbody tr.e td.scheduled { background-color:#ddd; }
div.calendar table.grid tbody td.daynumb.game.away { color:#fff; }

div.calendar table.grid { width:100%; clear:both; }
div.calendar div.grid table { color:inherit; background-color:#fffff0; border:none; margin-bottom:0.67em; }
div.calendar table.grid td.daynumb { text-align:center; }
div.calendar table.grid td.none { }
div.calendar table.calendar td.day p { color:#666; background-color:transparent; }
div.calendar table.calendar td.day p.none { color:#666; background-color:#ddd; }
div.calendar table.calendar td.day { color:#000; background-color:#ccc !important; border:1px solid #fff; }
div.calendar table.calendar td.day.today { border:1px dashed #fff; }
div.calendar table.grid td.daynumb.game, div.calendar table.calendar td.game, div.calendar table.calendar td.day p.game
				{ color:#fff; background-color:#069 !important; font-weight:bold; }
div.calendar table.grid td.daynumb.game, div.calendar table.calendar td.game
				{ border:1px solid #fff; }
div.calendar table.calendar td.home
	{ background-image:url('img/bak_home_game.png'); background-repeat:no-repeat; background-position:top right; }
div.calendar table.calendar td.away
	{ background-color:#069 !important; font-weight:bold; }
div.calendar table.calendar td.tournament, div.calendar table.calendar td.tournament p.tournament
	{ color:#fff; background-color:#036 !important; background-image:none; border:1px solid #fff; }
div.calendar table.calendar td.tournament p.tournament
	{ background-color:#036 !important; border-left:1px solid #369; border-top:1px solid #369; border-right:1px solid #003; border-bottom:1px solid #003; }
div.calendar table.calendar td.tournament p a:link, div.calendar table.calendar td.tournament p.tournament a:link, div.calendar table.calendar td.tournament p a:visited, div.calendar table.calendar td.tournament p.tournament a:visited, div.calendar table.calendar td.tournament p a:active, div.calendar table.calendar td.tournament p.tournament a:active, div.calendar table.calendar td.tournament p a:hover, div.calendar table.calendar td.tournament p.tournament a:hover
	{ color:#9ef !important; background-color:transparent; }
div.calendar table.calendar td p { line-height:1.15; }
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
				{ color:#000; background-color:#f7cc1c !important; }
div.calendar table.grid td.dayname
	{ width:2.5em; }
div.calendar table.grid td.daynumb
	{ width:1.5em; }
div.calendar table.grid td.daynumb.event, div.calendar table.calendar td.event
				{ border:1px solid #fff; }
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
				{ color:#fff !important; background-color:#c00 !important; font-weight:bold !important; }
div.calendar table.grid td.daynumb.holiday, div.calendar table.calendar td.holiday
				{ border:1px solid #fff; }
div.calendar table.grid td.daynumb.practice, div.calendar table.calendar td.practice, div.calendar table.calendar td.day p.practice
				{ color:#000; background-color:#adf !important; font-weight:bold; }
div.calendar table.grid td.daynumb.practice, div.calendar table.calendar td.practice
				{ border:1px solid #fff; }
div.calendar table.grid td.scheduled.none { color:#666; }
div.calendar table.calendar td.game p { color:#fff; font-weight:normal !important; }
div.calendar table.calendar td.practice p { color:#000; font-weight:normal !important; }
div.calendar table.calendar td.game p a, div.calendar table.calendar td.game p.game a
	{ color:#9ff !important; }
div.calendar table.calendar td.practice p a
	{ color:#00c!important; }
div.calendar table.calendar td p.event a, div.calendar table.calendar td.event p a:visited, div.calendar table.calendar td p.event a:visited,
div.calendar table.calendar td.day p.practice a, div.calendar table.calendar td.day p.practice a:visited
	{ color:#00f !important; }

div.calendar table.calendar th { width:14%; text-align:center; }
div.calendar table.calendar td.spacer { color:inherit; background-color:#eee; border:1px solid #fff !important; }
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
			{ margin-left:0; margin-right:0; border:none; padding:3px 1px; }
div.calendar table.calendar td.day p.none
			{ color:#555; background-color:#def; }
div.calendar table.calendar td.day p.game
			{ margin-left:1px; margin-right:1px; border:none; padding:3px; }

span.event_conflict
			{ color:#f00 !important; background-color:#ff0 !important; padding:0 0.5ex; }

table.calendar_games
			{ border:1px solid #fff !important; }
table.calendar_games tr.gap td
			{ color:inherit; background-color:#009000 !important; line-height:0.17; border:1px solid #fff; }
table.calendar_games tr.big_gap td
			{ color:inherit; background-color:transparent !important; line-height:0.5; border:1px solid #fff; }
table.calendar_games th.game
			{ border-left:1px solid #ccc !important; }
table.calendar_games th.year, table.calendar_games th.round
			{ color:#fff; background-color:#000; padding:2px 0.67ex; border:1px solid #fff; }
table.calendar_games th.round a
			{ color:#fff; background-color:#000; border:none; }
table.calendar_games th.year
			{ color:#fff; background-color:#666; }
table.calendar_games th.month
			{ border-left:1px solid #eee; border-top:1px solid #eee; border-right:1px solid #aaa; border-bottom:1px solid #aaa; }
table.calendar_games th.year, table.calendar_games td.year
			{ border-left:1px solid #ccc !important; }
table.calendar_games td
			{ vertical-align:top; }
table.calendar_games td.day 
			{ border-left:1px solid #fff !important; border-top:1px solid #fff !important; border-right:none; border-bottom:1px solid #fff !important; }
table.calendar_games td.time 
			{ border-left:none; border-top:1px solid #fff !important; border-right:1px solid #fff; border-bottom:1px solid #fff !important; }
table.calendar_games td.weekday 
			{ border-left:none; border-top:1px solid #fff !important; border-right:none; border-bottom:1px solid #fff !important; }
table.calendar_games td.detail_result
			{ border-left:none; border-top:1px solid #fff !important; border-right:1px solid #fff !important; border-bottom:1px solid #fff !important; }
table.calendar_games td.detail_result div.game_score
			{ float:right; }
table.calendar_games td.type, table.calendar_games td.detail_type 
			{ border-left:1px solid #fff !important; border-top:1px solid #fff !important; border-bottom:1px solid #fff !important; }
table.calendar_games td.weekday
			{ text-align:center; padding-left:0.33ex; padding-right:0.33ex; }
table.calendar_games td.weektime
			{ text-align:center; }
table.calendar_games td.day, table.calendar_games td.time
			{ text-align:right; padding-right:0.33ex; }
table.calendar_games td.type
			{ text-align:center; padding-left:0.33ex; padding-right:0.33ex; }
table.calendar_games td.detail_type
			{ padding-left:0.33ex; padding-right:0.33ex; }
table.calendar_games td.result
			{ padding-left:0.33ex; padding-right:0.33ex; border:1px solid #fff; }
table.calendar_games tr.o td.type.typeT, table.calendar_games tr.o td.type.typeT a:link, table.calendar_games tr.o td.type.typeT a:visited, table.calendar_games tr.o td.type.typeT a:active, table.calendar_games tr.o td.typeX, table.calendar_games tr.o td.typeX, span.calendar_games_typeT, span.calendar_games_typeX,
table.calendar_games tr.e td.type.typeT, table.calendar_games tr.e td.type.typeT a:link, table.calendar_games tr.e td.type.typeT a:visited, table.calendar_games tr.e td.type.typeT a:active, table.calendar_games tr.e td.typeX, table.calendar_games tr.e td.typeX
			{ color:#fff !important; background-color:#999 !important; text-decoration:none !important; padding:0 0.33ex !important; }
table.calendar_games tr td.typeR.conflict, table.calendar_games tr.e td.typeR.conflict, table.calendar_games tr td.typeX.conflict, table.calendar_games tr.e td.typeX.conflict, table.calendar_games tr td.typeT.conflict, table.calendar_games tr.e td.typeT.conflict
			{ color:#fff !important; background-color:#c00 !important; }
span.calendar_games_typeT, span.calendar_games_typeX
			{ padding:0 0.33ex; }
table.calendar_games td.result_l, table.calendar_games div.game_score.result_l
			{ color:#fed !important; font-weight:bold; background-color:#900 !important; background-image:url('img/bak_l.png'); background-repeat:repeat-x; background-position:center center; }
table.calendar_games td.result_t, table.calendar_games div.game_score.result_t
			{ color:#630 !important; font-weight:bold; background-color:#c90 !important; background-image:url('img/bak_t.png'); background-repeat:repeat-x; background-position:center center; }
table.calendar_games td.result_w, table.calendar_games div.game_score.result_w
			{ color:#030 !important; font-weight:bold; background-color:#090 !important; background-image:url('img/bak_w.png'); background-repeat:repeat-x; background-position:center center; }
table.calendar_games div.game_score.result_l, table.calendar_games div.game_score.result_t, table.calendar_games div.game_score.result_w
			{ width:6em; }
table.calendar_games div.game_score
			{ margin:0; padding:0 2px; }

table.games
			{ color:inherit; background-color:#ccc; }

table.games thead th
			{ color:#fff; background-color:#ddd; border:1px solid #666; }
table.games tbody tr table.calendar_games
			{ width:100%; }

/* Season record styles */

p.game_record { margin-bottom:0; }
p.game_record, p.game_barchart { margin-left:1.5em; }
p.game_barchart span { font-size:small; }
span.bronze	{ color:#975; background-color:transparent; }
span.gold	{ color:#c90; background-color:transparent; }
span.lose	{ color:#f00; background-color:transparent; }
span.remaining { color:#89a; }
span.silver	{ color:#999; background-color:transparent; }
span.tie	{ color:#c90; background-color:transparent; }
span.win	{ color:#090; background-color:transparent; }
span.l i	{ font-style:normal; color:inherit; background-color:#900; border-left:1px solid #f66; border-top:1px solid #f60; border-right:1px solid #600; border-bottom:1px solid #600;
			  background-image:url('img/bak_l.png'); background-repeat:repeat-x; background-position:center center; }
span.r i	{ font-style:normal; color:inherit; background-color:#bcd; border-left:1px solid #dde7ee; border-top:1px solid #dde7ee; border-right:1px solid #89a; border-bottom:1px solid #89a;
			  background-image:url('img/bak_r.png'); background-repeat:repeat-x; background-position:center center; }
span.nsy i	{ font-style:normal; color:inherit; background-color:#89a; border-left:1px solid #dde7ee; border-top:1px solid #dde7ee; border-right:1px solid #89a; border-bottom:1px solid #89a;
			  background-image:url('img/bak_nsy.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('img/bak_t.png'); background-repeat:repeat-x; background-position:center center; }
span.w i	{ font-style:normal; color:inherit; background-color:#090; border-left:1px solid #0f0; border-top:1px solid #0f0; border-right:1px solid #060; border-bottom:1px solid #060;
			  background-image:url('img/bak_w.png'); background-repeat:repeat-x; background-position:center center; }

/* Check schedule styles */
div#ins_check_schedule table
			{ width:98%; border:none; border:1px solid #fff; }
div#ins_check_schedule table.grid tr th, div#ins_check_schedule table.grid tr td
			{ color:#fff; background-color:#000; margin:0; padding:1px 0.5ex; text-align:left; border:1px solid #fff; }
div#ins_check_schedule table.grid tr td
			{ color:#000; background-color:#ddd; }
div#ins_check_schedule table tr td.note
			{ text-align:center; }
div#ins_check_schedule table tr td.alert, span.check_schedule_alert
			{ color:#000 !important; font-weight:bold; background-color:#f7cc1c !important; text-align:center; }
div#ins_check_schedule table tr td.warning, span.check_schedule_warning
			{ color:#000 !important; font-weight:bold; background-color:#f90 !important; text-align:center; }
div#ins_check_schedule table tr td.error, span.check_schedule_error
			{ color:#fff !important; font-weight:bold; background-color:#f00 !important; text-align:center; }


/* Printer styles */

@media print
{
	div.calendar { page-break-inside:avoid !important; }

	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; }
}

