:root {
	--bgcolor: rgb(251, 251, 251);
	--lightorange: #FFC670;
	--orange: #FF9900;
	--stddiagramwidth: 34rem;
}

@keyframes removeholo {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes movedown {
	0% {
		transform: translateY(0);
	}

	100% {
		transform: translateY(20px);
	}
}

@keyframes showholo {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes moveup {
	0% {
		opacity: 0;
		transform: translateY(20px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

.animateremove {
	animation: removeholo 0.2s ease !important;
}

.animateremove>* {
	animation: movedown 0.2s ease !important;
}

html {
	background-color: var(--bgcolor);
}

.ownbrdres {
	background-color: #FFCC80;
}

.plylist {
	margin-top: 1rem;
	width: 100%;
	justify-content: center;
	align-content: flex-start;
	align-items: center;
	display: inline-grid;
	grid-template-columns: repeat(2, auto);
}

.plyhead {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	padding: 1rem;
	background-color: whitesmoke;
	border-bottom: thin solid black;
}

.plylist:not(.teamplylist) .plyteam {
	display: none;
}

.plylisthead {
	font-weight: bold;
	grid-column: span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.teamplylist .plylisthead {
	grid-column: span 3;
}

.plydiv {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	flex-direction: column;
	padding: 0.7rem;
}

.plyteam {
	align-items: center;
}

.plynr {
	align-items: flex-end;
}

.teamplylist {
	grid-template-columns: repeat(3, auto);
}

.teamplylist .plylisthead {
	grid-column: span 3;
}

.rudersyv {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	font-weight: bold;
}

.rudersyv img {
	width: 7rem;
	margin: 1rem;
}

.turinfo.director>.director>div,
.turinfo.director>.clsdirector>div {
	padding-top: 0;
	padding-left: 0;
	padding-right: 0;
}

.turinfo.director>.director,
.turinfo.director>.clsdirector {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	padding-bottom: 0;
}

.turinfo:not(.director)>.director,
.turinfo:not(.clsdirector)>.clsdirector {
	display: none !important;
}

.turinfo {
	display: grid;
	grid-template-columns: auto auto;
	grid-auto-flow: row dense;
	justify-content: center;
}

.turinfo a:visited {
	color: blue;
}

.turinfo * {
	padding: 0.5rem;
}

.turcontact {
	text-align: center;
	padding: 3rem 1rem 1rem 1rem;
}

.turcontact.seccontact {
	padding-top: 1rem;
}

.turinfo .fontl {
	font-weight: bold;
	display: flex;
	justify-content: center;
	grid-column: 1/3;
	padding-top: 2rem;
}

.turinfo.morecls .clsunnes {
	display: none;
}

#content.contdists {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

#content.contdefault,
#content.contcrtbl {
	display: -webkit-inline-flexbox;
	display: inline-flex;
	flex-direction: column;
	/*grid-template-rows: 1fr auto;
    /*
    grid-template-rows: minmax(-webkit-min-content, 1fr) minmax(58px, -webkit-max-content);
    grid-template-rows: minmax(-moz-min-content, 1fr) minmax(58px, -moz-max-content);
    grid-template-rows: minmax(min-content, 1fr) minmax(58px, max-content);
    
    grid-template-columns: minmax(100%, auto);*/
	align-items: center;
	justify-content: center;
}

#content.contbrdzttl {
	display: grid;
	overflow-x: auto;
	overflow-y: hidden;
	width: 100%;
	height: 100%;
	justify-content: stretch;
	grid-auto-flow: row dense;
	grid-template: calc(100% - 58px) 58px/minmax(auto, 1fr) minmax(min-content, 1.5fr);
}

#content.contbrdzttl .footer {
	margin: 0;
	height: 100%;
	grid-column: span 2;
}

body.contbrdzttl {
	width: 100% !important;
	height: 100% !important;
}

.plyttip {
	z-index: 1000;
	position: fixed;
	background-color: white;
	padding: 2rem;
	border: thin solid black;
}

.mobgewscorettip,
.gewscorettip {
	z-index: 1000;
	position: fixed;
	background-color: white;
	padding: 2rem;
	border: thin solid black;
}

.gewscorettip td.nobr {
	display: inline-block;
}

.mobgewscorettip td,
.gewscorettip td {
	padding: 0.5rem;
}

.mobgewscorettip th,
.gewscorettip th {
	background-color: lightgray;
	border-bottom: thin solid black;
	padding: 0.5rem;
}

.mobgewscorettip td:nth-of-type(1),
.mobgewscorettip td:nth-of-type(4),
.mobgewscorettip td:nth-of-type(3),
.gewscorettip td:nth-of-type(1),
.gewscorettip td:nth-of-type(4),
.gewscorettip td:nth-of-type(3) {
	text-align: right;
}

.mobgewscorettip {
	display: none;
}

.brdzttlres {
	/*
	display: flex;
	align-items: center;
	*/
	display: inline-block;
	margin-left: 1.5rem;
	justify-self: start;
	width: auto;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: auto;
	padding-right: 2rem;
	max-height: 100%;
	z-index: 1;
}

.divrestbl .gewscore.brdzttlgewscore::after {
	content: attr(data-useafter);
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	text-decoration: underline;
}

.divrestbl .gewscore.brdzttlgewscore {
	grid-column: span 4;
}

div.brdzttlgewscore:not(.gewscore) {
	display: none;
}

.brdzttlgewscore {
	text-decoration: underline;
	text-align: center;
}

.tsckontraktpadding.gewscore:hover,
.gewscore.lightup {
	font-weight: bold;
	color: var(--orange);
}

.strikeout {
	background: -o-linear-gradient(to bottom, black 0%, black 100%);
	background: -webkit-linear-gradient(to bottom, black 0%, black 100%);
	background: -moz-linear-gradient(to bottom, black 0%, black 100%);
	background: linear-gradient(to bottom, black 0%, black 100%);
	background-size: 100% 2px;
	background-position: center;
	background-repeat: no-repeat;
}

.brdzttlres div.newverfboard {
	border-top: 0.5rem solid lightgray;
}

.brdzttlres div.gewscore.kontrakt,
.brdzttlres div.gewscore.score,
.brdzttlres div.gewscore.lead {
	display: none !important;
}

.divrestbl {
	margin: auto;
	justify-content: center;
	align-content: center;
	grid-template-columns: repeat(8, auto);
	display: inline-grid;
	grid-auto-flow: dense;
}

.divrestbl.indirestbl {
	grid-template-columns: repeat(10, auto);
}

.divrestbl.teambrestbl {
	grid-template-columns: repeat(7, auto);
}

.divrestbl.teambrestbl.bzttlmetabutler {
	grid-template-columns: repeat(9, auto);
}

.divrestbl.teambrestbl :nth-child(22n+20),
.divrestbl.teambrestbl :nth-child(22n+21),
.divrestbl.teambrestbl :nth-child(22n+22),
.divrestbl.teambrestbl :nth-child(22n+23),
.divrestbl.teambrestbl :nth-child(22n+24),
.divrestbl.teambrestbl :nth-child(22n+25),
.divrestbl.teambrestbl :nth-child(22n+26),
.divrestbl.teambrestbl :nth-child(22n+27),
.divrestbl.teambrestbl :nth-child(22n+28),
.divrestbl.teambrestbl :nth-child(22n+29),
.divrestbl.teambrestbl :nth-child(22n+30) {
	border-bottom: thin solid gray;
}

#tbrdres {
	grid-column: span 2;
}

.brdzttldia {
	user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	justify-self: end;
	align-self: center;
	width: 100%;
	height: auto;
	max-height: 100%;
	flex-shrink: 0;
	text-align: center;
	overflow-x: auto;
	z-index: 2;
}

.brdzttldia.brdzttlnodeal {
	overflow: visible;
}

.noinit {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
	text-align: center;
	margin: auto;
}

.brdzttldia>diagram {
	padding-bottom: 0rem;
}

#brdzttlnavright:not(.inactive)::before {
	white-space: pre;
	content: attr(data-nr) " ";
}

#brdzttlnavleft:not(.inactive)::after {
	white-space: pre;
	content: " "attr(data-nr);
}

