/* Encorp Pacific (Canada) 2024 Annual Report - Public Education CSS */
/* Last Updated: 2025.06.23 ET */

table.segmentation p:first-child {
	margin: 0.5em auto;
}

table.segmentation p:first-child {
	margin-top: 0;
}

table.segmentation p:last-child {
	margin-bottom: 0;
}

table.segmentation thead th > img {
	width: 136px;
	height: 136px;
}

table.segmentation tbody th,
table.segmentation tbody td {
	padding: 0.75em 0.5em;
	border-color: black !important;
	border-width: 1px !important;
}

table.segmentation tbody > tr:first-child > th,
table.segmentation tbody > tr:first-child > td {
	border-width: 4px;
}

table.segmentation thead > tr.captions > th:not(:empty) {
	background-color: grey;
	color: white;
	padding: 0.5em;
	vertical-align: bottom;
}

table.segmentation tbody > tr > th:first-child {
	padding-left: 0;
}

/* Second Column */
table.segmentation thead > tr.captions > th:nth-child(2) {
	background-color: rgb(108,187,222);
}
table.segmentation tbody > tr > td:nth-child(2) {
	background-color: rgba(108,187,222,0.25);
}

/* Third Column */
table.segmentation thead > tr.captions > th:nth-child(3) {
	background-color: rgb(25,127,99);
}
table.segmentation tbody > tr > td:nth-child(3) {
	background-color: rgba(25,127,99,0.25);
}

/* Fourth Column */
table.segmentation thead > tr.captions > th:nth-child(4) {
	background-color: rgb(185,66,52);
}
table.segmentation tbody > tr > td:nth-child(4) {
	background-color: rgba(185,66,52,0.25);
}

/* Fifth Column */
table.segmentation thead > tr.captions > th:nth-child(5) {
	background-color: rgb(235,87,48);
}
table.segmentation tbody > tr > td:nth-child(5) {
	background-color: rgba(235,87,48,0.25);
}

/* Sixth Column */
table.segmentation thead > tr.captions > th:nth-child(6) {
	background-color: rgb(35,154,180);
}
table.segmentation tbody > tr > td:nth-child(6) {
	background-color: rgba(35,154,180,0.25);
}

@media (max-width: 720px) {
	table.segmentation {
		min-width: 960px !important;
		font-size: 0.9rem;
	}
	table.segmentation thead th > img {
		width: 110px;
		height: 110px;
	}
}


table.y2y {
	--scale: 2;
	margin-bottom: 3rem;
}

table.y2y th.year {
	font-size: 1.2em;
	text-align: center;
}

table.y2y th.year > small {
	display: block;
	font-weight: normal;
}

table.y2y thead th.year {
	background-color: rgb(220,220,220);
	padding: 0.25em 0.5em 0 0.5em;
	border-left: 4px solid white;
}

table.y2y tbody th,
table.y2y tbody td {
	vertical-align: middle;
	padding-left: 0.5em;
	padding-right: 0.5em;
	border-top: none;
	border-bottom: 1px solid rgb(34,67,156);
}

table.y2y tbody tr:last-child th,
table.y2y tbody tr:last-child td {
	border-bottom: 1px solid rgb(34,67,156);
}

table.y2y thead + tbody tr:first-child th,
table.y2y thead + tbody tr:first-child td {
	border-top: 3px solid rgb(34,67,156);
}

table.y2y tbody th > img {
	display: inline-block;
	vertical-align: middle;
	height: 2em;
	width: auto;
	margin-left: 0.7em;
	margin-top: -0.2em;
	margin-bottom: -0.2em;
}

table.y2y tbody.net th,
table.y2y tbody.net td {
	font-weight: bold;
	border-top: none !important;
	border-bottom: 3px solid rgb(34,67,156) !important;
}

table.y2y tbody.net + tbody th,
table.y2y tbody.net + tbody td,
table.y2y tbody:first-child th,
table.y2y tbody:first-child td {
	border-top: none !important;
}

