/* ===== Pipedrive (#2543) — yhteiset mk-/vs-komponentit ovat smi-global-style.css:ssä ===== */

/* Ikonit */
.mk-ikoni-putki {
	--mk-ikoni: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23108200' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='5' height='16' rx='1'/%3E%3Crect x='10' y='4' width='5' height='10' rx='1'/%3E%3Crect x='17' y='4' width='4' height='6' rx='1'/%3E%3C/svg%3E");
}
.mk-logochip-pd {
	padding: 0;
	border: 0;
	background: none;
}
.mk-logochip-pd img {
	border-radius: 0.4em;
}
/* Pipedrive: myyntiputki */
.mk-valilehdet {
	display: flex;
	gap: 0.3em;
}
.mk-valilehdet span {
	padding: 0.3em 0.75em;
	border-radius: 0.4em;
	background: var(--wp--preset--color--tertiary);
	font-size: var(--wp--preset--font-size--2-x-small);
	font-weight: 600;
}
.mk-valilehdet span:first-child {
	background: var(--mk-tumma);
	color: var(--wp--preset--color--base);
}
.mk-sarake-otsikko span {
	display: block;
	margin-top: 0.2em;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	opacity: 0.75;
}
.mk-tila {
	display: inline-block;
	margin-top: 0.25em;
	color: var(--mk-vihrea-teksti);
	font-size: var(--wp--preset--font-size--2-x-small);
	font-weight: 700;
}
.mk-tila-myohassa {
	color: #b42318;
}
@media (max-width: 1179px) {
	/* Neljä saraketta mahtuu vasta täysleveällä; muuten 2 × 2. */
	.mk-putki-laaja .mk-putki-sarakkeet {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 1em;
	}
}
/* Pipedrive: automaatio */
.mk-saannot > * {
	margin-block: 0;
}
.mk-saanto {
	position: relative;
	padding: 0.85em 1em;
	border: 1px solid var(--mk-reuna);
	border-radius: 0.7em;
	background: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
}
.mk-saanto + .mk-saanto {
	margin-top: 1.4em !important;
}
.mk-saanto + .mk-saanto::before {
	content: "";
	position: absolute;
	top: calc(-1.4em - 1px);
	left: 1.9em;
	width: 2px;
	height: 1.4em;
	background: var(--mk-reuna);
}
.mk-ehto {
	display: inline-block;
	min-width: 3.4em;
	margin-right: 0.8em;
	padding: 0.3em 0.5em;
	border-radius: 0.35em;
	font-size: var(--wp--preset--font-size--2-x-small);
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}
.mk-ehto-kun {
	background: #fbefc7; color: #7a5a00;
}
.mk-ehto-jos {
	background: #e4ecfa; color: #1f4f9e;
}
.mk-ehto-niin {
	background: var(--mk-vihrea-vaalea); color: var(--mk-vihrea-teksti);
}
/* Pipedrive: pylväsraportti */
.mk-pylvaat {
	position: relative;
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 0.7em;
	align-items: end;
	margin-top: 1.2em;
}
.mk-pylvaat > * {
	margin: 0 !important;
}
.mk-pylvaat::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: calc(2rem + 9rem * 0.76);
	left: 0;
	border-top: 2px dashed #d9792b;
}
.mk-pylvas::before {
	content: "";
	display: block;
	height: calc(9rem * var(--k) / 100);
	border-radius: 0.35em 0.35em 0 0;
	background: var(--mk-vihrea);
}
.mk-pylvas-ennen::before {
	background: color-mix(in srgb, var(--mk-vihrea) 45%, var(--mk-tumma));
}
.mk-pylvas span {
	display: block;
	height: 1.6rem;
	margin-top: 0.4rem;
	font-size: var(--wp--preset--font-size--2-x-small);
	line-height: 1.6rem;
	text-align: center;
	opacity: 0.75;
}
.mk-pylvas-58 {
	--k: 58;
}
.mk-pylvas-66 {
	--k: 66;
}
.mk-pylvas-51 {
	--k: 51;
}
.mk-pylvas-82 {
	--k: 82;
}
.mk-pylvas-94 {
	--k: 94;
}
.mk-pylvas-79 {
	--k: 79;
}
.mk-selite {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 1.4em;
	margin-top: 1em !important;
	font-size: var(--wp--preset--font-size--2-x-small);
}
.mk-selite span {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}
.mk-selite span::before {
	content: "";
	width: 0.85em;
	height: 0.85em;
	border-radius: 0.2em;
	background: var(--mk-vihrea);
}
.mk-selite-tavoite::before {
	height: 0 !important;
	border-top: 2px dashed #d9792b;
	border-radius: 0 !important;
	background: none !important;
}