.brdzttlnav {
	width: 100%;
	flex-shrink: 0;
	flex-wrap: nowrap;
	margin: auto;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	justify-content: center;
}

.brdzttlnav>div {
	max-width: 100%;
	justify-content: center;
	padding: 1rem 0;
	display: flex;
	flex-shrink: 0;
	margin: auto unset;
	flex-wrap: wrap;
}

.brdzttlnav p {
	padding: 0 1rem;
	margin: 0;
	display: inline-block;
	flex-shrink: 0;
	margin: auto;
}

a.contlink {
	height: 3rem;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	margin: auto unset;
	cursor: pointer;
	padding: 0.5rem 1rem;
	background-color: lightgrey;
	text-decoration: none;
	color: inherit;
	font-weight: bold;
	border: 1px solid gray;
}

a.contlink.inactive {
	background-color: whitesmoke;
	cursor: default;
}

.opt,
.optshow {
	display: none;
}

.seldiv {
	padding: 0.5rem;
	display: block;
	width: 100%;
	align-self: flex-start;
}

.seldiv select {
	align-self: flex-start;
}

.alleft {
	text-align: left;
}

.alright {
	text-align: right;
}

.tdvar::before {
	content: attr(data-long);
}

.nobr {
	display: inline;
	white-space: pre;
}

.fontl {
	font-size: 2.4rem;
}

.brdzttldia select {
	text-align-last: right;
	padding: 0.1rem 0rem;
	margin-right: 1rem;
	font-size: 110%;
}

.brdzttldia select option,
.prvrndleft select option {
	direction: rtl;
}

.thisseltr td {
	padding-top: 1rem;
	font-size: 2.1rem;
}

.thisseltr select {
	font-size: 1.7rem;
}

.prvscore select {
	padding: 0.1rem 1rem;
	font-size: 90%;
}

select option {
	font-size: 20px;
	line-height: 30px;
	margin-left: 1rem;
	margin-right: 1rem;
}

.fontm {
	font-size: 2rem;
	line-height: 2.2rem;
}

.fonts {
	font-size: 1.5rem;
}

.boardzteamtrbor td {
	border-bottom: groove 1.0pt;
}

.restbl td {
	padding-top: 0.8rem;
	padding-bottom: 0.8rem;
}

.matchresspctr {
	padding-bottom: 20pt;
	display: block;
}

th.durchganghead {
	padding-top: 2rem;
	padding-bottom: 1rem;
}

thead.subtur:nth-child(3n+5)>tr>th {
	padding-top: 5rem;
}

.grtbl>td {
	border-bottom: 1px groove;
}

table.collmatchrestbl:not(.klmtres)>.subtur {
	display: none !important;
}

.matchrestbl .segopt {
	display: none;
}

td.atpaar {
	vertical-align: baseline;
	text-align: right;
	padding: 2rem;
}

.paarresprvlnk {
	display: none;
}

td.rang {
	font-weight: bold;
}

td.paaratpaar {
	white-space: nowrap;
	padding: 1rem 1rem 1rem 1rem;
}

td.board {
	font-weight: bold;
	padding-left: 5.0pt;
	padding-right: 12.0pt;
	text-align: center;
	vertical-align: baseline;
}

.paarwertungatpaar {
	padding-left: 0.8rem;
	padding-right: 0.8rem;
	text-align: right;
	vertical-align: baseline;
	white-space: nowrap;
}

td.teamwertung,
.divrestbl .teamwertung {
	padding-left: 0.8rem;
	padding-right: 0.8rem;
	text-align: right;
	vertical-align: baseline;
}

div.brdzttlres div {
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}

td.paarnummer,
.brdzttlres .paarnummer {
	font-weight: bold;
	padding-left: 5.0pt;
	padding-right: 5.0pt;
	text-align: right;
	vertical-align: baseline;
}

.teambrestbl .teamnr::after {
	content: attr(data-stnr);
}

.brdzttlres .kontrakt {
	white-space: nowrap;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	text-align: center;
	vertical-align: baseline;
}

.brdzttlres .kontrakt:not(.gewscore) {
	text-align: left;
}

.pairhead th {
	padding: 2rem 1rem 1rem 1rem;
	background-color: whitesmoke;
	border-bottom: thin gray solid;
}

td.score,
.brdzttlres .score {
	padding-left: 0.7rem;
	padding-right: 0.7rem;
	min-width: 6.5rem;
	text-align: right;
	vertical-align: baseline;
}

.score.splitscore {
	display: flex;
	flex-direction: row;
}

.score.splitscore::before {
	content: '/ ';
	flex-grow: 1;
	display: inline-block;
	text-align: left;
	white-space: pre;
}

th.score,
.bzttldatescore {
	font-weight: normal;
	padding-top: 1rem;
}

.teamrestbl:not(.multigroupres)>thead.multigroupres,
.pairtbl:not(.multigroupres)>thead.multigroupres,
.teamrestbl:not(.teamcarryover) .carryover {
	display: none !important;
}

thead.multigroupres th {
	padding-top: 2rem;
}

.teamrestbl th.ueberschrift {
	padding-bottom: 1rem;
}

.teamrestbl th.atteam {
	border-bottom: thin gray solid;
	background-color: whitesmoke;
	padding: 2rem 1rem 1rem 1rem;
}

.teamrestbl:not(.teamcp) .teamcp {
	display: none;
}

