/* --- global table --- */
table.leaguemanager,
div.matchlist table.leaguemanager {
	text-align: left;
	border: 1px solid;
	border-collapse: collapse;
	width: 100%;
	margin: 1em auto 1.5em auto;
}
table.leaguemanager th,
div.matchlist table.leaguemanager {
	padding: 2px 3px;
	margin: 0;
	border-bottom: 1px solid;
	}
table.leaguemanager td,
div.matchlist table.leaguemanager td {
	vertical-align: middle;
	border: 0;
	padding: 5px;
	margin: 0;
	}
table.leaguemanager.matchtable a {
	border: 0;
}
table.leaguemanager .num,
table.leaguemanager .textcenter,
table.matchtable .textcenter {
	text-align: center;
	}
table.leaguemanager .logo,
table.leaguemanager .match_title .logo,
table.matchtable .match_title .logo {
	width: 20px;
	}
table.leaguemanager .match_title .logo,
table.matchtable .match_title .logo {
	max-width: 50px;
}
table.leaguemanager .match_title .logo,
table.matchtable .match_title .logo {
	display: inline;
	clear: none;
}
table.leaguemanager .logo img {
	display: block;
	margin: 0;
	padding: 0;
	}
table.leaguemanager .home {
	font-weight: bold;
	}
table.leaguemanager th.match {
	text-align: center;
	}
table.leaguemanager .score, table.leaguemanager .ap {
	vertical-align: bottom;
	text-align: right;
	}
table.leaguemanager .match-score {
	margin: 0;
	padding: 0;
}
table.leaguemanager tr.divider {
	/*border-bottom: 1px solid;*/
	}
table.leaguemanager a {
	text-decoration: none;
}


/*--- Standings table ---*/
.standingstable {
	border: 1px solid !important;
	width: 100%;
}
.standingstable th,
.standingstable td {
	vertical-align: middle;
}
.standingstable .rank {
	display: block;
	margin: auto;
	text-align: center;
	padding: 5px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	border-radius: 4px;
	font-weight: bold;
}

table.standingstable th.last5 {
	text-align: center;
}
table.standingstable td.last5 {
	text-align: right;
}
table.standingstable .last5 a {
	border: 0;
}
table.standingstable a.W { background-position:0 -150px; }
table.standingstable a.D { background-position:0 -200px; }
table.standingstable a.L { background-position:0 -250px; }
table.standingstable a.N { background-position:0 -650px; }

table.standingstable a.W:hover { background-position:0 -300px; }
table.standingstable a.D:hover { background-position:0 -350px; }
table.standingstable a.L:hover { background-position:0 -400px; }
table.standingstable a.N:hover { background-position:0 -700px; }

table.standingstable .last5 {
	text-align: center;
	max-width: 80px;
	}
table.standingstable .last5 span {
	display: block;
	margin: 0 auto;
	padding: 0 auto;
	text-align: center;
}
table.standingstable .last5Icon a {
	border: 0;
	background-image: url(images/last5.png);
}

table.standingstable .last5-bg {
	float:left;
	width:20px;
	height:20px;
	padding: 0;
	margin: 0;
}
table.standingstable .last5-bg.clear {
	/*clear: both;*/
}


/*--- Crosstable ---*/
div#leaguemanager_crosstable div { text-align: center; padding-top: 1em;}

table.leaguemanager.crosstable {
}
table.leaguemanager.crosstable th {
	vertical-align: middle;
	border: 1px solid;
}
table.leaguemanager.crosstable td {
	border: 1px solid;
}
table.crosstable img {
	display: inline-block;
	vertical-align: middle;
}


/*--- Archive ---*/
.jquery-ui-tab,
.jquery-ui-tabs .tab-content {
	overflow: auto;
}
div#leaguemanager_archive_selections { margin-bottom: 1em; }


/*--- Single Match ---*/
div.match .match-content:after {
	content: " ";
	display: block;
	clear: both;
}
div.match h4 {
	clear: both;
	text-align: center;
	}
div.match p.score,
div.match p.matchdate {
	font-weight: bold;
	font-size: 1.2em;
	text-align: center;
	margin-top: 2em;
}
div.match .match_ img,
div.match .away_logo img {
	font-size: 1em;
	vertical-align: middle;
}
div.match span.home_logo {
	margin-right: 1em;
}
div.match span.away_logo {
	margin-left: 1em;
}

div.match table {
	width: 100%;
	margin-top: 1.5em;
	clear: both;
}
div.match table,
div.match table th,
div.match table td {
	border: 0;
	background: transparent;
}
div.match table th,
div.match table td {
	vertical-align: top;
	margin: 0;
}
div.match .match_day,
div.match .date,
div.match .location,
div.match .report {
	text-align: center;
	margin: 0;
}
div.match .match-stats {
	clear: both;
}

