/** Таблица стилей для модуля Турнир-Портал
**/

.hac	      { text-align: center; }
.hal	      { text-align: left; }
.har	      { text-align: right; }
.vac	      { vertical-align: middle; }
.vat	      { vertical-align: top; }
.hidden       { display: none }
.right        { float: right; }
.printable    { font-size: 12px; }			/* a la li.special */

body	      { background-color: white; color: black;
		font-family: Verdana,Arial,Helvetica,Geneva,Swiss,SunSans-Regular,Sans-Serif;
		margin: 0 10px 0 10px;
	      }

dfn	      { font-weight: bold; font-style: italic }

h2            { font-size: 120%; font-weight:bold; 
		margin: 0.5em 0 0.5em -4px; padding-left:4px; }
h3            { font-size: 100%; font-weight: bold; 
		margin-top: 1em; margin-bottom: 0.5em;
		padding: 0.1em }
h4            { font-size:90%; font-weight:bold; 
		margin-top:1em; margin-bottom:0.3em; }
h5            { font-size:100%; font-weight:normal; 
		margin-top:0.5em; margin-bottom:0; }

p	      { margin-top: 0.8em; margin-bottom:0; }

ol	      { margin-top:0.4em; margin-bottom:0; }
ol.Level2     { margin-top:0.2em; margin-bottom:0; counter-reset:level2 }
li.Level2:before
	     { content: counter(level2,decimal) ") "; counter-increment:level2 }
ul	      { margin: 0.4em 0 0 0; padding: 0 0 0 2em; }
ul ul	      { margin-top:0; }
ol ul	      { margin-top:0; }
ul ul ul      { margin-top:0; }

dl	      { margin-top: 0.5em; margin-bottom: 0.2em }
dt	      { margin-top: 0.4em; margin-bottom: 0 }
dd	      { font-size: 0.9em; margin-left: 3em; margin-bottom: 0 }
blockquote    { margin-top: 0; margin-bottom: 0.8em;
		margin-left: 20%; margin-right: 1em; font-size: 0.8em }
table	      { border-collapse:collapse; border: 2px solid silver;  
		padding:0; margin: 2px 0 0 0; font-size: 1em;
		empty-cells:show; }
th	      { padding:5px; border-right: 1px solid silver;
		text-align:center; font-size:80%; }
td	      { padding:5px; 
		border-top: 1px solid silver; border-right: 1px solid silver; }
td a          {	text-decoration:none }
td a:hover    { text-decoration:underline }
img	      { border-style:none }
img.icon      { height: 2ex; }			/* флаг участника в списке */
div.right-logo { float:right; margin: 1px 0 1px 10px; }

.float-right	      { float:right; clear:right; margin: 10px 2px 10px 10px; }
.float-right img      { border: 1px solid black; }	/* для фото? */
img.float-right       { border-style: 1px solid black; }
table.float-right     { border-collapse:separate; border-style:none; border-spacing:1px; }
table.float-right td  { border-style:none; margin:0; padding:0; text-align:center; font-size:8pt; }

div#tabs { overflow: hidden; width: 104%; height: 32px;
	   margin: 0 -10px 0 -10px;
	   background: url('/theme/tabs_bg.png') repeat-x; }
div#tabs ul
      { list-style: none; overflow: hidden; width: 100%; 
	margin: 0 0 0 15px; padding:0; }