.teamrestbl.hideimpucol .impucol {
	display: none !important;
}

.teamrestbl tr.link td:not(.fonts) {
	padding: 1rem;
}

.livetblcurresult.curresplus {
	background-color: #A9FF57;
}

.livetblcurresult.curresminus {
	background-color: #FF5957;
}

.teamrestbl .teamplname,
.plylist .teamplname:nth-child(1n+2) {
	padding-top: 0.2rem;
}

.teamrestbl tr.link:not(.teamresfinalrow)>td.teamresfinal,
.teamrestbl tr.link.teamresfinalrow>td.teamresvp {
	display: none !important;
}

tr.teamresfinalrow>td.teamresfinal {
	white-space: pre-wrap;
	text-align: center;
	font-size: 0.8em;
}

td.atteam {
	text-align: right;
	padding-left: 3.0pt;
	padding-right: 3.0pt;
}

.restbl:not(.bzttlmetadate) .bzttldatescore,
.restbl:not(.bzttlmetabutler) .bzttlbutler,
.restbl:not(.bzttlmetabutler) .paarwertungatteam,
.divrestbl:not(.bzttlmetadate) .bzttldatescore,
.divrestbl:not(.bzttlmetabutler) .bzttlbutler,
.divrestbl:not(.bzttlmetabutler) .paarwertungatteam {
	display: none;
}

.bztdatescore {
	grid-column: 6/8;
}

.divrestbl:not(.bzttlmetadate) .bztdatescore {
	display: none !important;
}

td.paarwertungatteam,
.divrestbl .paarwertungatteam {
	white-space: nowrap;
	text-align: right;
}

td.pairborder {
	border-left: solid lightgray 2px;
}

td.paaratteam {
	content: attr(data-short);
	white-space: nowrap;
	padding-left: 3.0pt;
	padding-right: 3.0pt;
}

td.team {
	padding: 1.5rem;
	text-align: left;
	white-space: nowrap;
}

td.teamnr {
	padding-left: 7.0pt;
	padding-right: 7.0pt;
	text-align: center;
}

td.teamnrtrenner {
	font-style: normal;
	font-weight: normal;
	padding-left: 0;
	padding-right: 0;
	text-align: center;
}


td.teamtrenner {
	font-style: normal;
	font-weight: bold;
	padding-left: 0;
	padding-right: 0;
	text-align: center;
}

table.segment {
	width: 100%;
	height: 100%;
}

table.segment tr td {
	height: 100%;
}

td.impres,
td.vpres {
	font-weight: bold;
	text-align: center;
	border-top: solid black 1.0pt;
	padding-top: 0.8rem !important;
	padding-bottom: 0.8rem !important;
}

tbody.thistquali td.impres,
tbody.thistquali td.vpres {
	border-bottom: solid black 1.0pt;
}

td.impresplus {
	padding-left: 0.4rem;
	padding-right: 0.3rem;
}

td.impresminus {
	padding-left: 0.3rem;
	padding-right: 0.4rem;
}


td.vpplus,
td.vp,
td.vpminus,
td.vpres,
td.vppluslast,
td.vplast,
td.vpminuslast {
	background-color: #DBDBCA;
	background-color: #EDEDDA;
}

td.vpplus,
td.vp,
td.vpminus {
	border-bottom: groove 1.0px;
}

.teamhistmeta:not(.thistbam) td.vpplus,
.teamhistmeta:not(.thistbam) td.vpres:not(.bamcol),
.teamhistmeta:not(.thistbam) td.vppluslast {
	border-left: groove 1.0px;
}

td.impsminus,
td.impresminus,
td.impsminuslast {
	border-right: groove 1.0px;
}

td.impsplus,
td.imps,
td.impsminus,
td.impsminuslast,
td.impslast,
td.impspluslast,
td.impres {
	background-color: #EDEDDA;
	background-color: whitesmoke;
}

td.impsplus,
td.imps,
td.impsminus {
	border-bottom: groove 1.0px;
}

td.segment {
	width: 8pt;
	padding-left: 0;
	padding-right: 0;
	text-align: center;
}

td.segmentplus {
	width: 50%;
	text-align: right;
}

td.segmentminus {
	width: 50%;
	text-align: right;
}

td.vp,
td.vplast,
td.imps {
	text-align: center;
}

td.vpplus,
td.vppluslast,
td.impsplus,
td.impspluslast,
td.vpminus,
td.vpminuslast,
td.impsminus,
td.impsminuslast {
	text-align: right;
}

td.imps,
td.vp {
	padding-left: 0.1rem;
	padding-right: 0.1rem;
}

td.vpminus,
td.impsminus,
td.impresminus {
	padding-left: 0.3rem;
	padding-right: 0.4rem;
}

td.vpplus,
td.impsplus,
td.impresplus {
	padding-left: 0.4rem;
	padding-right: 0.3rem;
}

td.histhead {
	font-weight: bold;
}

td.subtur {
	padding: 1rem;
	text-align: left;
	white-space: nowrap;
}

td.subtur::after {
	content: ':';
}

td.besetzung {
	padding-bottom: 1rem;
}

.mobilebesetzung {
	display: none;
}

.thistmeta.thistadj>tbody.thisttbl:nth-last-child(3)>tr:nth-last-child(1)>td,
.thistmeta.thistadjquali>tbody.thisttbl.thistquali:nth-child(4)>tr:nth-last-child(1)>td {
	border-bottom: 2px solid black;
}

.thistmeta:not(.thistadj) tbody.thisadj:not(.thistquali),
tbody.thisttbl.thisadj:not(.thisco) tr.thisco,
.thistmeta:not(.thistmulticls)>.thistquali,
tbody.thisttbl.thisadj:not(.thisbye) tr.thisbye,
.thistmeta:not(.thistadjquali)>tbody.thisadj.thistquali,
tbody.thisttbl:not(.spmatch) td.spcol,
table.thistmeta>thead:not(.spmatch) th.spcol {
	display: none !important;
}

tbody.thisttbl:not(.spmatch) td.impsminus,
tbody.thisttbl:not(.spmatch) td.impresminus {
	border-right: none;
}

.thistmeta.teamhistbam .impres,
.thistmeta.teamhistbam .impsplus,
.thistmeta.teamhistbam .imps,
.thistmeta.teamhistbam .impsminus,
.thistmeta.teamhistbam th.matchres:nth-last-child(2),
.thistmeta:not(.teamhistbam) .bamcol {
	display: none !important;
}


/* Unschöner Fix für den Fall eines TeamIMP-Events mit Adjustierungen:
Werte in SP-Spalten, IMP-Spalten display:none, Änderung der Farbe */
tbody.thisttbl:not(.spmatch)>tr.thisadj>td.vpplus,
tbody.thisttbl:not(.spmatch)>tr.thisadj>td.vpminus,
tbody.thisttbl:not(.spmatch)>tr.thisadj>td.vp {
	background-color: whitesmoke;
	border: none;
}

