/* body */

body {
	font-family: Verdana;
	font-size: 10pt;
}

/* p */

p.Header {
	color: #000000;
	font-size: 12pt;
	font-weight: bold;
	text-align: center;
}

p.SubHeader {
	color: #000000;
	font-size: 10pt;
	font-weight: bold;
	text-align: center;
}

p.Info {
	color: #DFDFDF;
	font-size: 8pt;
	font-weight: normal;
	text-align: left;
}

/* table vertical headers */
.rotate {
	writing-mode: vertical-rl;
	-ms-writing-mode: tb-lr;
	transform: rotate(180deg) scaleX(0.9) scaleY(0.99);
}

/* table global */

table {
	border-color: #7F7F7F;
	border-style: solid;
	border-width: 1px;
	border-collapse: collapse;
	margin-bottom: 10pt;
	margin-left: auto;
	margin-right: auto;
	margin-top: 0;
	padding: 0;
	width: auto;
}

table td, table th {
	border-color: #7F7F7F;
	border-style: solid;
	border-width: 1px;
	padding-left:   1.5pt;
	padding-right:  1.5pt;
	padding-top:    0.5pt;
	padding-bottom: 0.5pt;
}

table td.AtTimeLeft {
	vertical-align: top;
	text-align: center;
	border-right: none;
	font-size: smaller;
	color: gray;
}

table td.AtTimeCenter {
	vertical-align: top;
	text-align: center;
	border-left: none;
	border-right: none;
	padding-left: 0;
	padding-right: 0;
}

table td.AtTimeRight {
	vertical-align: top;
	text-align: center;
	border-left: none;
	font-size: smaller;
	color: gray;
}

/* table headers */

table th {
	background-color: #DFDFDF;
	font-weight: normal;
	text-align: center;
}

table th.SectorHeader {
	background-color: #BFBFBF;
	font-weight: bold;
	text-align: left;
}

table th.Candidate {
	font-weight: bold;
	width: 1px;
}

table th.Candidate.rotate {
	width: 3em;
}

table th.VotersAtTime, 
table th.BulletinsAtTime, table th.BulletinsExInAtTime, table th.BulletinsExOutAtTime,
table th.Operation,
table th.PresencePercent, table th.PresenceTotalPercent {
	width: 1px;
}

/* tec report */
table th.HeaderTec {
	vertical-align: top;
}

/* Нумерация в отчётах ТИК закрепляется у нижней границы фиксированной Bootstrap-панели (50 px). */
table.TecColumnHighlightable tr.TecStickyHeader > th {
	position: sticky;
	top: 50px;
	z-index: 3;
	background-color: #DFDFDF;
	box-shadow: inset 0 -1px 0 #7F7F7F;
}

table td.WarningMessagesTec {
	text-align: left;
}

/* table cells */

table td.Area {
	background-color: #DFDFDF;
	font-weight: normal;
	text-align: center;
}

table td.Center {
	background-color: #FFFFFF;
	font-weight: normal;
	text-align: left;
}

/* table sum cells */

table td.SumArea {
	background-color: #DFDFDF;
	font-weight: bold;
	text-align: center;
}

table td.SumCenter {
	font-weight: bold;
	text-align: right;
}

/* numbers and percents formatting */

table td.Number, table td.VotersCount, table td.ValidBulletins, table td.InvalidBulletins, table td.PresenceBulletins, table td.VotersAtTime, table td.BulletinsAtTime, table td.BulletinsExInAtTime, table td.BulletinsExOutAtTime,
table td.VotesCount-1, table td.VotesCount0, table td.VotesCount1, table td.VotesCount2, table td.VotesCount3, table td.VotesCount4, table td.VotesCount5, table td.VotesCount6, table td.VotesCount7, table td.VotesCount8, table td.VotesCount9, table td.VotesCount10, table td.VotesCount11, table td.VotesCount12, table td.VotesCount13, table td.VotesCount14 {
	font-weight: normal;
	text-align: right;
}

table td.Percent, table td.ValidBulletinsP, table td.InvalidBulletinsP, table td.PresenceBulletinsP, table td.PresencePercent, table td.PresenceTotalPercent,
table td.VotesCount-1P, table td.VotesCount0P, table td.VotesCount1P, table td.VotesCount2P, table td.VotesCount3P, table td.VotesCount4P, table td.VotesCount5P, table td.VotesCount6P, table td.VotesCount7P, table td.VotesCount8P, table td.VotesCount9P, table td.VotesCount10P, table td.VotesCount11P, table td.VotesCount12P, table td.VotesCount13P, table td.VotesCount14P {
	font-weight: normal;
	text-align: right;
}