div#tabs ul li
      { float: left; height: 32px; line-height: 32px; /* width: 100px; */
	margin: 0; 
	font-size: 16px; font-weight: normal;
	background: #E5E5E5 url('/theme/tabs_right.png') no-repeat right top; }
 /*div#tabs ul li img { vertical-align: -4px; } */
div#tabs ul li a
      { display: block;	padding: 3px 10px;
	text-align: center; text-decoration: none;
	background: url('/theme/tabs_left.png') no-repeat left top; }
 /*div#tabs ul a:link, div#tabs ul a:visited { color: #0174e5; }*/
div#tabs ul li a:hover
      { text-decoration: underline }
div#tabs ul li.selected
      { background: #E5E5E5 url('/theme/tabs_right_selected.png')
	no-repeat right top; }
div#tabs ul li.selected div
      {	display:block; line-height:32px; padding: 3px 10px;
	text-align:center;
	background: url('/theme/tabs_left_selected.png') no-repeat left top; }
div#tabs ul li.selected a		/* clickable current tab */
      {	background: url('/theme/tabs_left_selected.png') no-repeat left top; }
div#tabs ul li.special		/* e.g. printed version right-aligned */
      { float:right; line-height:16px;	/*width:150px; margin-left:100px; */
	padding:10px 3px; margin-right: 4%; 
	background:none;
	text-align:right; font-size:12px; font-weight:normal; }
div#tabs ul li.special a
      { display:inline; padding:0; background:none; }

table.noborder     { border-style:none; }
table.noborder td  { border-style:none; }

table.datasheet	   { clear:both; width:100%; }	/* во всю ширину страницы */
table.datasheet td.weighed { background-color: #9F9 } 		/* участник взвешен */

table.zebra	{ clear: both; width:100%;	/* без линий */
		  border-collapse: collapse;
		  border-style: none; }
table.zebra thead { border: 1px solid silver; background-color: #E0E0E0; }
table.zebra th    { border-style: none; }
		  /*border-bottom: 1px solid silver; 
		  border-right: 0 none; border-left: 0 none;
		  background-color: #E0E0E0; }*/

table.zebra tbody { border: 1px solid silver; }
table.zebra td	  { border-style: none; }
table.zebra tfoot td { border-top: 1px solid silver; }

tr.odd		{ background-color: #F5F5F5; vertical-align: top; }
tr.even		{ background-color: #E7E7E7; vertical-align: top; }

table.calendar    { float:right; 
		    border-collapse: separate; border-spacing: 4; 
		    border: 0 none; }
table.calendar td { border-left: 1 solid #666; border-right: 1 solid #666; 
		    border-top: 1 solid #666; border-bottom: 3 dotted #666;
		    margin: 0; }

table.timetable	   { clear: right; width: 100%;
                     border: 0 none; border-collapse:collapse; 
		     empty-cells:show; }
table.timetable	th { border: 1px solid #999; padding: 3px; }
table.timetable	td { border: 1px solid #999; padding: 3px; text-align: center; }
table.timetable	td.form
		{ border: 1px solid #999; padding: 3px; text-align: left; }
table.timetable tfoot td
		{ border-top: 1px solid silver; border-bottom: 0 hidden;
		  border-left: 0 hidden; border-right: 0 hidden; }
/* td.slot, td.time */
.running	{ color: green }
td.running 	{ color: black; background-color: #CFC } /* продолжаетя */
.suspend	{ color: maroon }
td.suspend	{ color: black; background-color: #FCC } /* отложен */
.finished	{ color: gray }
td.finished	{ color: black; background-color: #CCC } /* завершён */
.announcement	{ color: brown }
td.announcement	{ color: black; background-color: #FF9 } /* объявление */

p.TimeCellHead  { padding: 0 0 0 0; margin: 0 0 1 0;
		  text-align: justify; font-size: 70% }
span.winner     { font-weight: bold }
span.loser      { font-weight: normal }
span.vs	        { font-size: 6pt }
span.score      { color: black }

div.Rightbar	{ float:right; right:2px; width:244px; /*30%*/
		  padding:4px; 
		  background-color:white;  border-color:#9C9;
		  border-left-style:solid; border-top-style:none;
		  border-right-style:none; border-bottom-style:solid; }
div.Rightbar h2 { margin: 0 0 0.5em 0; padding:0;
		  font-size:80%; text-align:left; }
div.Rightbar h3 { margin: 2px 0 0.5em 0; padding:0;
		  font-size:80%; text-align:center; }
div.Rightbar p  { margin: 2px 0 0 0; padding:0; font-size:80%; }
div.Rightbar ul { margin: 1px 0 0 25px; padding:0; font-size:80%; }
div.Rightbar ul li { margin:0; padding:0; } 
div.Rightbar hr	   { color: #9C9; }
div.Rightbar table { border: 1px solid #9C9; }
div.Rightbar table td { border: 1px solid #9C9; font-size:80%; }

.PoweredBy	{ padding: 1px;
		  color: Olive;
		  font-size:12px! important; text-align: center; }
.PoweredBy img	{ vertical-align: -8px; }

#Footer       { clear: both;
		margin: 10px -10px 0 -10px; padding: 3px 4px;
		border-top: #bbb 1px solid; border-bottom: #bbb 1px solid;
		color: #999;
		background-color: #dedede;
		font-size: 12px! important;
		text-align: center; }
#Footer a     { text-decoration: none; color: #999 }
#Footer a:hover { text-decoration: underline }
#Footer img	{ vertical-align: -8px; }

/** Турнирные таблицы
 **/
.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        { height: 2ex; }			/* флаг участника в турнирной таблице */

/** 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 */