.thistmeta.thistqualiadj>tbody.thisttbl.thistquali>tr:nth-last-child(1)>td {
	border-bottom: 2px solid black;
}

table.collmatchrestbl.bamatch .impcol,
tbody.matchrestbl .opt,
thead.reshead:not(.spmatch) .sphead,
tbody.matchrestbl:not(.spmatch) .vpplus,
tbody.matchrestbl:not(.spmatch) .vp,
tbody.matchrestbl:not(.spmatch) .vpminus {
	display: none;
}

tbody.matchrestbl:not(.spmatch) .impsminus {
	border-right: none;
}

tbody.matchrestbl td:not(.segcontain),
tbody.thisttbl td:not(.segcontain) {
	padding-top: 0.6rem;
	padding-bottom: 0.6rem;
}

table.collmatchrestbl th.matchres,
table.thistmeta:not(.thistmulticls) th.matchres,
table.thistmeta.thistmulticls>thead.thistquali th {
	font-weight: bold;
	padding: 1.0rem 0.2rem 0.5rem 0.2rem;
}

th.atteam {
	font-weight: bold;
}

#tbrdres::after {
	content: attr(data-result);
}

.boardz {
	text-align: center;
	padding: 1rem 0.5rem;
	border-bottom: thin solid black;
}

th.res {
	font-size: 1rem;
	padding: 5.0pt 3.0pt 0.0pt 3.0pt;
}

table.page {
	border-width: 1px;
	border-style: solid;
	border-color: black;
}

.pairtbl:not(.butlertbl) tbody tr:nth-child(5n):not(:last-child) td:not(.paarresprvlnk),
.pairtbl:not(.fullbutler) tbody tr:nth-child(5n):not(:last-child) td:not(.paarresprvlnk),
.pairtbl.butlertbl.fullbutler tbody tr.butlerregscore:nth-of-type(10n+9):not(:nth-last-child(2)) td,
.pairtbl.butlertbl.fullbutler tbody tr:not(.butlerregscore):nth-of-type(10n+9):not(:nth-last-child(2)) td {
	border-bottom: 1px solid darkgray;
}

.pairtbl.pairnoseccol .paarcol2 {
	display: none !important;
}

table.pairtbl thead:not(.cphead) .cpth,
table.pairtbl tbody:not(.cphead) .paircp {
	display: none;
}

table.pairtbl:not(.butlerco) .carryover {
	display: none !important;
}

table.pairtbl td:not(.paarresprvlnk):not(.optshow) {
	padding: 1rem;
}

table.pairtbl td.butlerboards:not(.optshow) {
	padding-right: 4rem;
}

table.pairtbl th {
	padding-bottom: 1rem;
	white-space: pre-wrap;
}

.dists {
	display: grid;
	width: 100%;
	grid-template-columns: repeat(auto-fit, minmax(var(--stddiagramwidth), auto));
	margin: auto;
	justify-items: center;
	justify-content: center;
}

.dists .diagram {
	margin: 0.5rem;
}

@media screen and (min-width:700px) {
	html:not(.app) .dists .diagram:hover {
		transform: translate(-5px, -5px);
		box-shadow: 5px 5px 5px grey;
		cursor: pointer;
	}
}

.number {
	display: inline-block;
	align-self: center;
	background: white;
	grid-column: 2/3;
	grid-row: 2/3;
}

.diagram {
	flex-shrink: 0;
	border-width: 1px;
	border-style: solid;
	border-color: gray;
	background-color: white;
	font-size: 1.8rem;
	width: var(--stddiagramwidth);
	height: var(--stddiagramwidth);
	align-items: stretch;
	display: inline-grid;
	grid-template-columns: 36.5fr 27fr 3.5fr 33fr;
	grid-template-rows: 1fr 1fr 1fr;
}

