
/**************************
*	TABLE STYLES
***************************/


/*******************************
*	TYPOGRAPHY
********************************/


td {
	font-size: 0.8em;
}
th {
	font-size: 0.8em;
	font-weight: bold;
}
th.logo a {
	font-style: italic;
	font-weight: normal;
}
td.position,
td.org {
	font-weight: bold;
}



/*******************************
*	LAYOUT
********************************/


table {
	border: 1px solid;
	margin-bottom: 1em;
	width: 100%;
}
td {
	border-top: 1px solid;
	padding: 0.5em 1.25em;
	vertical-align: middle;
}
th {
	padding: 0.5em 1.25em;
	text-align: left;
}
th.sorting,
th.sorting_asc,
th.sorting_desc {
	padding-right: 24px;
	cursor: pointer;
}
th.logo a {
	margin-left: 0.5em;
}
td .buttons,
th .buttons {
	margin-bottom: 0;
}
td.position {
	text-align: center;
}



/*******************************
*	COLOUR
********************************/


table {
	border-color: rgb(220,220,220);
}
th {
	background-color: rgb(235,235,235);
	color: rgb(40,40,40);
}
th.sorting {
	background-image: url(/img/sort-light.png);
	background-position: right 0.4em;
	background-repeat: no-repeat;
}
th.sorting_asc {
	background-image: url(/img/up-light.png);
	background-position: right 0.4em;
	background-repeat: no-repeat;
}
th.sorting_desc {
	background-image: url(/img/down-light.png);
	background-position: right 0.4em;
	background-repeat: no-repeat;
}
th.sorting_asc,
th.sorting_desc {
	background-color: rgb(160,160,160);
}
tr:nth-of-type(even) {
	background-color: rgb(245,245,245);
}
td {
	border-color: rgb(220,220,220);
}
th.logo a {
	color: rgb(240,240,240);
}
.top-three td {
	border-color: rgb(252,252,252);
}



tr.template {
	background-color: rgb(245,245,245);
}
tr.template a {
	color: rgb(147,175,139);
}


@media only screen and (max-width: 840px) {

	/* Force table to not be like tables anymore */
	table, thead, tbody, th, td, tr {
		border: 0;
		display: block;
	}

	/* Hide table headers (but not display: none;, for accessibility) */
	thead tr {
		position: absolute;
		top: -9999px;
		left: -9999px;
	}

	tr { border: 1px solid rgb(220,220,220); }

	td {
		/* Behave  like a "row" */
		border: none;
		border-bottom: 1px solid #eee;
		position: relative;
		padding-left: 50%;
	}

	td:before {
		/* Now like a table header */
		position: absolute;
		/* Top/left values mimic padding */
		top: 6px;
		left: 6px;
		width: 45%;
		padding-right: 10px;
		white-space: nowrap;
	}

	/*
	Label the data
	*/
	td:before { 
		content: attr(title); 
	}
}

