/* These settings are only invoked by browser print preview and actual print */
body		{	width: auto;
				background: none;
				padding: 0;
				margin: 0	}

@media (orientation: portrait) {
	body			{	width: 197mm;
						/*max-height: 277mm;*/	}
	#edit_courts	{	width: auto		}
	#courts_key		{	width: 150mm	}
	div.page		{	width: 100%;
						border: 2px solid red;
						height: 284mm;	}
	}
@media (orientation: landscape) {
	body	{	  width: 284mm;
				  /*height: 197mm;*/		}
	div.page		{	width: 100%;
						height: 197mm;	}
	}
@media (max-color: 1) {							/* for monochrome printers */
	.BLUE, table.BLUE, table.BLUE th,
	.GREEN, table.GREEN, table.GREEN th,
	.PINK, table.PINK, table.PINK th,
	.RED, table.RED, table.RED th,
	.YELLOW, table.YELLOW, table.YELLOW th,
	.ORANGE, table.ORANGE, table.ORANGE th,
	.ac14,
	.ALA,
	.print,					
	.print #courts_key th,
	.print #courts td,
	.print col.AC_SESSION,
	.print col.GC_SESSION,
	.print col.FREE,
	table.block,
	table.ko,
	table.swiss,
	table.ko th,
	table.swiss th		{	background: none;	}
	}

a           {	color: black; 
				text-decoration: none	}

.centre			{	position: relative;	}

#header 		{	margin: 0;	}
#header img		{	top: -10px	}
#header h1		{	position: relative; top: 20px	}
#header h1 br {	
	display: initial;
	} 
#crumbs,
#searchbox,
#bookings,
#adminmenu,
#archmenu,
#MBmenu,
#timers,
#footer hr,
#footer caption,
#footer td+td,
#entries fieldset,
ul.hmenu,
p.select_hilite,
input.button,
div.match_info td.archives,
table.tnmt_info td.archives,
table.tnmt_info td.trophy,
table.tnmt_info td.competition_info p:first-child,
table.tnmt_info p.extra
	{	display: none}

/*
table.tnmt_info {
	width: 177mm;
	}
*/
th span.toggle,
td.month,
td.year img	{	display: none	}
td.year		{	background: white	}

td.print		{	padding: 10px;
					vertical-align: top	}

td.diagonal 	{	box-shadow: inset 0 0 0 1000px black;	}
table.ko th,
table.swiss th	{	box-shadow: inset 0 0 0 1000px #A0FFA8; 	}
table.ko thead	{	display: table-row-group	}
table.block		{	
	margin: 0;
	max-width: 700px;
	}

table.block	{ width: 100%	}
table.block tr+tr td+th,
table.block tr+tr td+th+th,
table.block tr+tr td+th+th+th	{ color: transparent;	}

table#ko thead th,
table.ko thead th,
table.mko thead th,
table.swiss thead th	{ background: #A0FFA8 }

/* table.ko td		{	border: 2px solid black	}   */
#print_header		{	margin: 10px 0;
						white-space: nowrap	}
#print_header img	{	float: left	}
#print_header h1	{	text-align: center;
						padding: 30px 80px 30px 0	}
						
#calendar_tbl		{	width: 100%	}
#calendar_tbl td	{	font-size: 85%	}

#calendar_key		{	width: 100%;	}

#footer	p	 {	margin-top: 10px;
				font-size: xx-small; 
				font-style: italic;	
				text-align: right;	}

#matches p,
#matches table.key,
#match_links,
#tournaments p,
#tournaments table.key			{	display: none	}
#matches td.archives			{	width: 1px	}
#matches td.competition_info	{	white-space: nowrap	}

#member_handicaps				{	margin-top: -50px	}
#member_handicaps caption		{	display: none	}
#member_handicaps td 			{	padding-top: 0	}

#mlist							{	margin-top: -50px;		}
#mlist table td					{	border: 0	}
#mlist div span					{	display: none	}
#mlist div p					{	margin: 0;
									color: black	}

#edit_courts h1					{	text-align: center;
									margin: 20px 0;	}
#edit_courts form.edit select	{	border: 0;
									font-size: larger	}
#edit_courts form.edit span,
#edit_courts thead td.edit,
#edit_courts td label			{	display: none	}

td.BR1,
td.BR2,
td.BR3,
td.BR4,
td.BR6,
td.BR8,
td.BR10,
td.BR12,
td.BR16,
td.BR20,
td.BR24,
td.BR32,
td.BR40,
td.BR48,
td.BR64	{	color-adjust: exact;
			-webkit-print-color-adjust: exact;	}