.diainfo {
	grid-row: 1/ 2;
	grid-column: 1 /2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.diainfo .num {
	font-weight: bold;
	font-size: 3rem;
}

.diagram .diainfo .other::before {
	content: attr(data-dealer);
}

.diagram .diainfo .other::after {
	content: attr(data-vul);
}

.diainfo .other {
	font-style: italic;
	font-size: 1.8rem
}

.cardtbl {
	display: grid;
	line-height: 2.5rem;
	grid-template-columns: 2rem 1fr;
	grid-template-rows: auto auto auto auto;
	align-self: center;
	text-align: left;
	padding-left: 1rem;
	width: 100%;
}

.crddiv {
	max-width: 10rem;
	overflow: hidden;
}

.lastcardtbl {
	grid-row: 3/ 4;
	grid-column: 2 /4;
}

.diagram.nopar>.doubledummy {
	display: none !important;
}

.ddtblhead {
	font-size: 0.8rem;
}

.diamiddle {
	text-align: center;
	vertical-align: center;
	border: thin solid gray;
	font-size: 2rem;
	font-weight: bold;
	grid-row: 2/ 3;
	grid-column: 2 /3;
	justify-self: center;
	align-self: center;
	width: calc(8*100%/9);
	height: calc(8*100%/11);
	display: grid;
	grid-template-columns: 20% 60% 20%;
	grid-template-rows: 20% 60% 20%;
	place-content: stretch;
	grid-gap: 0;
}

.diamiddle .botm,
.diamiddle .topm,
.diamiddle .midl,
.diamiddle .midr {
	line-height: 100%;
	font-size: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.diagram:not(.dealn) .diamiddle .topm div,
.diagram:not(.dealo) .diamiddle .midr div,
.diagram:not(.deals) .diamiddle .botm div,
.diagram:not(.dealw) .diamiddle .midl div {
	display: none;
}

.diagram.vulns .diamiddle .botm,
.diagram.vulns .diamiddle .topm,
.diagram.vulall .diamiddle div:not(.number),
.diagram.vulow .diamiddle .midr,
.diagram.vulow .diamiddle .midl {
	background-color: red;
	color: white;
}

.diagram.vulns .diamiddle .botl,
.diagram.vulow .diamiddle .topr {
	background: linear-gradient(to bottom right, #fff 0%, #fff 50%, red 50%, red 100%);
}

.diagram.vulns .diamiddle .topl,
.diagram.vulow .diamiddle .botr {
	background: linear-gradient(to top right, #fff 0%, #fff 50%, red 50%, red 100%);
}

.diagram.vulns .diamiddle .botr,
.diagram.vulow .diamiddle .topl {
	background: linear-gradient(to bottom left, #fff 0%, #fff 50%, red 50%, red 100%);
}

.diagram.vulns .diamiddle .topr,
.diagram.vulow .diamiddle .botl {
	background: linear-gradient(to top left, #fff 0%, #fff 50%, red 50%, red 100%);
}

.doubledummy {
	align-self: end;
	grid-row: 3/ 4;
	grid-column: 4 /5;
	padding-bottom: 1rem;
	border-spacing: 1px;
	text-align: right;
	margin-right: 1px;
}

.diagrampar {
	padding: 2px;
	grid-row: 3/ 4;
	grid-column: 1 /2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.diagrampar div {
	display: inline;
}

.doubledummy * {
	font-size: 1.3rem;
}

.crtblteamtd {
	border-right: 2px solid black;
	white-space: pre;
	font-style: normal;
	font-weight: bold;
	text-align: right;
	padding: 1rem 0.5rem;
	vertical-align: middle;
}

.crtbltd {
	border-bottom: 2px solid black;
	white-space: pre;
	font-style: normal;
	font-weight: bold;
	padding: 0.2rem 0.6rem;
	vertical-align: middle;
}

.crosstbl>thead>tr> :first-child {
	border-right: 2px solid black;
	border-bottom: 2px solid black;
}

.crtblmatch {
	white-space: pre;
	font-style: normal;
	font-weight: normal;
	padding: 0.2rem;
	text-align: center;
	vertical-align: middle;
}

.crtblmatch div {
	padding: 0.2rem 0.3rem;
}

.crtblmatch :nth-child(2) {
	background-color: #FFE6A8;
	width: 100%;
}

.crtblnomatch {
	padding: 0 0.2rem;
	text-align: center;
	vertical-align: middle;
}

.crtblnvrmatch {
	background-color: darkgray;
}

.notyetplayed {
	background-color: rgb(240, 240, 240);
}

.contenttable.tscmeta:not(.tsclive) .liveopt {
	display: none !important;
}

.contenttable.tscmeta.tsclive .liveopt {
	display: block;
}

.tscvisit.notyetplayed:not(.abrzttlinverse):not(.tscbutler),
.tschome.notyetplayed.abrzttlinverse:not(.tscbutler) {
	background-color: #A3FF7577;
}

.tschome.notyetplayed:not(.abrzttlinverse):not(.tscbutler),
.tscvisit.notyetplayed.abrzttlinverse:not(.tscbutler) {
	background-color: #FFF8A877;
}

.tscsegment {
	grid-area: 3/1/4/4;
	display: grid;
	justify-content: center;
	grid-template: 100%/auto auto auto;
	padding: 1rem 0.7rem 0.7rem 1rem;
}

.tscsegplus {
	user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	grid-area: 1/3/2/4;
}

.tscsegminus {
	user-select: none;
	-ms-user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	grid-area: 1/1/2/2;
}

.tscsegdesc {
	grid-area: 1/2/2/3;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	padding: 0.7rem 2rem;
}

.tscmeta:not(.noseg) .tscsegminus,
.tscmeta:not(.noseg) .tscsegplus {
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	padding: 0.7rem 3rem;
}

.tscmeta:not(.noseg):not(.segp) .tscsegminus,
.tscmeta:not(.noseg):not(.segm) .tscsegplus {
	background-color: lightgray;
	cursor: pointer;
}

.tscmeta.segp .tscsegminus,
.tscmeta.segm .tscsegplus {
	background-color: whitesmoke;
	color: darkgray;
}

.tscgrid:not(.tscmetadatescore) #tscdatumhead,
.tscgrid:not(.tscmetadatescore) .tscdatescore,
.tscgrid:not(.tscmetabutler) .tscbutler,
.tscgrid:not(.tscmetabutler) .tscwide,
.tscgrid:not(.tscmetabutler) .tscbutlerhead,
.tscgrid:not(.tscmetabutler) .tscwide,
.tscgrid:not(.tscmetabutler) .tscwide,
.tscmeta.noseg .tscsegment,
.tscmeta.noseg .tscsegsum {
	display: none;
}

#tscmatchhome,
#tscmatchvisit {
	font-style: normal;
	font-weight: bold;
	padding: 0.7rem 1rem 0.7rem 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tscpaar {
	white-space: normal;
	border: solid white 0.5pt;
	display: flex;
	align-items: center;
	padding: 0.7rem 1rem 0.7rem 1rem;
}

.tscmeta {
	display: grid;
	justify-items: center;
	justify-content: center;
	align-items: center;
	grid-template: auto 5rem auto/auto;
}

.tscheadbar {
	justify-content: center;
	width: intrinsic;
	width: -moz-fit-content;
	width: -webkit-fit-content;
	width: fit-content;
	min-width: 50rem;
	display: grid;
	grid-template: 1fr 1fr minmax(2rem, auto) auto 1fr 1fr / 1fr auto 1fr;
}

.tscgrid {
	grid-row: 3;
	width: auto;
	width: intrinsic;
	width: -moz-fit-content;
	width: -webkit-fit-content;
	width: fit-content;
	height: auto;
	display: grid;
	grid-template-rows: 1fr 1fr 1fr;
	grid-auto-rows: auto;
	border-top: thin solid gray;
}

.tscgrid.tscmetabutler {
	grid-template-columns: auto 1fr 1fr auto auto 1.5fr 1.5fr 5rem 5rem 1.5fr 1.5fr auto auto 1fr 1fr;
}

.tscgrid.tscmetabutler.tscmetadatescore {
	grid-template-columns: auto auto 1fr 1fr auto auto 1.5fr 1.5fr 5rem 5rem 1.5fr 1.5fr auto auto 1fr 1fr;
}

.tscgrid:not(.tscmetabutler) {
	grid-template-columns: auto auto auto 1.5fr 1.5fr 5rem 5rem 1.5fr 1.5fr auto auto;
}

.tschead {
	text-align: center;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 1rem;
}

.tschead:nth-of-type(1n+9) {
	border-bottom: solid thin gray;
}

.tscres {
	display: grid;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1.6rem;
	grid-template: auto / 1fr auto 1fr;
}

.tscres div {
	display: flex;
	align-content: center;
	justify-content: center;
	white-space: pre;
}

.tscmeta:not(.novp) #tscresvp,
.tscmeta.novp #tscresimp {
	font-weight: bold;
}

.tscmeta.novp #tscresvp,
.tscmeta.noimp #tscresimp {
	display: none;
}

.tscmeta.noimp #tscresvp,
.tscmeta.novp #tscresimp {
	grid-row: span 2;
}


.tschomeimp,
.tscvisitimp {
	border-bottom: thin gray solid;
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.tschomeimp {
	border-right: solid black 0.07rem;
}

.tscvisitimp {
	border-left: solid black 0.07rem;
}

.tscotseg {
	background-color: lightgray;
	padding: 1rem;
	text-align: center;
	cursor: pointer;
	text-decoration: underline;
}

.tscvisit:not(.abrzttlinverse):not(.notyetplayed),
.tschome.abrzttlinverse {
	background-color: #A3FF75;
}

.tschome:not(.abrzttlinverse):not(.notyetplayed),
.tscvisit.abrzttlinverse {
	background-color: #FFF8A8;
}

.tscfirstsumrow {
	margin-top: 1rem;
}

.tsccarryoverrow {
	font-style: italic;
}

.tscabrzttladj.tscsumrowsum {
	font-weight: bold;
}

.tscsegsum {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-weight: bold;
	padding: 0.5rem 1rem;
	/*border-left: thin solid gray;
	border-bottom: thin solid gray;*/
}

.tscabrzttladj {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0.5rem 1rem;
	border: none !important;
	text-align: right;
	/*border-left: thin solid gray;
	border-bottom: thin solid gray;*/
}

.tscabrzttladj.tscopt,
.tscsegsum.tscopt,
.tschomeimp.tscopt,
.tscvisitimp.tscopt {
	display: none;
}

.tscimpend {
	border-top: 0.07rem solid black;
	text-align: right;
}

.tscimpend.tscthintopborder {
	border-top: thin solid gray;
}

.tscimpend.tscthintopborder:not(.tscsumrowwithbottomborder) {
	border-bottom: none !important;
}

.tscsumrowintermediatesum {
	font-style: italic;
}

.tscmetabutler .tscabrzttladj {
	grid-column: 1/8;
}

.tscmetabutler.tscmetadatescore .tscabrzttladj {
	grid-column: 1/9;
}

.tscgrid:not(.tscmetabutler) .tscabrzttladj {
	grid-column: 1/6;
}

.tscmetabutler .tscsegsum {
	grid-column: 5/8;
}

.tscmetabutler.tscmetadatescore .tscsegsum {
	grid-column: 6/9;
}

.tscgrid:not(.tscmetabutler) .tscsegsum {
	grid-column: 3/6;
}

.tscmetabutler .tscimpend.tschomeimp {
	grid-column: 8/9;
}

.tscmetabutler.tscmetadatescore .tscimpend.tschomeimp {
	grid-column: 9/10;
}

.tscmetabutler .tscimpend.tscvisitimp {
	grid-column: 9/10;
}

.tscmetabutler.tscmetadatescore .tscimpend.tscvisitimp {
	grid-column: 10/11;
}

.tscgrid:not(.tscmetabutler) .tscimpend.tschomeimp {
	grid-column: 6/7;
}

.tscgrid:not(.tscmetabutler) .tscimpend.tscvisitimp {
	grid-column: 7/8;
}

#tscopenhead,
#tscalignboard,
#tscalignimp,
#tscscoreopenhead,
#tscboardhead,
#tscscoreopennshead,
#tscimphead,
#tsccontractopenhead,
#tscaligncontractopen,
#tscbutleropenhead,
#tscbutleropennshead,
.tscsolidborderl,
.tschomeimp {
	border-left: thin gray solid;
}

#tscmatchhome {
	grid-area: 1/1/ 3/2;
}

#tscmatchvisit {
	grid-area: 1/3/ 3/4;
}

#tscplyopenns {
	grid-area: 5/1/6/2;
}

#tscplyopenow {
	grid-area: 6/1/ 7/2;
}

#tscplyclosedns {
	grid-area: 5/3/ 6/4;
}

