/**
 * Infographics (snippets 26063–26078). Laddas av 26063 bara på sidor med modulen.
 * Färgerna kommer från Site Options via CSS-variabler på .infographics-container.
 * Brytpunkterna 780 px och 460 px = Site Options mobilbredd (780) och liten mobil (420) + 40.
 * Staplar och cirklar animeras till --p / --off på --d när JS sätter .is-animated.
 */

/* ---------- Ram (26063) ---------- */

.infographics-container {
	background-color: var(--ig-bg);
	padding: 30px 20px 90px 20px;
}

.infographics-inner-container > div {
	width: 100%;
	max-width: 455px;
}

.infographics-header-container {
	align-self: stretch;
	justify-content: space-between;
	align-items: flex-end;
	display: inline-flex;
	gap: 60px;
	width: 100%;
}

@media (max-width: 780px) {
	.infographics-header-container {
		align-items: flex-start;
		flex-direction: column;
		gap: 30px;
	}
}

/* ---------- Tabell (landningssida, 26063) ---------- */

.danir-table-container {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.danir-table-container .table {
	border-bottom: 2px white solid;
}

.danir-table-container .row {
	display: flex;
	padding: 10px 5px;
	gap: 5px;
}

.danir-table-container .row .col_1 {
	flex: 1 1 0;
}

.danir-table-container .row .col_2 {
	justify-content: flex-start;
	align-items: center;
	gap: 30px;
	display: flex;
}

.danir-table-container .row .col_2_1,
.danir-table-container .row .col_2_2 {
	width: 200px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	display: flex;
}

.danir-table-container .text {
	color: white;
	font-size: 15px;
	font-family: Lato;
	font-weight: 400;
	line-height: 23.50px;
	letter-spacing: 0.07px;
	word-wrap: break-word;
}

.danir-table-container .row .col_2 .text {
	text-align: center;
}

.danir-table-container .row:nth-child(odd) {
	background: var(--ig-logo-blue-100);
}

.danir-table-container .row:first-of-type {
	border-bottom: 2px white solid;
	background: transparent;
}

.danir-table-container .row:first-of-type .text {
	font-weight: 700;
	line-height: 23px;
	letter-spacing: 0.15px;
}

@media (max-width: 780px) {
	.danir-table-container .row .col_1 {
		width: 160px;
	}

	.danir-table-container .row .col_2 {
		width: calc(100% - 180px);
		justify-content: space-around;
		flex: 0 0 auto;
	}

	.danir-table-container .row .col_2_1,
	.danir-table-container .row .col_2_2 {
		width: unset;
	}
}

/* Räknande tal ligger i <span> – ärv storleken i stället för Master CSS span-regel (15px/23.5px) */
.infographics-container span[data-count] {
	font-size: inherit;
	line-height: inherit;
}

/* ---------- Gemensamma animationer ---------- */

@keyframes nn-ig-height {
	from { height: 100%; }
	to   { height: calc(100% - var(--p)); }
}

@keyframes nn-ig-width {
	from { width: 100%; }
	to   { width: calc(100% - var(--p)); }
}

@keyframes nn-ig-bottom {
	from { bottom: 0; }
	to   { bottom: var(--p); }
}

@keyframes nn-ig-circle {
	to { stroke-dashoffset: var(--off); }
}

/* ---------- Omsättning (26067) + stående anställda-staplar (26071) ---------- */

.omsattning-svg-container {
	display: flex;
	justify-content: space-between;
	max-width: 455px;
	margin-top: 5px;
}

.omsattning-svg-container.ar > div {
	width: 75px;
	text-align: center;
	color: var(--ig-beige-20);
}

/* Med stående anställda-staplar (Om Danir) har båda diagrammens årtal detta utseende */
.has-employee-bars .omsattning-svg-container.ar > div {
	width: 76px;
	font-weight: 600;
	color: #fff;
}

.staple-container {
	display: flex;
	justify-content: space-between;
}

.staple-container > div {
	width: 75px;
	margin-right: 15px;
	background: linear-gradient(180deg, var(--ig-light-blue-100) 0%, var(--ig-light-blue-100) 50%, var(--ig-beige-20) 50%, var(--ig-beige-20));
	padding: 20px 0 30px 0;
}

.staple-container > div:last-of-type {
	margin-right: 0;
}

.staple-item,
.anstallda-staple-item {
	height: 200px;
	position: relative;
	background: var(--ig-light-blue-100);
}

.anstallda-staple-item {
	background: #E4C8D8;
}

.staple-outer,
.anstallda-staple-outer {
	width: 100%;
	height: 100%;
	background: var(--ig-beige-20);
}

.staple-inner,
.anstallda-staple-inner {
	width: 100%;
	height: 100%;
	background: var(--ig-light-blue-100);
}

.staple-item .stapleNumber,
.anstallda-staple-item .anstallda-stapleNumber {
	position: absolute;
	margin-bottom: -15px;
	bottom: 0;
	width: 100%;
	text-align: center;
	line-height: 0;
	color: var(--ig-light-blue-100);
	font-size: 15px;
	font-weight: 700;
}

.staple-item .stapleNumber {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.stapleNumber-musd {
	position: absolute;
	margin-top: 20px;
	font-size: 0.8em;
	line-height: inherit;
}

.is-animated .staple-inner,
.is-animated .anstallda-staple-inner {
	animation: nn-ig-height var(--d) linear forwards;
}

.is-animated .staple-item .stapleNumber,
.is-animated .anstallda-staple-item .anstallda-stapleNumber {
	animation: nn-ig-bottom var(--d) linear forwards;
}

/* ---------- Antal anställda, liggande staplar (26069) ---------- */

.anstallda-summa {
	font-size: 98px;
	line-height: 128px;
	font-weight: 300;
	color: var(--ig-beige-20);
}

.anstallda-summa-container {
	max-width: 455px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.antal-anstallda-staple-container > div {
	margin-bottom: 30px;
}

.antal-anstallda-staple-container > div:last-of-type {
	margin-bottom: 0;
}

.antal-anstallda-staple-item {
	width: 100%;
	max-width: 455px;
}

.antal-anstallda-staple-outer {
	width: 100%;
	height: 30px;
	background-image: url(/wp-content/uploads/2025/11/infographic-employees-dotted-line-beige-20.png);
	transform: rotate(180deg);
}

.antal-anstallda-staple-inner {
	position: absolute;
	left: -2px;
	width: calc(100% + 2px);
	height: 100%;
	background: var(--ig-logo-blue-100) url(/wp-content/uploads/2025/11/infographic-employees-dotted-line-logo-blue-60-50proc.png);
}

.is-animated .antal-anstallda-staple-inner {
	animation: nn-ig-width var(--d) linear forwards;
}

.antal-anstallda-staple-numbers {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
}

.antal-anstallda-staple-numbers > div {
	color: var(--ig-beige-20);
}

.antal-anstallda-staple-numbers .antal-anstallda-stapleNumber {
	font-weight: normal;
}

/* ---------- Årlig tillväxt (26065), cirkel 130 px ---------- */

.svg-container {
	display: flex;
	justify-content: space-between;
}

@media (max-width: 460px) {
	.svg-container {
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}
}

.svg-skill {
	width: 130px;
	position: relative;
	margin-right: 15px;
}

.svg-skill:last-of-type {
	margin-right: 0;
}

.svg-outher {
	width: 130px;
	height: 130px;
	border-radius: 50%;
	padding: 16.25px;
	background: var(--ig-logo-blue-60);
}

.svg-inner {
	width: 97.5px;
	height: 97.5px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ig-logo-blue-100);
}

.svg-container .svg-number {
	font-size: 25px;
	font-weight: 700;
	line-height: 33px;
	letter-spacing: 0.12px;
	color: var(--ig-beige-20);
}

.svg-container circle {
	fill: none;
	stroke: var(--ig-beige-20);
	stroke-width: 16.25;
	stroke-dasharray: 357.5;
	stroke-dashoffset: 357.5;
	stroke-linecap: butt;
}

.is-animated .svg-container circle {
	animation: nn-ig-circle var(--d) linear forwards;
}

.svg-container svg {
	position: absolute;
	top: 0;
	left: 0;
	transform: rotateZ(270deg);
}

.svg-container-ar {
	text-align: center;
	font-weight: 700;
	font-size: 14px;
}

.svg-container-ar > div > span {
	font-size: 12px;
	color: var(--ig-beige-20);
}
