div.flexgrid div.main-right {
	/*background-color: black;*/
	color: #c2c2c2;
}

div.flexgrid div.mypanel div.header {
	color: #316A2A;
}

div.flexgrid div.main {
	background-color: black;
	color: white;
	padding-bottom: 0px;
	padding-right: 0px;
}

div.bracketcontainer {
	overflow: auto;
	height: calc(100vh - 280px);
	max-height: calc(100vh - 280px);
}

div.bracketcontainer.fullscreen {
    overflow: auto;
    height: calc(100vh - 99px);
    max-height: calc(100vh - 99px);
}

    div.bracketcontainer.fullscreen.fromapp {
        overflow: auto;
        height: calc(100vh);
        max-height: calc(100vh);
    }

sup {
	font-size: .6rem;
	margin-right: 2px;
	width: 6px;
	text-align: right;
	display: inline-block;
}

div.bracket {
	display: flex;
	flex-direction: column;
	/*background-color: black;*/
	font-size: .9rem;
	color: white;
}

	div.bracketheader {
		display: flex;
		flex-direction: row;
		gap: 10px;
	}

		div.bracketheader div.something {
			display: flex;
			justify-content: center;
			align-items: center;
		}

			div.bracketheader div.title {
				color: orange;
				font-size: 2rem;
			}

	div.bracket.winners div.header {
		margin-bottom: 15px;
	}

div.bracketselect a {
	color: blue;
}
	div.bracketselect.selected a {
		color: white;
	}

		div.bracketselect.selected a:hover {
			background-color: black;
			color: white;
			cursor: default;
		}

div.rounds {
	display: flex;
	flex-direction: row;
	padding-left: 10px;
	padding-right: 10px;
}

div.round {
	display: flex;
	flex-direction: column;
	width: 155px;
	min-width: 155px;
}

	div.round div.filler {
		height: 43px;
	}

		div.round div.filler div.top {
			display: flex;
			flex-direction: row;
			height: 22px;
		}

			div.round div.filler div.top div.left {
				width: 30px;
				height: 22px;
				border-bottom: 1px solid #404040;
			}

			div.round div.filler div.top div.right {
				width: 45px;
			}

			div.round div.filler div.top.full {
				width: 100%;
			}

		div.round div.filler div.middle {
			height: 21px;
			width: 30px;
			border-right: 1px solid #404040;
		}

		div.round div.filler.up div.top div.left {
			border-right: 1px solid #404040;
		}

		div.round div.filler.up div.middle {
			border-right: 0px;
		}

		div.round div.filler.none div.top {
			border-right: 0px;
			border-bottom: 0px;
			border-top: 0px;
		}
			div.round div.filler.none div.top div.left {
				border-bottom: 0px;
			}

		div.round div.filler.none div.middle {
			border-right: 0px;
		}

		div.round div.filler.rightonly div.top {
			border-right: 0px solid #404040;
			border-bottom: 0px;
			border-top: 0px;
			width: 100%;
		}

		div.round div.filler.rightonly div.middle {
			border-right: 1px solid #404040;
			width: 30px;
		}

		div.round div.filler.rightonly div.top div.left {
			border-bottom: 0px;
			border-right: 1px solid #404040;
		}

	div.round.reverse div.filler div.top div.left {
		width: 110px;
		height: 22px;
		border-bottom: 0px;
	}

	div.round.reverse div.filler div.top div.right {
		border-bottom: 1px solid #404040;
	}

	div.round.reverse div.filler div.middle {
		width: 110px;
	}

	div.round.reverse div.filler.up div.top div.left {
		border-right: 1px solid #404040;
	}

	div.round.reverse div.filler.up div.top div.right {
		border-right: 0px solid #404040;
	}

	div.round.reverse div.filler.rightonly div.top {
		border-right: 0px;
	}

	div.round.reverse div.filler.rightonly div.top div.left {
		border-right: 1px solid #404040;
		border-bottom: 0px;
		border-top: 0px;
		width: 110px;
	}

	div.round.reverse div.filler.rightonly div.top div.right {
		width: 45px;
		border-bottom: 0px solid #404040;
	}

	div.round.reverse div.filler.rightonly div.middle {
		border-right: 1px solid #404040;
		width: 110px;
	}

	div.round div.filler.none div.top div.right {
		border-bottom: 0px;
	}

	div.round div.filler.rightonly div.top div.right {
		border-bottom: 0px;
	}

div.match {
	/*border: 1px solid red;*/
	color: #cfcfcf;
	height: 43px;
}

	div.match.bye {
		opacity: .4;
	}

	div.match div.header {
		display: flex;
		flex-direction: row;
		/*width: 250px;*/
		width: 155px;
		/*font-size: 9px;*/
		font-size: .9rem;
		/*height: 10px;*/
		height: 6px;
		/*padding-bottom: .7rem;*/
		margin-bottom: 0px !important;
		gap: 0px;
	}

		div.match div.header div.matchnumber {
			/*width: 65px;*/
			padding-left: 1px;
			width: 35px;
		}

		div.match div.header div.board {
			/*width: 65px;*/
			width: 35px;
		}

		div.match div.header div.time {
			/*width: 65px;*/
			width: 116px;
			/*font-size: 8px;*/
			/*padding-bottom: 4px;*/
			/*justify-content: flex-start;*/
			color: cadetblue;
			margin-top: -6px;
		}

		div.match div.header div.winslosses {
			display: flex;
			gap: 2px;
			width: 21px;
			margin-top: -1px;
		}

		div.match div.header div.gamenumber {
			width: 18px;
			text-align: right;
			/*font-size: 8px;*/
			color: cadetblue;
			margin-top: -6px;
		}

	div.match div.team {
		display: flex;
		height: 14px;
		line-height: 14px;
		/*height: 20px;*/
		/*line-height: 20px;*/
	}