#tscplyclosedow {
	grid-area: 6/3/ 7/4;
}

#tscdescclosed {
	grid-area: 4/3/5/4;
}

#tscdescopen {
	grid-area: 4/1/5/2;
}

#tscdescopen,
#tscdescclosed {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	font-weight: bold;
	padding: 0.7rem;
}

.tscgrid:not(.tscmetabutler) #tsccontracthead,
#tscalignimp,
#tscclosedhead,
#tscbutlerclosedhead,
#tscscoreclosedhead,
#tscimphead,
#tscaligncontractclosed,
#tscleadclosedhead,
#tscclosedscoreowhead,
#tscbutlerclosedowhead,
.tscsolidborderr,
.tscvisitimp {
	border-right: thin gray solid;
}

.tscbasis:not(.opt) {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0.5rem;
	border-bottom: thin gray solid;
}

.tsccenter,
.tscboard {
	display: flex;
	padding: 0.5rem;
	border-bottom: thin gray solid;
	align-items: center;
	justify-content: center;
}

.tsccenter,
.tscbasis.tscwide,
.tscdottedleft {
	border-left: thin gray dotted;
}

.tsckontraktpadding {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	white-space: pre;
	padding: 0.5rem 1.7rem;
	border-bottom: thin gray solid;
}

.tscscore.gewscore,
.tscbasis.gewscore,
.tsclead.gewscore {
	display: none !important;
}

.tsckontraktpadding.gewscore {
	grid-column: span 4;
	border-right: thin solid gray;
	justify-content: center;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

.tscmetabutler #tscbutlerclosedowhead {
	grid-area: 3/15/4/16;
}

.tscmetabutler.tscmetadatescore #tscbutlerclosedowhead {
	grid-area: 3/16/4/17;
}

.tscmetabutler #tscbutlerclosednshead {
	grid-area: 3/14/4/15;
}

.tscmetabutler.tscmetadatescore #tscbutlerclosednshead {
	grid-area: 3/15/4/16;
}

.tscmetabutler #tscleadclosedhead {
	grid-area: 3/13/4/14;
}

.tscmetabutler.tscmetadatescore #tscleadclosedhead {
	grid-area: 3/14/4/15;
}

.tscgrid:not(.tscmetabutler) #tscleadclosedhead {
	grid-area: 3/11/4/12;
}

.tscmetabutler #tsccontractclosedhead {
	grid-area: 3/12/4/13;
}

.tscmetabutler.tscmetadatescore #tsccontractclosedhead {
	grid-area: 3/13/4/14;
}

.tscgrid:not(.tscmetabutler) #tsccontractclosedhead {
	grid-area: 3/10/4/11;
}

.tscmetabutler #tscclosedscoreowhead {
	grid-area: 3/11/4/12;
}

.tscmetabutler.tscmetadatescore #tscclosedscoreowhead {
	grid-area: 3/12/4/13;
}

.tscgrid:not(.tscmetabutler) #tscclosedscoreowhead {
	grid-area: 3/9/4/10;
}

.tscmetabutler #tscclosedscorenshead {
	grid-area: 3/10/4/11;
}

.tscmetabutler.tscmetadatescore #tscclosedscorenshead {
	grid-area: 3/11/4/12;
}

.tscgrid:not(.tscmetabutler) #tscclosedscorenshead {
	grid-area: 3/8/4/9;
}

.tscmetabutler #tscimphead {
	grid-area: 2/8/4/10;
}

.tscmetabutler.tscmetadatescore #tscimphead {
	grid-area: 2/9/4/11;
}

