/*** Турнир-Портал - таблица стилей для турнирных таблиц
 *** Спецификация данного файла м.б.связвна  с шаблонной переменной {draws-css-uri}
 ***/

.seed, .w	{ font-weight: bold; }			/* winner, left-to-right root title */

td.caption	{ border: 0 none! important; 			/* a la th and caption */
		  vertical-align: bottom! important; text-align: left! important;
		  padding-top: 0.7em! important;
		  font-weight: bold; font-size: smaller; }
td.ln		{ text-align: center; } 				/* line-number */
td.sr		{ text-align: right; padding-right: 5px; }		/* status-rank */
td.c img        { width: 2em; }			/* флаг участника в турнирной таблице */

/** ELIMINATION **/
table.elimination	{ border: 0 none; border-collapse: separate;
			  empty-cells: show; }
table.elimination th	{ border: 0 none; vertical-align: middle; 	/* root-title */
			  text-align: left;				/* or stage */
			  font-size: smaller; }
table.elimination th.root { text-align: right; }			/* subtitle */

table.elimination td	{ border: 0 none; padding: 0.2em;
			  text-align: left; }
table.elimination td div.m
			{ position: relative; float: right;		/* match-number */
			  bottom: 0; 					/* at bottom right */
			  margin: 0; padding: 0 1px;		/* IE overlays right border */
			  font-weight: normal; font-size: smaller; }	/*right: 0; */

table.elimination td.c	{ min-width: 5em; 				/* competitor-name */
			  border: 1px solid; border-radius: 5px; }

table.elimination td.e	{ min-width: 3em; 				/* enough-name */
			  vertical-align: bottom; text-align: center; }
			  /*border-bottom: 1px solid; 
			  border-left: 1px solid;
			  border-bottom-left-radius: 5px; */
table.elimination td.root { border-bottom: 1px solid; }			/* root e */
			
table.elimination td.s	{ vertical-align: top; text-align: center; }	/* score */
			  /*border-left: 1px solid; border-top-left-radius: 5px; */

/** Vertical and horizontal lines, assigned to competitor, score, and empty cells **/
table.elimination td.r	{ border-right: 1px solid; }
table.elimination td.tr	{ border-top: 1px solid; 		/* top-right corner */
			  border-right: 1px solid;
			  border-top-right-radius: 5px; }
table.elimination td.br	{ border-bottom: 1px solid;		/* bottom-right corner */
			  border-right: 1px solid;
			  border-bottom-right-radius: 5px; }
/*table.elimination td.l { border-left: 1px solid; }
table.elimination td.t	{ border-top: 1px solid; }
table.elimination td.b	{ border-bottom: 1px solid; } */

/** Colors corresponding to the keywords that are values of entry1color and entry2color **/
table.elimination td.red	{ border-left: 3px solid maroon; }
table.elimination td.blue	{ border-left: 3px solid navy; }
table.elimination td.white	{ border-left: 3px solid gray; }
table.elimination td.black	{ border-left: 3px solid black; }

/** ROUND-ROBIN **/
table.round-robin	{ border: 0 none; border-collapse: collapse; width: 100%; 
			  empty-cells: show; }
table.round-robin th	{ border: 1px solid black;
			  vertical-align: middle; text-align: center;
			  font-size: smaller; }
table.round-robin td	{ border: 1px solid black; padding: 0.2em; 	/* match cell */
			  min-height: 2em;
			  vertical-align: middle; text-align: center; }
table.round-robin td.c	{ text-align: left; }				/* competitor */
table.round-robin td.diag { padding: 0; background-color: silver; }
			  
table.round-robin td div.m
			{ position: relative; float: right;		/* match-number */
			  right: -0.2em;				/* = - cell-padding */
			  margin: 1px; padding: 0 2px;
			  border-left: 1px solid; border-top: 1px solid;
			  border-bottom: 1px solid;
			  border-top-left-radius: 3px; border-bottom-left-radius: 3px;
			  font-weight: normal; font-size: smaller; }	/*right: 0; */
table.round-robin span.r      { font-size: larger; }			/* result 1 or 0 */
table.round-robin span.scored { font-weight: bold; }

/** Forfeit **/
table.round-robin td span.o   { font-size: larger; }			/* opponent */
table.round-robin td div.f    { position: relative; float: right;	/* score, */
				min-width: 2.5em;			/* hrule and */
				margin-left: 2px; padding: 0; }		/* duration */
table.round-robin td div.f hr { border-bottom: 0 none; }		/* border-top enough */

/** CONTEST **/
table.contest		{ border: 0 none; border-collapse: collapse;
			  empty-cells: show; }
table.contest th	{ border: 1px solid black;
			  vertical-align: middle; text-align: center;
			  font-size: smaller; }
table.contest td	{ border: 1px solid black; padding: 0.2em; 
			  vertical-align: middle; text-align: center; }
table.contest td.c	{ text-align: left; }				/* competitor */
table.contest td.g	{ text-align: right; }				/* game points */
table.contest td.s	{ text-align: right; font-weight: bold; }	/* set/exercise total */
table.contest td.m	{ text-align: right; font-weight: bold; }	/* match total */