table td.Operation {
	font-weight: normal;
	text-align: center;
}

/* numbers and percents coloring (with sum) */

table td.VotersCount,
table td.SumVotersCount {
	background-color: #FFFFFF;
}

table td.InvalidBulletins, table td.InvalidBulletinsP,
table td.SumInvalidBulletins, table td.SumInvalidBulletinsP {
	background-color: hsl(0, 100%, 90%);
}

table td.ValidBulletins, table td.ValidBulletinsP,
table td.SumValidBulletins, table td.SumValidBulletinsP {
	background-color: hsl(120, 100%, 90%);
}

table td.PresenceBulletins, table td.PresenceBulletinsP,
table td.SumPresenceBulletins, table td.SumPresenceBulletinsP {
	background-color: #FFFFFF;
}

table td.VotesCount-1, table td.VotesCount-1P,
table td.SumCandidates-1, table td.SumCandidates-1P {
	background-color: hsl(0, 100%, 90%); /* (против) */
}

table td.VotesCount0, table td.VotesCount0P,
table td.SumCandidates0, table td.SumCandidates0P {
	background-color: hsl(0, 100%, 90%); /* Самовыдвиженцы (без партии) */
}

table td.VotesCount1, table td.VotesCount1P,
table td.SumCandidates1, table td.SumCandidates1P {
	background-color: hsl(180, 100%, 90%);
}

table td.VotesCount2, table td.VotesCount2P,
table td.SumCandidates2, table td.SumCandidates2P {
	background-color: hsl(240, 100%, 90%);
}

table td.VotesCount3, table td.VotesCount3P,
table td.SumCandidates3, table td.SumCandidates3P {
	background-color: hsl(300, 100%, 90%);
}

table td.VotesCount4, table td.VotesCount4P,
table td.SumCandidates4, table td.SumCandidates4P {
	background-color: hsl(60, 100%, 90%);
}

table td.VotesCount5, table td.VotesCount5P,
table td.SumCandidates5, table td.SumCandidates5P {
	background-color: hsl(120, 100%, 90%);
}

table td.VotesCount6, table td.VotesCount6P,
table td.SumCandidates6, table td.SumCandidates6P {
	background-color: hsl(270, 100%, 90%);
}

table td.VotesCount7, table td.VotesCount7P,
table td.SumCandidates7, table td.SumCandidates7P {
	background-color: hsl(315, 100%, 90%);
}

table td.VotesCount8, table td.VotesCount8P,
table td.SumCandidates8, table td.SumCandidates8P {
	background-color: hsl(0, 100%, 90%);
}

table td.VotesCount9, table td.VotesCount9P,
table td.SumCandidates9, table td.SumCandidates9P {
	background-color: hsl(45, 100%, 90%);
}

table td.VotesCount10, table td.VotesCount10P,
table td.SumCandidates10, table td.SumCandidates10P {
	background-color: hsl(90, 100%, 90%);
}

table td.VotesCount11, table td.VotesCount11P,
table td.SumCandidates11, table td.SumCandidates11P {
	background-color: hsl(135, 100%, 90%);
}

table td.VotesCount12, table td.VotesCount12P,
table td.SumCandidates12, table td.SumCandidates12P {
	background-color: hsl(180, 100%, 90%);
}

table td.VotesCount13, table td.VotesCount13P,
table td.SumCandidates13, table td.SumCandidates13P {
	background-color: hsl(225, 100%, 90%);
}

table td.VotesCount14, table td.VotesCount14P,
table td.SumCandidates14, table td.SumCandidates14P {
	background-color: hsl(270, 100%, 90%);
}

/* numbers and percents coloring for presence (with sum) */

table td.VotersAtTime, table td.SumVotersAtTime {
	background-color: hsl(60, 100%, 93%);
}

table td.BulletinsAtTime, table td.SumBulletinsAtTime {
	background-color: hsl(210, 100%, 93%);
}

table td.BulletinsExInAtTime, table td.SumBulletinsExInAtTime,
table td.BulletinsExOutAtTime, table td.SumBulletinsExOutAtTime {
	background-color: hsl(240, 100%, 93%);
}

table td.PresencePercent, table td.SumPresencePercent {
	background-color: hsl(120, 100%, 93%);
}

table td.PresenceTotalPercent, table td.SumPresenceTotalPercent {
	background-color: hsl(120, 100%, 80%);
}

/* sum numbers and sum percents formatting */