.tscgrid:not(.tscmetabutler) #tscimphead {
	grid-area: 2/6/4/8;
}

.tscmetabutler #tscscoreopenowhead {
	grid-area: 3/7/4/8;
}

.tscmetabutler.tscmetadatescore #tscscoreopenowhead {
	grid-area: 3/8/4/9;
}

.tscgrid:not(.tscmetabutler) #tscscoreopenowhead {
	grid-area: 3/5/4/6;
}

.tscmetabutler #tscscoreopennshead {
	grid-area: 3/6/4/7;
}

.tscmetabutler.tscmetadatescore #tscscoreopennshead {
	grid-area: 3/7/4/8;
}

.tscgrid:not(.tscmetabutler) #tscscoreopennshead {
	grid-area: 3/4/4/5;
}



.tscmetabutler #tscleadopenhead {
	grid-area: 3/5/4/6;
}

.tscmetabutler.tscmetadatescore #tscleadopenhead {
	grid-area: 3/6/4/7;
}



.tscgrid:not(.tscmetabutler) #tscleadopenhead {
	grid-area: 3/3/4/4;
}

#tscleadopenhead::after {
	content: attr(data-useafter);
}

.tscmetabutler #tsccontractopenhead {
	grid-area: 3/4/4/5;
}

.tscmetabutler.tscmetadatescore #tsccontractopenhead {
	grid-area: 3/5/4/6;
}

.tscgrid:not(.tscmetabutler) #tsccontractopenhead {
	grid-area: 3/2/4/3;
}

.tscmetabutler #tscbutleropenowhead {
	grid-area: 3/3/4/4;
}

.tscmetabutler.tscmetadatescore #tscbutleropenowhead {
	grid-area: 3/4/4/5;
}

.tscmetabutler #tscbutleropennshead {
	grid-area: 3/2/4/3;
}


.tscmetabutler.tscmetadatescore #tscbutleropennshead {
	grid-area: 3/3/4/4;
}

.tscmetadatescore #tscdatumhead {
	grid-area: 2/2/4/3;
}

#tscdatumhead::after {
	white-space: pre;
	content: attr(data-datescorehead);
}

#tscboardhead {
	grid-area: 2/1/4/2;
}

#tscboardhead::after {
	content: attr(data-useafterlong);
}

.tscmetabutler #tscscoreclosedhead {
	grid-area: 2/10/3/12;
}

.tscmetabutler.tscmetadatescore #tscscoreclosedhead {
	grid-area: 2/11/3/13;
}

.tscgrid:not(.tscmetabutler) #tscscoreclosedhead {
	grid-area: 2/8/3/10;
}

.tscmetabutler #tscscoreopenhead {
	grid-area: 2/6/3/8;
}

.tscmetabutler.tscmetadatescore #tscscoreopenhead {
	grid-area: 2/7/3/9;
}

.tscgrid:not(.tscmetabutler) #tscscoreopenhead {
	grid-area: 2/4/3/6;
}

#tscscoreopenhead::after {
	content: attr(data-useafterlong);
}

.tscmetabutler #tscbutlerclosedhead {
	grid-area: 2/14/3/16;
}

.tscmetabutler.tscmetadatescore #tscbutlerclosedhead {
	grid-area: 2/15/3/17;
}

.tscmetabutler #tscbutleropenhead {
	grid-area: 2/2/3/4;
}

.tscmetabutler.tscmetadatescore #tscbutleropenhead {
	grid-area: 2/3/3/5;
}

#tscbutleropenhead::after,
#tscbutlerclosedhead::after {
	content: attr(data-useafter);
}

.tscmetabutler #tscclosedhead {
	grid-area: 1/10/2/16;
}

.tscmetabutler.tscmetadatescore #tscclosedhead {
	grid-area: 1/11/2/17;
}

.tscgrid:not(.tscmetabutler) #tscclosedhead {
	grid-area: 1/8/2/12;
}

.tscmetabutler #tscalignimp {
	grid-area: 1/8/2/10;
}

.tscmetabutler.tscmetadatescore #tscalignimp {
	grid-area: 1/9/2/11;
}

.tscgrid:not(.tscmetabutler) #tscalignimp {
	grid-area: 1/6/2/8;
}

.tscmetabutler #tscalignboard {
	grid-area: 1/1/2/2;
}

.tscmetabutler.tscmetadatescore #tscalignboard {
	grid-area: 1/1/2/3;
}

.tscgrid:not(.tscmetabutler) #tscalignboard {
	grid-area: 1/1/2/2;
}

.tscmetabutler #tscopenhead {
	grid-area: 1/2/2/8;
}

.tscmetabutler.tscmetadatescore #tscopenhead {
	grid-area: 1/3/2/9;
}

.tscgrid:not(.tscmetabutler) #tscopenhead {
	grid-area: 1/2/2/6;
}


.tscmetabutler #tscaligncontractopen {
	grid-area: 2/4/3/6;
}

.tscmetabutler.tscmetadatescore #tscaligncontractopen {
	grid-area: 2/5/3/7;
}

.tscgrid:not(.tscmetabutler) #tscaligncontractopen {
	grid-area: 2/2/3/4;
}

.tscmetabutler #tscaligncontractclosed {
	grid-area: 2/12/3/14;
}

.tscmetabutler.tscmetadatescore #tscaligncontractclosed {
	grid-area: 2/13/3/15;
}

.tscgrid:not(.tscmetabutler) #tscaligncontractclosed {
	grid-area: 2/10/3/12;
}

.prvscore {
	width: auto;
	width: intrinsic;
	width: -moz-fit-content;
	width: -webkit-fit-content;
	width: fit-content;
	display: grid;
	grid-auto-flow: dense;
	grid-template: 1fr 1fr 0.5fr auto auto auto/repeat(8, auto);
	grid-template-areas: 'title title title title title title title title''subtitle subtitle subtitle subtitle subtitle subtitle subtitle subtitle''rnd rnd rnd rnd rnd rnd rnd rnd';
}

.prvscore.prvindi {
	grid-template-columns: repeat(9, auto);
	grid-template-areas: 'title title title title title title title title title''subtitle subtitle subtitle subtitle subtitle subtitle subtitle subtitle subtitle''rnd rnd rnd rnd rnd rnd rnd rnd rnd';
}

.prvrnd {
	grid-area: rnd;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-around;
}

.prvrndleft {
	display: flex;
	white-space: pre;
	align-items: center;
	justify-content: center;
}

.prvrndright {
	display: flex;
	white-space: pre;
	align-items: center;
	justify-content: center;
}

.prvscore:not(.prvindi) #prvheadpartner {
	display: none;
}

.prvscore.prvindi #prvheadpartner {
	grid-row: span 2;
	grid-column: 9/10;
}

