/* ======================================= */
/* CSS for control sap.m/StandardListItem  */
/* Base theme                              */
/* ======================================= */

.sapMSLI {
	height: 3rem;
}

.sapMSLI.sapMSLIThumbnail,
.sapMSLI.sapMSLINoIconInset,
.sapMSLI.sapMSLIWithDescription,
.sapMSLI.sapMSLINoTitleAdapt {
	height: 5rem;
}

.sapMSLI > .sapMLIBContent {
	white-space: nowrap;
	text-overflow: ellipsis;
	display: flex;
	align-items: center;
}

.sapMSLIDescriptionAndInfo {
	display: flex;
	overflow: hidden;
}

.sapMSLIDiv {
	display: flex;
	flex: auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sapMSLIWithDescription > .sapMLIBContent > .sapMSLIDiv {
	flex-direction: column;
}

.sapMSLINoTitleAdapt:not(.sapMSLIWithDescription) .sapMSLIDiv {
	height: 2.5625rem;
}

.sapMSLITitle,
.sapMSLITitleOnly,
.sapMSLIDescription,
.sapMSLIDescriptionText {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1 1 auto;
}

.sapMSLIThumbnail:not(.sapMSLIWrapping) > .sapMLIBContent > .sapMSLIDiv,
.sapMSLIDescriptionText {
	padding-bottom: 0.125rem;
}

.sapMSLITitle,
.sapMSLITitleOnly {
	font-size: var(--sapFontLargeSize);
	color: var(--sapList_TextColor);
}

.sapMSLIDescription,
.sapMSLIDescriptionText {
	font-size: @sapMFontMediumSize;
	color: var(--sapContent_LabelColor);
}

.sapMSLIWithDescription .sapMSLIDescription {
	padding-top: 0.5rem;
}

.sapMSLIImgIcon,
.sapMSLIImg,
.sapMSLIImgNoInsetIcon,
.sapMSLIImgNoInset {
	width: 3rem;
	height: 3rem;
	line-height: 3rem;
	flex: none;
}

.sapMSLIImgIcon,
.sapMSLIImgNoInsetIcon {
	font-family: var(----sapContent_IconFontFamily);
	font-size: 1.375rem;
	color: var(--sapContent_NonInteractiveIconColor);
}

.sapMSLIImgNoInsetIcon,
.sapMSLIImgNoInset,
.sapMSLIImg {
	font-size: 2.5rem;
	margin-right: 0.75rem;
}

.sapMLIBActive .sapMSLIImgNoInsetIcon,
.sapMLIBActive .sapMSLIImgIcon,
.sapMLIBActive .sapMSLIExpandCollapse {
	color: var(--sapList_Active_TextColor);
	text-shadow: none;
}

.sapMLIBActive .sapMSLIInfo:not(.sapMSLIInfoStateInverted) {
	text-shadow: none;
}

.sapMSLIDiv.sapMSLIInfoMiddle {
	flex-direction: row;
}

.sapMSLIInfo {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: right;
	margin: 0 0 0 1rem;
	font-size: @sapMFontMediumSize;
	min-width: 2rem;
}

.sapMSLIWrapping .sapMSLIInfo {
	white-space: normal;
	word-break: break-word;
}

.sapMSLIInfo:not(.sapMSLIInfoStateInverted) {
	text-shadow: var(--sapContent_TextShadow);
}

.sapMSLIInfoMiddle > .sapMSLIInfo {
	padding: 0;
}

/* The info is aligned right and therefore in RTL mode should be aligned on the left */
html[dir=rtl] .sapMSLIInfo {
	text-align: left;
}

.sapMSLIInfoNone {
	color: var(--sapContent_LabelColor);
}

.sapMSLIInfoError {
	color: var(--sapNegativeTextColor);
}

.sapMSLIInfoWarning {
	color: var(--sapCriticalTextColor);
}

.sapMSLIInfoSuccess {
	color: var(--sapPositiveTextColor);
}

.sapMSLIInfoInformation {
	color: var(--sapInformativeTextColor);
}

/* inverted info text */
.sapMSLIInfoStateInverted {
	font-size: var(--sapFontSmallSize);
	font-weight: bold;
	color: @sapUiContentContrastTextColor;
	border-radius: 0.25rem;
	box-sizing: border-box;
	height: 0.875rem;
	line-height: ~"calc(var(--sapFontSmallSize) - 0.0625rem);"
}

.sapMSLIInfo.sapMSLIInfoStateInverted {
	padding: 0.0625rem 0.25rem;
	text-align: center;
	text-shadow: var(--sapContent_ContrastTextShadow);
}

.sapMSLIInfoStateInverted.sapMSLIInfoNone {
	background: var(--sapNeutralElementColor);
}

.sapMSLIInfoStateInverted.sapMSLIInfoError {
	background: var(--sapNegativeElementColor);
}

.sapMSLIInfoStateInverted.sapMSLIInfoWarning {
	background: var(--sapCriticalElementColor);
}

.sapMSLIInfoStateInverted.sapMSLIInfoSuccess {
	background: var(--sapPositiveElementColor);
}

.sapMSLIInfoStateInverted.sapMSLIInfoInformation {
	background: var(--sapInformativeElementColor);
}

/* Wrapping */
.sapMSLI.sapMSLIWrapping {
	height: auto;
	min-height: 3rem;
}

.sapMSLIWithDescription.sapMSLIWrapping,
.sapMSLINoIconInset.sapMSLIWrapping,
.sapMSLINoTitleAdapt.sapMSLIWrapping {
	min-height: 5rem;
}

.sapMSLIWrapping .sapMSLITitle,
.sapMSLIWrapping .sapMSLITitleOnly,
.sapMSLIWrapping .sapMSLIDescription,
.sapMSLIWrapping .sapMSLIDescriptionText {
	white-space: normal;
	word-wrap: break-word;
}

.sapMSLINoTitleAdapt > .sapMLIBSelectS,
.sapMSLINoTitleAdapt > .sapMLIBSelectM,
.sapMSLIWithDescription > .sapMLIBSelectS,
.sapMSLIWithDescription > .sapMLIBSelectM,
.sapMSLIWrapping > .sapMLIBSelectS,
.sapMSLIWrapping > .sapMLIBSelectM,
.sapMSLIWrapping > .sapMLIBContent > .sapMSLIImgIcon,
.sapMSLIWrapping > .sapMLIBContent > .sapMSLIImg,
.sapMSLIWrapping > .sapMLIBContent > .sapMSLIImgNoInsetIcon,
.sapMSLIWrapping > .sapMLIBContent > .sapMSLIImgNoInset {
	align-self: flex-start;
	margin-top: 0.275rem;
}

.sapMSLIWrapping.sapMSLINoIconInset > .sapMLIBContent > .sapMSLIImgNoInsetIcon,
.sapMSLIWrapping.sapMSLINoIconInset > .sapMLIBContent > .sapMSLIImgNoInset,
.sapMSLIWrapping > .sapMLIBContent > .sapMSLIImg {
	margin-top: 0.725rem;
}

.sapMSLIWrapping > .sapMLIBContent > .sapMSLIDiv {
	padding: 1rem 0;

	&:has(.sapMSLIDescription) {
		padding-bottom: 0.5rem;

		.sapMSLITitle {
			padding-bottom: 0.25rem;
		}
	}

	.sapMSLIDescription {
		padding: 0.5rem 0;
	}
}

.sapMSLINoTitleAdapt.sapMSLIWrapping > .sapMLIBContent > .sapMSLIDiv > .sapMSLITitleOnly {
	padding: 0
}

.sapMSLIWrapping .sapMSLITitleOnly > .sapMSLIInfo,
.sapMSLIWrapping .sapMSLIDescriptionText > .sapMSLIInfo {
	float: right;
}

.sapMSLIExpandCollapse {
	text-wrap: nowrap;
	position: relative;
	color: var(--sapLinkColor);
	cursor: pointer;
	padding: 0 1px;
}

.sapMSLIExpandCollapse:hover {
	color: var(--sapLink_Hover_Color);
	text-decoration: underline;
}

.sapMSLIExpandCollapse:focus {
	outline: @_sap_m_ListItemBase_Focus_Outline;
}

.sapMSLIExpandCollapse::before {
	position: absolute;
	content: '';
	height: 1.5rem;
	top: -0.25rem;
	width: 100%;
}

.sapMSLIImgIcon {
	margin-inline-start: -0.75rem;
}

.sapMSLIAvatar {
	margin: 0.25rem;
	margin-right: 0.75rem;
}

/* Compact size */
.sapUiSizeCompact .sapMSLI {
	height: 2rem;
}

.sapUiSizeCompact .sapMSLI.sapMSLIThumbnail,
.sapUiSizeCompact .sapMSLI.sapMSLINoIconInset,
.sapUiSizeCompact .sapMSLI.sapMSLIWithDescription,
.sapUiSizeCompact .sapMSLI.sapMSLINoTitleAdapt {
	height: 5rem;
}

.sapUiSizeCompact .sapMSLI.sapMSLIWrapping {
	height: auto;
	min-height: 2rem;
}

.sapUiSizeCompact .sapMSLI.sapMSLIWithDescription.sapMSLIWrapping,
.sapUiSizeCompact .sapMSLI.sapMSLINoIconInset.sapMSLIWrapping,
.sapUiSizeCompact .sapMSLI.sapMSLINoTitleAdapt.sapMSLIWrapping {
	min-height: 5rem;
}

.sapUiSizeCompact .sapMSLIThumbnail:not(.sapMSLIWrapping) > .sapMLIBContent > .sapMSLIDiv {
	padding: 0.25rem 0;
}

.sapUiSizeCompact .sapMSLITitle,
.sapUiSizeCompact .sapMSLITitleOnly {
	font-size: @sapMFontMediumSize;
}

.sapUiSizeCompact .sapMSLIImgIcon {
	height: 2rem;
	line-height: 2rem;
	font-size: 1rem;
}

.sapUiSizeCompact .sapMSLI.sapMSLIWrapping > .sapMLIBSelectS,
.sapUiSizeCompact .sapMSLI.sapMSLIWrapping > .sapMLIBSelectM,
.sapUiSizeCompact .sapMSLI.sapMSLIWithDescription > .sapMLIBSelectS,
.sapUiSizeCompact .sapMSLI.sapMSLIWithDescription > .sapMLIBSelectM,
.sapUiSizeCompact .sapMSLI.sapMSLIWrapping > .sapMLIBContent > .sapMSLIImgIcon {
	margin-top: 0.725rem;
}