/*
 * Match table
 */
table.leaguemanager {
	clear: both;
}
.matches-selections {
	float: left;
	margin: 1em 0 0.5em 0;
}
.match-status {
	margin: 0;
	padding: 0;
}
.match-status.ppd {
	color: #000099;
}
.match-status.forfeited {
	color: #cc0000;
}
.match-status.cancelled {
	color: #cc0000;
}

/*
 * Pagination
 */
.leaguemanager-pagination.page-numbers {
	clear: both;
	text-align: center;
	font-size: 1em;
	margin: 1em 0;
}
.leaguemanager-pagination.page-numbers a {
	padding: 2px 5px 0 5px;
	border: 1px solid;
	border-bottom: none;
}
.leaguemanager-pagination.page-numbers span {
	font-weight: bold;
}
.leaguemanager-pagination.page-numbers span.current {
	font-weight: bold;
	border: none;
}


/*
 * Championship
 */
table.matchtable.finals .final_home {
	margin-right: 0.5em;
}
table.matchtable.finals .final_away {
	margin-left: 0.5em;
}

/*
 * Match List
 */
div.matchlist {
	margin-bottom: 1em;
}
.matchlist .match {
	margin-bottom: 1em;
}
div.matchlist h3.header {
	cursor: pointer;
}
div.matchlist h3.header.ui-accordion-header {
	padding-left: 2em !important;
}
div.matchlist table.leaguemanager  th {
	padding: 4px;
	margin: 0;
	border: 1px solid;
}

/*--- Team Page ---*/
div.teampage,
div.teamlist {
	position: relative;
	clear: both;
	margin-bottom: 1em;
}
div.teamlist h3.header {
	cursor: pointer;
}
div.teamlist h3.header.ui-accordion-header {
	padding-left: 2em !important;
}
div.team-content .prev_match,
div.team-content .next_match {
	margin-bottom: 1em;
}
div.team-content:after {
	content: " ";
	display: block;
	clear: both;
}
div.teampage h3.header,
div.teamlist h3.header,
div.match h3.header,
div.team-content .prev_match .header,
div.team-content .next_match .header {
	margin: 0;
	-moz-border-radius: 0;
	-webkit-border-radius: 0;
	border-radius: 0;
	padding: 0.5em;
	-moz-border-top-left-radius: 4px;
	-moz-border-top-right-radius: 4px;
	-webkit-border-top-left-radius: 4px;
	-webkit-border-top-right-radius: 4px;
	border-top-right-radius: 4px;
	border-top-left-radius: 4px;
	border: 1px solid;
	border-bottom: 0;
	font-weight: bold;
	-webkit-box-shadow:0 1px 1px rgba(0,0,0,1);
	-moz-box-shadow:0 1px 1px rgba(0,0,0,1);
	-ms-box-shadow:0 1px 1px rgba(0,0,0,1);
	-o-box-shadow:0 1px 1px rgba(0,0,0,1);
	box-shadow:0 1px 1px rgba(0,0,0,1);
}
div.team-content .prev_match .header,
div.team-content .next_match .header {
	font-size: 1em;
}
div.team-content,
div.match .match-content,
div.team-content .prev_match .content,
div.team-content .next_match .content {
	position: relative;
	padding: 0.5em;
	-webkit-box-shadow:0 1px 1px rgba(0,0,0,1);
	-moz-box-shadow:0 1px 1px rgba(0,0,0,1);
	-ms-box-shadow:0 1px 1px rgba(0,0,0,1);
	-o-box-shadow:0 1px 1px rgba(0,0,0,1);
	box-shadow:0 1px 1px rgba(0,0,0,1);
	margin: 0 0 2px 0;
	border: 1px solid;
}
div.team-content,
.ui-accordion-content {
	padding: 0.5em !important;
}
div.team-content .teamlogo:after {
	content: " ";
	clear: both;
	display: table;
}
div.team-content .teamlogo img {
	/*position: absolute;
	right: 1em;
	top: 1em;*/
	display: block;
	max-width: 300px;
	margin: 0 0 1em auto;
}
div.team-content dl.team {
	margin: 1em 0;
	float: left;
}
div.team-content dl.team dt {
	float: left;
	font-weight: bold;
	width: 9em;
	clear: both;
	padding: 0.3em 0;
}
div.team-content dl.team dd {
	padding: 0.3em 0;
	float: left;
}
div.team-content .matches {
	/*margin-top: 90px;*/
	/*float: right;*/
	width: 100%;
	display: block;
	clear: both;
}
div.team-content .matches-container {
	height: auto;
	width: 50%;
	float: left;
}
div.team-content .next_match {
	margin-right: 0.5em;
}
div.team-content .prev_match {
	margin-left: 0.5em;
}
div.team-content .prev_match p,
div.team-content .next_match p {
	margin: 0;
	padding: 0.3em 0;
}
div.team-content .prev_match .score,
div.team-content .next_match .score {
	font-size: 1.3em;
	text-align: center;
	font-weight: bold;
}
div.team-content .team-projectmanager {
	clear: both;
	position: relative;
}