table td.SumNumber,
table td.SumVotersCount, table td.SumValidBulletins, table td.SumInvalidBulletins, table td.SumPresenceBulletins, table td.SumVotersAtTime, table td.SumBulletinsAtTime, table td.SumBulletinsExInAtTime, table td.SumBulletinsExOutAtTime,
table td.SumCandidates-1, table td.SumCandidates0, table td.SumCandidates1, table td.SumCandidates2, table td.SumCandidates3, table td.SumCandidates4, table td.SumCandidates5, table td.SumCandidates6, table td.SumCandidates7, table td.SumCandidates8, table td.SumCandidates9, table td.SumCandidates10, table td.SumCandidates11, table td.SumCandidates12, table td.SumCandidates13, table td.SumCandidates14 {
	font-weight: bold;
	text-align: right;
}

table td.SumPercent,
table td.SumValidBulletinsP, table td.SumInvalidBulletinsP, table td.SumPresenceBulletinsP, table td.SumPresencePercent, table td.SumPresenceTotalPercent,
table td.SumCandidates-1P, table td.SumCandidates0P, table td.SumCandidates1P, table td.SumCandidates2P, table td.SumCandidates3P, table td.SumCandidates4P, table td.SumCandidates5P, table td.SumCandidates6P, table td.SumCandidates7P, table td.SumCandidates8P, table td.SumCandidates9P, table td.SumCandidates10P, table td.SumCandidates11P, table td.SumCandidates12P, table td.SumCandidates13P, table td.SumCandidates14P {
	font-weight: bold;
	text-align: right;
}

/* hide - ValidBulletins */

table th.ValidBulletins,
table td.ValidBulletins, table td.ValidBulletinsP,
table td.SumValidBulletins, table td.SumValidBulletinsP {
	display: none;
}

/* hide - InvalidBulletins */

table th.InvalidBulletins,
table td.InvalidBulletins, table td.InvalidBulletinsP,
table td.SumInvalidBulletins, table td.SumInvalidBulletinsP {
	/*display: none;*/
}

/* rows highlight */

table tr.HighlightL1 td, a.HighlightL1 {
	background-color: hsl(60, 100%, 70%);
}

table tr.HighlightL2 td, a.HighlightL2 {
	background-color: hsl(60, 100%, 85%);
}

table tr.HighlightL1 td.Area, table tr.HighlightL1 td.Center, table tr.HighlightL1 td.VotersCount {
	background-color: hsl(60, 100%, 70%);
}

table tr.HighlightL2 td.Area, table tr.HighlightL2 td.Center, table tr.HighlightL2 td.VotersCount {
	background-color: hsl(60, 100%, 85%);
}

table tr.HighlightL1 td.VotersCount {
	background-color: hsl(60, 100%, 70%);
}

table tr.HighlightL2 td.VotersCount {
	background-color: hsl(60, 100%, 85%);
}

table tr.HighlightL1 td.VotersAtTime {
	background-color: hsl(60, 90%, 73%);
}

table tr.HighlightL2 td.VotersAtTime {
	background-color: hsl(60, 90%, 83%);
}

table tr.HighlightL1 td.BulletinsAtTime {
	background-color: hsl(210, 90%, 73%);
}

table tr.HighlightL2 td.BulletinsAtTime {
	background-color: hsl(210, 90%, 83%);
}

table tr.HighlightL1 td.BulletinsExInAtTime,
table tr.HighlightL1 td.BulletinsExOutAtTime {
	background-color: hsl(240, 90%, 73%);
}

table tr.HighlightL2 td.BulletinsExInAtTime,
table tr.HighlightL2 td.BulletinsExOutAtTime {
	background-color: hsl(240, 90%, 83%);
}

table tr.HighlightL1 td.PresencePercent {
	background-color: hsl(120, 90%, 73%);
}

table tr.HighlightL2 td.PresencePercent {
	background-color: hsl(120, 90%, 83%);
}

table tr.HighlightL1 td.PresenceTotalPercent {
	background-color: hsl(120, 90%, 73%);
}

table tr.HighlightL2 td.PresenceTotalPercent {
	background-color: hsl(120, 90%, 83%);
}

table tr.HighlightL1 td.InvalidBulletins, table tr.HighlightL1 td.InvalidBulletinsP {
	background-color: hsl(0, 100%, 70%);
}

table tr.HighlightL2 td.InvalidBulletins, table tr.HighlightL2 td.InvalidBulletinsP {
	background-color: hsl(0, 100%, 85%);
}

table tr.HighlightL1 td.ValidBulletins, table tr.HighlightL1 td.ValidBulletinsP {
	background-color: hsl(120, 100%, 70%);
}

table tr.HighlightL2 td.ValidBulletins, table tr.HighlightL2 td.ValidBulletinsP {
	background-color: hsl(120, 100%, 85%);
}

