/* ====================================== */
/* CSS for control sap.m/SegmentedButton  */
/* Horizon High Contrast Black theme      */
/* ====================================== */

.sapMSegB {
	height: 2.75rem;
	vertical-align: top;
	position: relative;
	.sapMSegBBtn {
		.sapMSegBBtnInner {
			font-size: @sapMFontMediumSize;
			height: 2.25rem;
			line-height: 2.25rem;
			padding-left: 0.5625rem;
			padding-right: 0.5625rem;
			text-align: center;
			text-shadow: none;
			color: @sapUiButtonTextColor;
			border-top: 1px solid @sapUiButtonBorderColor;
			border-left: 1px solid @sapUiButtonBorderColor;
			border-bottom: 1px solid @sapUiButtonBorderColor;
			border-right: 1px solid transparent;
			background-color: @sapUiButtonBackground;
		}
		&:not(.sapMSegBBtnMixed) .sapMImg {
			padding-left: 0.5625rem;
			padding-right: 0.5625rem;
		}
	}
}

.sapMSegBBtn:first-child .sapMSegBBtnInner {
	border-top-left-radius: 0.375rem;
	border-bottom-left-radius: 0.375rem;
}

.sapMSegBBtn:last-child .sapMSegBBtnInner {
	border-top-right-radius: 0.375rem;
	border-bottom-right-radius: 0.375rem;
}

html.sap-desktop .sapMSegBBtnFocusable:hover .sapMSegBBtnInner {
	background: @sapUiButtonHoverBackground;
}

/* Custom focus outline: */
html.sap-desktop {
	.sapMSegBBtnFocusable:focus .sapMSegBBtnInner {
		outline: 1px dotted;
		outline-offset: -3px;
		outline-color: @sapUiContentFocusColor;
	}

	.sapMSegBBtnFocusable.sapMSegBBtnSel:focus .sapMSegBBtnInner {
		outline: 1px dotted;
		outline-offset: -3px;
		outline-color: @sapUiContentContrastFocusColor;
	}
}

.sapMSegB.sapMSegBIcons {
	.sapMSegBBtn:not(.sapMSegBBtnMixed) .sapMSegBBtnInner {
		padding: 0;
	}
	.sapMSegBBtn.sapMSegBBtnMixed .sapMImg {
		height: 2.125rem;
		width: auto;
		padding-right: 0.375rem;
	}
	.sapMSegBBtn.sapMSegBBtnMixed .sapUiIcon {
		padding-left: 0;
		padding-right: 0.375rem;
		width: 1rem;
	}
}

.sapMSegBBtn.sapMSegBBtnFocusable:active:hover {
	.sapMSegBBtnInner {
		background: @sapButton_Active_Background;
		color: @sapUiButtonSelectedTextColor;
		border-color: @sapUiButtonSelectedBorderColor;
	}
	.sapUiIcon {
		color: @sapUiButtonSelectedTextColor;
	}
}

.sapMSegBBtn.sapMSegBBtnSel {
	.sapMSegBBtnInner {
		background: @sapUiButtonSelectedBackground;
		color: @sapUiButtonSelectedTextColor;
		border-color: @sapUiButtonSelectedBorderColor;
	}
	.sapUiIcon {
		color: @sapUiButtonSelectedTextColor;
	}
}

.sapMSegBBtn.sapMSegBBtnSel:hover {
	.sapMSegBBtnInner {
		border-color: @sapUiButtonSelectedHoverBorderColor;
	}
}

.sapMSegBBtnFocusable.sapMBtnActive {
	.sapMSegBBtnInner {
		background: @sapUiButtonSelectedBackground;
		color: @sapUiButtonSelectedTextColor;
	}
	.sapUiIcon{
		color: @sapUiButtonSelectedTextColor;
	}
}

html.sap-desktop .sapMSegBBtn.sapMSegBBtnFocusable.sapMSegBBtnSel:hover .sapMSegBBtnInner,
html.sap-desktop .sapMSegBBtnFocusable.sapMBtnActive:hover .sapMSegBBtnInner {
	background: @sapUiButtonSelectedHoverBackground;
}

.sapMSegBBtn.sapMSegBBtnFocusable.sapMSegBBtnSel {
	.sapMSegBBtnInner {
		border-right: 1px solid @sapUiButtonSelectedBorderColor;
	}
	.sapMSegBBtnInner:hover {
		border-right: 1px solid @sapUiButtonSelectedHoverBorderColor;
	}
	// Hide next button left border
	+ .sapMSegBBtn .sapMSegBBtnInner {
		border-left: 1px solid transparent;
	}
}

.sapMSegB img {
	height: 2.125rem;
	width: auto;
	max-height: 2.125rem;
	vertical-align: top;
}

.sapMSegBBtn .sapUiIcon {
	width: auto;
	font-size: 1rem;
	line-height: 2.125rem;
	margin-right: 0;
	color: @sapUiButtonIconColor;
	vertical-align: top;
	text-align: center;
}
.sapMSegBBtn.sapMSegBBtnMixed .sapUiIcon {
	padding-right: 0.375rem;
}

.sapMSegBBtn .sapMBtnIcon:before {
	width: 1rem;
	text-align: center;
	display: inline-block;
}

.sapMSB .sapMSBInner .sapMSBText:not(.sapMSBTextIE) .sapMBtnInner {
	margin-right: 2.2rem;
}

.sapMSegBIcons:not(.sapMSegBBtnMixed) {
	.sapMImg,
	.sapUiIcon {
		padding-left: 0.5625rem;
		padding-right: 0.5625rem;
	}
}
/* Compact size */
.sapUiSizeCompact {
	.sapMSegBBtn .sapMSegBBtnInner {
		height: 1.625rem;
		line-height: 1.5rem;
		padding-left: 0.4375rem;
		padding-right: 0.4375rem;
	}

	.sapMSegBBtn:first-child .sapMSegBBtnInner {
		border-top-left-radius: 0.375rem;
		border-bottom-left-radius: 0.375rem;
	}

	.sapMSegBBtn:last-child .sapMSegBBtnInner {
		border-top-right-radius: 0.375rem;
		border-bottom-right-radius: 0.375rem;
	}

	.sapMSegB img {
		line-height: 1.5rem;
		height: 1.5rem;
		width: auto;
	}

	.sapMSegBBtn .sapUiIcon {
		font-size: 1rem;
		line-height: 1.5rem;
		width: 1.0rem;
		vertical-align: top;
	}
	.sapMSegB {
		.sapMBtnIconLeft {
			margin-left: 0;
		}
	}
	.sapMSegBIcons:not(.sapMSegBBtnMixed) {
		.sapMImg,
		.sapUiIcon {
			padding-left: 0.4375rem;
			padding-right: 0.4375rem;
		}
	}
	.sapMSegBIcons {
		.sapMSegBBtn.sapMSegBBtnMixed {
			.sapUiIcon,
			.sapMImg {
				padding-left: 0;
				padding-right: 0.375rem;
				margin: 0;
			}
			.sapMImg {
				height: 1.5rem;
				width: auto;//1.5rem;
			}
		}
	}
}

.sapMSegBBtn.sapMSegBtnLastVisibleButton .sapMSegBBtnInner {
	border-right: 1px solid @sapUiButtonBorderColor;
	border-top-right-radius: 0.375rem;
	border-bottom-right-radius: 0.375rem;
}