div.teamlist .header .ui-icon {
/*	background-image: none;*/
}

/*
 * jQuery UI Tabs
 */
.tablist {
	display: none;
}
.tablist a {
	border: 0;
}

/*
 * jQuery accordion lists
 */
.ui-accordion .teampage,
.ui-accordion .match {
	margin-bottom: 0 !important;
}


/*
* @section: Widget
*/
.leaguemanager_widget {
	background-image: none;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	}
.leaguemanager_widget h4 {
	position: relative;
	border-bottom: 1px solid;
	text-align: center;
	margin: 0.5em 0 0.5em 0;
	padding-bottom: 0.3em;
	font-size: 1em;
	}
.leaguemanager_widget h4 .next {
	position: absolute;
	right: 0;
	}
.leaguemanager_widget h4 .prev {
	position: absolute;
	left: 0;
	}
.leaguemanager_widget h4 .standings {
	margin-top: 1.5em;
	}
.leaguemanager_widget h4 a {
	text-decoration: none;
	}
.leaguemanager_widget img {
	border: 0;
	vertical-align: middle;
	}

/*--- Match Events ---*/
.leaguemanager_widget .match_box {
	margin-bottom: 1.5em;
	text-align: center;
	}
.leaguemanager_widget .match_box .match {
	padding: 0.3em 0 0 0;
	margin: 0.5em 0;
	}
.leaguemanager_widget .match_box .logos {
	margin: 0.5em auto;
	}
.leaguemanager_widget .match_box .logos img {
	display: inline;
	width: auto;
	max-width: 25% !important;
	height: auto !important;
}
.leaguemanager_widget .match_box .home_logo {
	margin-right: 0.5em;
	}
.leaguemanager_widget .match_box .away_logo {
	margin-left: 0.5em;
	}
.leaguemanager_widget .match_box .match_day, .leaguemanager_widget .match_box .date, .leaguemanager_widget .match_box .location {
	padding: 0;
	margin: 0.3em 0;
	}
.leaguemanager_widget .match_box .result {
	font-size: 1.3em;
	font-weight: bold;
	}
.leaguemanager_widget .match_box .report {
	text-align: right;
	}

/*--- Standings Table ---*/
.leaguemanager_widget table.leaguemanager {
	font-size: 0.9em;
	margin: 0;
	padding: 0;
	}
.leaguemanager_widget table.leaguemanager th {
	/*background-color: transparent;*/
	}
.leaguemanager_widget table.leaguemanager th, .leaguemanager_widget table.leaguemanager td {
	padding: 4px;
	margin: 0;
	border: 0;
	border-bottom: 1px solid;
	/*background-color: transparent;*/
	}

.leaguemanager_widget table.leaguemanager tr, .leaguemanager_widget table.leaguemanager tr.alternate {
	/*background-color: transparent;*/
	}

/*--- Fancy Slideshow Overlay ---*/
.fancy-slideshow .slide-overlay.leaguemanager,
.fancy-slideshow .cycle-overlay.leaguemanager {
}
.fancy-slideshow .slide-overlay.leaguemanager .title,
.fancy-slideshow .cycle-overlay.leaguemanager .title {
	font-size: 1.2em;
}
.fancy-slideshow .slide-overlay.leaguemanager .title .match_title,
.fancy-slideshow .cycle-overlay.leaguemanager .title .match_title {
	margin: 0;
}
.fancy-slideshow .slide-overlay.leaguemanager .title .logos,
.fancy-slideshow .cycle-overlay.leaguemanager .title .logos {
	margin: 0;
	width: 100%;
}
.fancy-slideshow .slide-overlay.leaguemanager .title .logos .result,
.fancy-slideshow .cycle-overlay.leaguemanager .title .logos .result {
	margin: 0 0.5em;
	font-weight: bold;
}
.fancy-slideshow .slide-overlay.leaguemanager .title img.logo,
.fancy-slideshow .cycle-overlay.leaguemanager .title img.logo {
	display: inline;
	width: auto;
	max-width: 25% !important;
	height: auto !important;
}
.fancy-slideshow .slide-overlay.leaguemanager .description p,
.fancy-slideshow .cycle-overlay.leaguemanager .description p {
	margin: 0.2em 0;
	padding: 0;
}

/*
 * some utilities
 */
.hide {
	display: none;
}


/*
 * mobile
 */
@media screen and (max-device-width: 736px) {

}