table tr.HighlightL1 td.PresenceBulletins, table tr.HighlightL1 td.PresenceBulletinsP {
	background-color: hsl(60, 100%, 70%);
}

table tr.HighlightL2 td.PresenceBulletins, table tr.HighlightL2 td.PresenceBulletinsP {
	background-color: hsl(60, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount-1, table tr.HighlightL1 td.VotesCount-1P {
	background-color: hsl(0, 100%, 70%); /* (против) */
}

table tr.HighlightL2 td.VotesCount-1, table tr.HighlightL2 td.VotesCount-1P {
	background-color: hsl(0, 100%, 85%); /* (против) */
}

table tr.HighlightL1 td.VotesCount0, table tr.HighlightL1 td.VotesCount0P {
	background-color: hsl(0, 100%, 70%); /* Самовыдвиженцы (без партии) */
}

table tr.HighlightL2 td.VotesCount0, table tr.HighlightL2 td.VotesCount0P {
	background-color: hsl(0, 100%, 85%); /* Самовыдвиженцы (без партии) */
}

table tr.HighlightL1 td.VotesCount1, table tr.HighlightL1 td.VotesCount1P {
	background-color: hsl(180, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount1, table tr.HighlightL2 td.VotesCount1P {
	background-color: hsl(180, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount2, table tr.HighlightL1 td.VotesCount2P {
	background-color: hsl(240, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount2, table tr.HighlightL2 td.VotesCount2P {
	background-color: hsl(240, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount3, table tr.HighlightL1 td.VotesCount3P {
	background-color: hsl(300, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount3, table tr.HighlightL2 td.VotesCount3P {
	background-color: hsl(300, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount4, table tr.HighlightL1 td.VotesCount4P {
	background-color: hsl(60, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount4, table tr.HighlightL2 td.VotesCount4P {
	background-color: hsl(60, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount5, table tr.HighlightL1 td.VotesCount5P {
	background-color: hsl(120, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount5, table tr.HighlightL2 td.VotesCount5P {
	background-color: hsl(120, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount6, table tr.HighlightL1 td.VotesCount6P {
	background-color: hsl(270, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount6, table tr.HighlightL2 td.VotesCount6P {
	background-color: hsl(270, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount7, table tr.HighlightL1 td.VotesCount7P {
	background-color: hsl(315, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount7, table tr.HighlightL2 td.VotesCount7P {
	background-color: hsl(315, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount8, table tr.HighlightL1 td.VotesCount8P {
	background-color: hsl(0, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount8, table tr.HighlightL2 td.VotesCount8P {
	background-color: hsl(0, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount9, table tr.HighlightL1 td.VotesCount9P {
	background-color: hsl(45, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount9, table tr.HighlightL2 td.VotesCount9P {
	background-color: hsl(45, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount10, table tr.HighlightL1 td.VotesCount10P {
	background-color: hsl(90, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount10, table tr.HighlightL2 td.VotesCount10P {
	background-color: hsl(90, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount11, table tr.HighlightL1 td.VotesCount11P {
	background-color: hsl(135, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount11, table tr.HighlightL2 td.VotesCount11P {
	background-color: hsl(135, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount12, table tr.HighlightL1 td.VotesCount12P {
	background-color: hsl(180, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount12, table tr.HighlightL2 td.VotesCount12P {
	background-color: hsl(180, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount13, table tr.HighlightL1 td.VotesCount13P {
	background-color: hsl(225, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount13, table tr.HighlightL2 td.VotesCount13P {
	background-color: hsl(225, 100%, 85%);
}

table tr.HighlightL1 td.VotesCount14, table tr.HighlightL1 td.VotesCount14P {
	background-color: hsl(270, 100%, 70%);
}

table tr.HighlightL2 td.VotesCount14, table tr.HighlightL2 td.VotesCount14P {
	background-color: hsl(270, 100%, 85%);
}

/* rows highlight on hover */
table.Highlightable tr:hover td {
	border-top-width: 2px;
	border-bottom-width: 2px;
	border-color: black;
}

a.AreaAnchor {
	display: block;
	position: relative;
	top: -55px; /* navbar height */
	visibility: hidden;
}

/* hover highlighting in TEC protocol reports */
table.TecColumnHighlightable th.TecColumnHover {
	background-color: #DFDFDF !important;
}

table.TecColumnHighlightable td.TecColumnHover,
table.TecColumnHighlightable tr[class]:hover > td:not(:first-child):not(:last-child) {
	background-color: hsl(60, 100%, 85%) !important;
}