table.y2y tbody.net tr:first-child th,
table.y2y tbody.net tr:first-child td {
	border-top: 4px solid white !important;
}	

table.y2y td.bar {
	padding-left: 4px;
	white-space: nowrap;
}

table.y2y td.bar > span {
	display: inline-block;
	vertical-align: middle;
	height: 1.5em;
	background-color: rgb(34,67,156);
	margin: 0 1em 0 0;
	/* transition: width 1s; */
	clip-path: inset(0 0 0 0);
	transition: clip-path 1s;
}

table.y2y td.bars {
	position: relative;
	width: 20em;
	white-space: nowrap;
}

table.y2y td.bars > span {
	display: inline-block;
	vertical-align: middle;
	color: white;
	font-size: 1.2em;
	line-height: 1;
	text-align: center;
	overflow: hidden;
	padding: 0.5em 0 0.3em;
	clip-path: inset(0 0 0 0);
	transition: clip-path 1s;
}

table.y2y td.bars > span.excl {
	background-color: rgb(34,67,156);
}

table.y2y td.bars > span.vryg {
	background-color: rgb(249,158,28);
}

table.y2y td.bars > span.good {
	background-color: rgb(131,160,81);
}

table.y2y tfoot.legend td {
	line-height: 1;
	text-align: right;
	border-top: none !important;
}

table.y2y tfoot.legend span {
	display: inline-block;
	padding-left: 0.5em;
	margin-left: 1.5em;
}

table.y2y tfoot.legend span.excl {
	border-left: 1em solid rgb(34,67,156);
}

table.y2y tfoot.legend span.vryg {
	border-left: 1em solid rgb(249,158,28);
}

table.y2y tfoot.legend span.good {
	border-left: 1em solid rgb(131,160,81);
}

table.y2y tbody:not(.net) th:not(.primary):not(.year) {
	font-weight: normal;
}

table.y2y tbody th.primary,
table.y2y tbody td.total {
	font-size: 1.2em;
	font-weight: bold;
}

table.y2y tbody th.desc {
	max-width: 10em;
}

table.y2y tbody:not(.net) tr:nth-child(odd) {
	background-color: rgb(232,236,245); 
}

@media (max-width: 740px) {
	table.y2y {
		--scale: 1;
		font-size: 0.7rem;
	}
}

table.y2y td.bar > span.collapsed {
	/* --scale: 0; */
	clip-path: inset(0 100% 0 0);
}

table.y2y.collapsed td.bars > span {
	/* --scale: 0; */
	clip-path: inset(0 100% 0 0);
}

img.animate {
	position: relative;
	top: 0;
	opacity: 1;
	transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

img.animate.collapsed {
	top: 120px;
	opacity: 0;
}

#icon-rr {
	transition-delay: 0s;
}
#icon-df {
	transition-delay: 0.5s;
}
#icon-ct {
	transition-delay: 1s;
}
#icon-og {
	transition-delay: 0.25s;
}
#icon-uu {
	transition-delay: 0.75s;
}

#NPSPieChartSVG {
	max-width: 640px;
}

#NPSPieChartSVG #NPSPointer {
	transform-origin: 263.64px 197.39px;
	transform: rotate(108deg);
	transition: transform 2s;
}

#NPSPieChartSVG.collapsed #NPSPointer {
	transform-origin: 263.64px 197.39px;
	transform: rotate(0deg);
}

#ExpressPerceptionChartSVG,
#ExpressConvenienceChartSVG {
	max-width: 700px;
}

#UnaccountedForInfographicSVG {
	max-width: 600px;
}

#Y2YExpressRating {
	max-width: 32em;
}

#CustRelationsPNG {
	opacity: 1;
	transform: scale(100%);
	transition: opacity 0.5s, transform 1.5s;
}

#CustRelationsPNG.collapsed {
	opacity: 0;
	transform: scale(0%);
}