/*		div.match div.team.home {
			height: 16px;
			line-height: 16px;
		}
*/
		div.match div.teamgap {
			height: 2px;
			background-color: black;
		}

		div.match div.team div.prefix {
			width: 20px;
			background-color: #3f423e;
			text-align: center;
			border-right: 2px solid black; /*#6b7069*/
			font-size: .7rem;
		}
			div.match div.team div.prefix.boardnumber {
				color: #f5d418;
			}
			div.match div.team div.prefix.matchnumber {
				color: #94f7f1;
			}

		div.match div.team div.dropin {
			width: 20px;
			color: aqua;
			background-color: #2b2e2a;
			text-align: center;
			border-right: 2px solid black;
			font-size: .7rem;
		}

		div.match div.team.home {
			/*border-top: 2px solid black;*/
		}

		div.match div.team div.name {
			width: 135px;
			max-width: 135px;
			/*width: 225px;*/
			/*max-width: 225px;*/
			overflow-x: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			padding: 0px 2px;
			background-color: #2b2e2a;
			/*background-color: #b8b7b6;*/
			color: white;
		}
			div.match div.team div.name.winner {
				/*color: #4fa340;*/
				/*background-color: #1c630f;*/
			}
			div.match div.team div.name.loser {
				/*background-color: #63120f;*/
			}

		div.match div.team div.score {
			/*width: 20px;*/
			width: 18px;
			text-align: right;
			padding: 0px 2px;
			/*background-color: #4f010b;*/
			background-color: #3f423e;
			border-left: 2px solid black;
		}

			div.match div.team div.score.winning {
				background-color: #0c4f01;
			}

	div.match div.team div.score.winner {
		background-color: #0c4f01;
	}

	div.match div.team div.score.loser {
		background-color: #4f010b;
	}
	
	div.match div.footer {
		display: flex;
		flex-direction: row;
		width: 155px;
		/*height: 10px;*/
		/*font-size: 9px;*/
		height: 6px;
		font-size: .9rem;
		justify-content: flex-start;
		gap: 0px;
	}

		div.match div.footer div.filler {
			display: flex;
			flex-direction: row;
			width: 116px;
			height: 6px;
			line-height: 6px;
			vertical-align: top;
			padding-left: 1px;
			margin-top: 4px;
			color: cadetblue;
		}
			div.match div.footer div.filler div {
				/*width: 35px;*/
			}

		div.match div.footer div.winslosses {
			display: flex;
			flex: 1;
			gap: 2px;
			width: 21px;
			margin-top: 1px;
			/*align-self: flex-end;*/
			/*align-items: flex-end;*/
		}

	div.match div.winslosses div.result {
		width: 6px;
		height: 6px;
		/*margin-bottom: 2px;*/
	}

		div.match div.winslosses div.result.loss {
			background-color: #4f010b;
		}

		div.match div.winslosses div.result.win {
			background-color: #0c4f01;
		}

	div.match.disabled {
		opacity: .6;
	}

div.hidden {
	display: none;
}

.no-close .ui-dialog-titlebar-close {
	display: none;
}

div.matchdetails {
	display: none;
	font-size: 1rem;
}

	div.matchdetails div.boardandtime {
		display: flex;
		margin-bottom: 10px;
	}

		div.matchdetails div.boardandtime div.field {
			display: flex;
			flex-direction: column;
		}

			div.matchdetails div.boardandtime div.field label {
				width: 75px;
			}

			div.matchdetails div.boardandtime div.field input.board {
				text-align: center;
				width: 35px;
				padding: 0px;
			}

			div.matchdetails div.boardandtime div.field input.time {
				width: 100px;
			}

	div.matchdetails div.gamesheader {
		font-size: 1.8rem;
		text-decoration: underline;
		margin-bottom: 10px;
	}

	div.matchdetails table td select {
		min-width: 205px;
		max-width: 205px;
	}

	div.matchdetails table td input {
		font-size: .9rem;
	}

	div.matchdetails table td.score input {
		width: 35px;
		padding: 0px;
		text-align: center;
	}

	div.matchdetails table td input.teamname {
		width: 205px;
	}

	div.matchdetails div.buttons {
		margin-top: 20px;
		display: flex;
		flex-direction: row;
		gap: 10px;
	}

	div.matchdetails.disabled {

	}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

input[type=number] {
	-moz-appearance: textfield;
}

@media all and (display-mode: fullscreen) {
	div.bracketcontainer {
		height: calc(100vh - 135px);
		max-height: calc(100vh - 135px);
	}
}

div.unavailableboard {
	position: absolute;
	top: 10px;
	right: -50px;
	z-index: 999;
	border-radius: 10px;
	padding: 5px;
	white-space: nowrap;
	background-color: darkred;
	color: white;
	opacity: .7;
}

@media (max-width: 400px) {
	div .bracketcontainer {
		overflow: auto;
		height: calc(100vh - 75px);
		max-height: calc(100vh - 75px);
	}
}