#prvheadaxis::after {
	content: attr(data-useafter);
}

.prvindi .prvaxis::before {
	content: attr(data-short);
}

.prvhead {
	padding: 1rem;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	justify-self: stretch;
	align-self: stretch;
}

.prvhead.prvnopadding {
	padding-bottom: 0;
}

.prvhead:not(.prvnopadding),
.prvspace:nth-last-of-type(7) {
	border-bottom: thin solid gray;
}

.prvtitle {
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	font-weight: bold;
	grid-area: title;
	padding: 1rem 0;
	background-color: #FFE6A8;
	text-align: center;
	white-space: pre-wrap;
}

.prvsubtitle {
	display: grid;
	grid-auto-flow: dense;
	grid-template: 1fr 1fr/1fr 1fr;
	font-weight: bold;
	grid-area: subtitle;
	border-top: thin gray solid;
	border-bottom: thin gray solid;
}

.prvsubtitle div {
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.prvsubtitle div:nth-last-of-type(n+3),
.prvkorrektur,
.prvkorrekturvalue,
.prvkorrekturreason,
.prvhead {
	background-color: #FFFDCC;
}

.prvboard {
	justify-content: flex-end;
	grid-column: 1/2;
	grid-template-columns: 100%;
	width: 100%;
}

.prvrndres {
	height: 100%;
	grid-column: 5/7;
	display: grid;
	grid-auto-rows: 1fr;
	grid-template-columns: 1fr 1fr;
}

.prvrndres div:not(.opt),
.prvrndbdy:not(.prvmp):not(.prvboard) {
	white-space: pre;
	padding: 0.5rem 1rem;
	display: flex;
	align-items: center;
}

.prvrndres>.underscore-ns:first-child,
.prvrndres>.underscore-ew:nth-child(2) {
	text-decoration: underline;
}

.prvrndbdy::before {
	content: attr(data-long);
}

.prvrndres {
	justify-content: flex-end;
}

.prvrndres>:nth-child(2n+1) {
	padding: 0.5rem 1.5rem;
}

.prvaxis {
	grid-column: 7/8;
}

.prvrndbdy {
	height: 100%;
	display: grid;
	grid-auto-rows: 1fr;
}

.notplayed:not(.prvcontract) {
	display: none !important;
}

.prvcontract.notplayed {
	grid-column: 3/6 !important;
}

.prvcontract.notplayed {
	display: flex;
	justify-content: center;
	width: 100%;
	flex-direction: row;
}

.prvply.prvbye div {
	display: none !important;
}

.prvply.unnes {
	height: 100%;
	display: grid;
	grid-template: auto auto/auto;
	grid-auto-flow: dense;
	align-content: center;
	grid-column: 8/9;
	white-space: pre;
}

.prvpartner.unnes {
	height: 100%;
	display: grid;
	grid-template: auto /auto auto;
	grid-auto-flow: dense;
	align-content: center;
	grid-column: 9/10;
	white-space: pre;
}

.prvscore:not(.prvindi) .prvply .prvplyname {
	grid-area: 1/1/2/3;
}

.prvindi .prvply.prvpartner .prvplyname {
	grid-area: 1/1/2/3;
}

.prvply>div {
	display: flex;
	padding: 0.75rem 1rem;
	align-items: center;
	justify-content: center;
}

.prvgoodscore {
	font-weight: bold;
	background-color: #A9FF57;
}

.prvbadscore {
	font-style: italic;
	background-color: #FF5957;
}

.prvkorrektur {
	grid-column: 1/4;
	padding: 0.5rem 1rem;
	display: inline-flex;
}

.prvkorrekturvalue {
	grid-column: 4/5;
	padding: 0.5rem 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
}

.prvkorrekturreason {
	grid-column: 5/9;
	padding: 0.5rem 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
}

.prvindi .prvkorrekturreason {
	grid-column: 5/10;
}

.prvlead {
	grid-column: 4/5;
}

.prvcontract:not(.gewscore) {
	grid-column: 3/4;
}

.prvcontract.gewscore {
	grid-column: 3/7;
	justify-content: center;
}

.prvlead.gewscore,
.prvrndres.gewscore {
	display: none !important;
}

.prvmp {
	grid-column: 2/3;
}

.prvmp,
.prvboard {
	white-space: pre;
	padding: 0.5rem 1rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.prvspace {
	grid-column: 1/9;
	height: 1.2rem;
}

.prvindi .prvspace {
	grid-column: 1/10;
}

.kores {
	flex-grow: 1;
	flex-shrink: 0;
	width: auto;
	display: grid;
	overflow: visible;
	grid-auto-flow: column;
	align-content: flex-start;
}

.kohead {
	padding: 1.5rem;
	display: flex;
	margin-bottom: 1rem;
	justify-content: center;
}

.koteam {
	align-self: center;
	background-color: #FFF8A8;
	display: grid;
	grid-template-columns: auto min-content;
	grid-auto-flow: dense;
	border: 2px solid black;
}

.koteam.carryovermatch {
	grid-template-columns: auto min-content min-content;
}

.koteam:not(.carryovermatch)>.carryovercol {
	display: none;
}

.koteamres {
	display: grid;
	grid-auto-columns: fit-content;
	grid-template-rows: 1fr 1fr;
	grid-auto-flow: column;
}

.kofinalpl3 {
	display: grid;
	grid-template: 1fr 5rem 1fr/auto;
}

.koborderfinalpl3 {
	display: grid;
	grid-template: 1fr 1fr 5rem 1fr 1fr/1fr 1fr;
}

.koteamname {
	display: grid;
	grid-template-rows: 1fr 1fr;
}

.koteamres *,
.carryovercol>div {
	padding: 0.6rem;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.carryovercol>div {
	font-style: italic;
}

.koteamname * {
	display: flex;
	align-items: center;
	padding: 0.5rem 3rem 0.5rem 0.5rem;
	white-space: nowrap;
	flex-grow: 1;
	background-color: var(--lightorange);
}

.koteamres :nth-last-child(1),
.koteamres :nth-last-child(2) {
	font-weight: bold;
}

.koborderbl,
.kobordertl,
.koborderr {
	display: grid;
	grid-template: 1fr 1fr/1fr 1fr;
}

.koborderlong {
	display: grid;
	grid-template: 1fr/1fr 1fr;
}

.koborderfinalpl3 :nth-last-child(6n+3),
.koborderr :nth-child(2),
.koborderbl :first-child,
.kobordertl :first-child {
	border-bottom: dotted thin black;
}

.koborderfinalpl3 :nth-child(2n+1),
.koborderlong :first-child,
.kobordertl :first-child,
.koborderr :nth-child(2n+1),
.koborderbl :nth-child(3) {
	border-right: dotted thin black;
}

.kores>div {
	min-height: 20px;
}