/* NOTE: This file was generated as an optimized version of "library.source.less" for the Theme Designer. */

/*!
 * OpenUI5
 * (c) Copyright 2009-2026 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */

@import "../base/library.less";
@import "../../../../../Base/baseLib/sap_horizon/base.less"; /* ORIGINAL IMPORT PATH: "../../../../sap/ui/core/themes/sap_horizon/base.less" */

@import "../../../../sap/ui/core/themes/sap_horizon/global.less";

/* START "InfoLabel.less" */
/* ================================= */
/* CSS for control sap.tnt/InfoLabel */
/* Horizon theme                     */
/* ================================= */

// ==========================================================================
// Variables and mixins
// ==========================================================================

@_sap_tnt_InfoLabel_LineHeightDisplayOnly: 1rem;
@_sap_tnt_InfoLabel_DisplayModeBorder: none;
@_sap_tnt_InfoLabel_DisplayModeBackground: #EAECEE;
@_sap_tnt_InfoLabel_DisplayModeColor: #354A5F;
@_sap_tnt_InfoLabel_BorderRadius: 0.25rem;
@_sap_tnt_InfoLabel_DisplayBorderRadius: 0.1875rem;
@_sap_tnt_InfoLabel_Height: 1.375rem;
@_sap_tnt_InfoLabel_HeightWithoutBorders: 1.375rem;
@_sap_tnt_InfoLabel_LineHeight: 1.375rem;
@_sap_tnt_InfoLabel_Text: none;
@_sap_tnt_InfoLabel_Padding: 0 0.375rem;
@_sap_tnt_InfoLabel_DisplayPadding: 0 0.25rem;
@_sap_tnt_InfoLabel_IconMargin: 0.25rem;
@_sap_tnt_InfoLabel_DisplayIconMargin: 0.125rem;
@_sap_tnt_InfoLabel_FontFamily: @sapFontSemiboldDuplexFamily;
@_sap_tnt_InfoLabel_FontSize: @sapFontSize;
@_sap_tnt_InfoLabel_DisplayFontSize: @sapFontSmallSize;
@_sap_tnt_InfoLabel_DisplayFontSizeIcon: 0.625rem;
@_sap_tnt_InfoLabel_NarrowPadding: @_sap_tnt_InfoLabel_Padding;
@_sap_tnt_InfoLabel_LetterSpacing: normal;

@_sap_tnt_InfoLabel_ColorsArray:
	@sapAvatar_1_Background @sapAvatar_1_TextColor,
	@sapAvatar_2_Background @sapAvatar_2_TextColor,
	@sapAvatar_3_Background @sapAvatar_3_TextColor,
	@sapAvatar_4_Background @sapAvatar_4_TextColor,
	@sapAvatar_5_Background @sapAvatar_5_TextColor,
	@sapAvatar_6_Background @sapAvatar_6_TextColor,
	@sapAvatar_7_Background @sapAvatar_7_TextColor,
	@sapAvatar_8_Background @sapAvatar_8_TextColor,
	@sapAvatar_9_Background @sapAvatar_9_TextColor,
	@sapAvatar_10_Background @sapAvatar_10_TextColor;

.create-classes-for-background-and-border-colors(backgroundColor, @_sap_tnt_InfoLabel_ColorsArray);

// Iterate over the InfoLabel ColorsArray and create separate class for each
// color named with the passed prefix and the number of the color
.create-classes-for-background-and-border-colors(@prefix, @list) {
	.iter(length(@list));
	.iter(@i) when (@i > 0) {
		.iter(@i - 1);

		@pair: extract(@list, @i);
		@backgroundColor: extract(@pair, 1);
		@textColor: extract(@pair, 2);

		.@{prefix}@{i} {
			background-color: @backgroundColor;

			.sapTntInfoLabelInner {
				color: @textColor;
			}
		}
	}
}
/* END "InfoLabel.less" */

/* START "SideNavigation.less" */
/* ======================================= */
/* CSS for control sap.tnt/SideNavigation  */
/* Horizon theme                           */
/* ======================================= */

@_sap_tnt_SideNavigation_Width: 16rem;
@_sap_tnt_SideNavigation_CollapsedWidth: 3.5rem;
@_sap_tnt_SideNavigation_NavigationSeparatorMargin: 0.5rem;
@_sap_tnt_SideNavigation_NavigationSeparatorMarginCollapsed: 0.5rem;
@_sap_tnt_SideNavigation_NavigationSeparatorBackgroundColor: @sapUiToolbarSeparatorColor;
@_sap_tnt_SideNavigation_NavigationSeparatorRadius: 0.125rem;
@_sap_tnt_SideNavigation_NavigationSeparatorHeight: 0.0625rem;
@_sap_tnt_SideNavigation_TriangleColor: @sapUiContentNonInteractiveIconColor;
@_sap_tnt_SideNavigation_BorderRight: 0;
@_sap_tnt_SideNavigation_BorderRadius: 0.5rem 0.5rem 0 0;
@_sap_tnt_SideNavigation_PhoneBorderRadius: 0.5rem;
@_sap_tnt_SideNavigation_BoxShadow: 0 0 0.125rem 0 fade(@sapUiContentShadowColor, 16), 0 0.5rem 1rem 0 fade(@sapUiContentShadowColor, 16);
@_sap_tnt_SideNavigation_SeparatorMargin: 0.3125rem 0.5rem 0.3125rem 0.5rem;
@_sap_tnt_SideNavigation_TriangleDisplay: none;
@_sap_tnt_SideNavigation_PhoneWidth: ~"100% !important";
/* END "SideNavigation.less" */

/* START "NavigationList.less" */
/* ======================================= */
/* CSS for control sap.tnt/NavigationList  */
/* Horizon theme                           */
/* ======================================= */

@_sap_tnt_NavigationList_CollapsedWidth: 3.5rem;
@_sap_tnt_NavigationList_IconColor: @sapUiListTextColor;
@_sap_tnt_NavigationList_IconFontSize: 1.125rem;
@_sap_tnt_NavigationList_ExpandIconColor: @sapUiListTextColor;
@_sap_tnt_NavigationList_GroupBorderStyleColor: none;
@_sap_tnt_NavigationList_ItemHeight: 2.5rem;
@_sap_tnt_NavigationList_ItemBorderRadius: 0.375rem;
@_sap_tnt_NavigationList_ItemBottomMargin: 0.25rem;
@_sap_tnt_NavigationList_ItemBottomMarginCompact: 0.25rem;
@_sap_tnt_NavigationList_ItemFocusBorderOffset: -@sapUiContentFocusWidth;
@_sap_tnt_NavigationList_ItemFocusBorderRadius: @_sap_tnt_NavigationList_ItemBorderRadius + @sapUiContentFocusWidth;
@_sap_tnt_NavigationList_ItemTransition: background-color 0.3s ease-in-out, max-width 0.3s ease-in-out;
@_sap_tnt_NavigationList_SelectedBorderStyleColor: none;
@_sap_tnt_NavigationList_Collapsed_SelectedItemBorderStyleColor: solid @_sap_tnt_NavigationList_SelectedItemBorderColor;
@_sap_tnt_NavigationList_SelectedItemBorder: none;
@_sap_tnt_NavigationList_Collapsed_SelectedItemBorder: 0.125rem solid @_sap_tnt_NavigationList_SelectedItemBorderColor;
@_sap_tnt_NavigationList_GroupIconWidth: 2rem;
@_sap_tnt_NavigationList_GroupBottomMarginInPopup: 0.75rem;
@_sap_tnt_NavigationList_GroupTextWeight: bold;
@_sap_tnt_NavigationList_NoIconsNestedItemPadding: 2rem;
@_sap_tnt_NavigationList_Padding: 0.5rem;
@_sap_tnt_NavigationList_PaddingCompact: 1.5rem 0.75rem 0.75rem 0.75rem;
@_sap_tnt_NavigationList_ParentPopupPadding: 0.75rem;
@_sap_tnt_NavigationList_ParentPopupBorderRadius: 0.75rem;
@_sap_tnt_NavigationList_PopupItemPadding: 0 0.5rem;
@_sap_tnt_NavigationList_PopupIconWidth: 0.5rem;
@_sap_tnt_NavigationList_PopupBoxShadow: 0 0 0.125rem 0 fade(@sapUiContentShadowColor, 48), 0 1rem 2rem 0 fade(@sapUiContentShadowColor, 16);
@_sap_tnt_NavigationList_PopupArrowBoxShadow: 0 0 0.125rem 0 fade(@sapUiContentShadowColor, 48), 0 1rem 2rem 0 fade(@sapUiContentShadowColor, 16);
@_sap_tnt_NavigationList_PopupTitleTextSize: 1.25rem;
@_sap_tnt_NavigationList_PopupTitleLineHeight: 1.5rem;
@_sap_tnt_NavigationList_SelectionIndicatorDisplay: block;
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusTextDisplay: block;
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemZIndex: 1;
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPosition: absolute;
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPadding: 0.5rem 0.5rem 0.5rem 0.25rem;
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPaddingCompact: 0.5rem 0.5rem 0.5rem 0;

/* END "NavigationList.less" */
 // keep this order, it reuses variable @_sap_tnt_SideNavigation_BoxShadow defined in SideNavigation.less
/* START "ToolHeader.less" */
/* =================================== */
/* CSS for control sap.tnt/ToolHeader  */
/* Horizon theme                       */
/* =================================== */

@_sap_tnt_ToolHeader_Height: 3.25rem;
@_sap_tnt_ToolHeader_BorderRadius: 0.5rem;
@_sap_tnt_ToolHeader_BoxShadow: @_sap_tnt_ToolHeader_Shadow;
@_sap_tnt_ToolHeader_IconHeight: 0.75rem;
@_sap_tnt_ToolHeader_DisabledOpacity: @sapUiContentDisabledOpacity;
@_sap_tnt_ToolHeader_ArrowHeight: 0.125rem;
@_sap_tnt_ToolHeader_ArrowMargin: 0 -0.25rem;
@_sap_tnt_ToolHeader_Padding: 0 0.75rem;
@_sap_tnt_ToolHeader_ArrowMarginBottom: 0.25rem;
@_sap_tnt_ToolHeader_IconTabHeader_Height: auto;
@_sap_tnt_ToolHeader_Shadow: 0 0 0.125rem 0 fade(@sapUiContentShadowColor,16), 0 0.5rem 1rem 0 fade(@sapUiContentShadowColor, 16);

// ==========================================================================
// sap.m.Toolbar overriding
// ==========================================================================

.sapTntToolHeader:not(.sapUshellShellToolHeader) {
	&.sapMTB {
		background-color: @sapUiShellColor;
		padding: 0 1.25rem 0 0.75rem;
	}

	&.sapMTBStandard {
		border-bottom: none;
	}
}

.sapTntToolHeader {
	&.sapMIBar.sapMTB .sapMBarChild ~ .sapMBarChild {
		margin: 0 0 0 0.375rem;
	}

	&.sapMIBar.sapMTB .sapMBarChild.sapMTBSeparator {
		background: none;
		width: 0.75rem;
	}
}

// Styling for the cases when we have Header and SubHeader
.sapTntToolPageHeaderWithSubHeaderWrapper .sapTntToolPageHeader:first-of-type .sapTntToolHeader {
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
	box-shadow: none;
}

.sapTntToolPageHeaderWithSubHeaderWrapper .sapTntToolPageHeader:nth-of-type(2) .sapTntToolHeader {
	border-top-right-radius: 0;
	border-top-left-radius: 0;
	box-shadow: none;
}

.sapTntToolPageHeaderWrapper.sapTntToolPageHeaderWithSubHeaderWrapper {
	box-shadow: @_sap_tnt_ToolHeader_BoxShadow;
	border-radius: @_sap_tnt_ToolHeader_BorderRadius;
}

// ==========================================================================
// sap.m.Button overriding
// ==========================================================================

.sapTntToolHeader {
	.sapMBarChild:not(.sapMMenuBtn) {
		&.sapMBtn {
			padding: 0.125rem 0;
			min-width: 2.5rem;
		}

		&.sapMBtn .sapMBtnTransparent,
		&.sapMBtn .sapMBtnDefault,
		&.sapMBtn .sapMBtnBack,
		&.sapMBtn .sapMBtnUp {
			color: @sapContent_IconColor;
			background-color: @sapButton_Lite_Background;
			height: 2.5rem;

			.sapUiIcon {
				color: @sapContent_IconColor;
				line-height: 2.5rem;
			}

			.sapMBtnContent {
				line-height: 2.5rem;
			}
		}

		&.sapMBtn:focus .sapMBtnTransparent.sapMFocusable,
		&.sapMBtn:focus .sapMBtnEmphasized.sapMFocusable,
		&.sapMBtn:focus .sapMBtnDefault.sapMFocusable,
		&.sapMBtn:focus .sapMBtnBack.sapMFocusable,
		&.sapMBtn:focus .sapMBtnUp.sapMFocusable {
			&::before {
				outline: @sapContent_FocusStyle @sapContent_FocusWidth @sapContent_FocusColor;
				border: none !important;
			}
		}

		&.sapMBtn:hover:not(.sapMBtnDisabled) .sapMBtnTransparent,
		&.sapMBtn:hover:not(.sapMBtnDisabled) .sapMBtnDefault,
		&.sapMBtn:hover:not(.sapMBtnDisabled) .sapMBtnBack,
		&.sapMBtn:hover:not(.sapMBtnDisabled) .sapMBtnUp {
			background: @sapButton_Lite_Hover_Background;
			color: @sapContent_IconColor;
			box-shadow: none;
		}

		&.sapMBtn:active:not(.sapMBtnDisabled) .sapMBtnTransparent,
		&.sapMBtn:active:not(.sapMBtnDisabled) .sapMBtnDefault,
		&.sapMBtn:active:not(.sapMBtnDisabled) .sapMBtnBack,
		&.sapMBtn:active:not(.sapMBtnDisabled) .sapMBtnUp {
			background:  @sapActiveColor;
			color: @sapContent_IconColor;
			box-shadow: none;
		}

		&.sapMBtn:hover:not(.sapMBtnDisabled) > .sapMBtnTransparent.sapMBtnHoverable:not(.sapMBtnActive):not(.sapMToggleBtnPressed):not(.sapMBtnEmphasized) .sapUiIcon {
			color: @sapContent_IconColor;
		}
	}
}

.sapUiSizeCompact {
	.sapTntToolHeader {
		.sapMBarChild:not(.sapMMenuBtn) {
			&.sapMBtn {
				padding: 0;
				min-width: 2rem;

				.sapMBadgeTopRight.sapMBadge .sapMBadgeIndicator {
					position: absolute;
					top: -0.3125rem;
					right: -0.4375rem;
					padding-right: 0.125rem;
				}

				.sapMBadgeTopRight.sapMBadge.sapMBtnIconFirst:not(.sapMBtnText) {
					padding: 0;
				}
			}

			&.sapMBtn .sapMBtnTransparent,
			&.sapMBtn .sapMBtnDefault,
			&.sapMBtn .sapMBtnBack,
			&.sapMBtn .sapMBtnUp {
				height: 2rem;

				.sapUiIcon {
					line-height: 2rem;
				}

				.sapMBtnContent {
					line-height: 2rem;
				}
			}
		}
	}
}

// ==========================================================================
// sap.m.Text, sap.m.Title and sap.m.Label overriding
// ==========================================================================

.sapTntToolHeader {
	.sapMTitle {
		text-shadow: none;
		font-family: @sapFontBlackFamily;
		font-size: 1.125rem;
		line-height: 1.625rem;
	}

	.sapMText,
	.sapMLabel {
		line-height: @sapContent_LineHeight;
		color: @sapContent_LabelColor;
	}

	&.sapMIBar.sapMTB .sapMBarChild.sapMText,
	&.sapMIBar.sapMTB .sapMBarChild.sapMLabel {
		margin-top: 2px; // to align the text/label with the title
		margin-left: 0.75rem;
	}
}

.sapUiSizeCompact {
	.sapTntToolHeader {
		&.sapMIBar.sapMTB .sapMBarChild.sapMText,
		&.sapMIBar.sapMTB .sapMBarChild.sapMLabel {
			margin-top: 3px; // to align the text/label with the title
		}
	}
}

// ==========================================================================
// sap.m.SearchField overriding
// ==========================================================================

.sapTntToolHeader {
	.sapMSF {
		height: 2.5rem;
		padding-top: 0px;

		&:not(.sapMSFVal) .sapMSFS {
			pointer-events: none;
		}
	}

	.sapMSF .sapMSFF {
		border-radius: 2rem;
		height: 2.5rem;
		background-color: @sapUiShellInteractiveBackground;

		&:hover {
			background: @sapUiShellHoverBackground;
			box-shadow: 0 0 0.125rem 0 fade(@sapUiContentShadowColor, 16), 0 0.5rem 1rem 0 fade(@sapUiContentShadowColor, 16);
		}

		.sapMSFI {
			color: @sapUiShellTextColor;
		}
	}

	.sapMSF.sapMFocus .sapMSFF {
		background: @sapUiShellActiveBackground;
	}

	.sapMSFB {
		width: 2rem;
		height: 2rem;
		margin-top: 0.25rem;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.sapMSFB.sapMSFBA {
		background: none;
		box-shadow: none;
	}

	.sapMSFSSI {
		display: inline;
	}

	.sapMSFF .sapMSFSSI:before {
		content: "\e00d";
		color: @sapUiContentNonInteractiveIconColor;
		display: block;
		font-style: normal;
		width: 1rem;
		height: 1rem;
		font-family: 'SAP-icons';
		margin-right: 0.375rem;
		margin-top: 0.75rem;
	}

	.sapMSFS::after {
		content: "\e1ed";
	}

	.sapMSFR::after,
	.sapMSFS::after  {
		display: block;
		width: 1.25rem;
		height: 1.25rem;
		border-radius: 0.75rem;
		font-size: 0.75rem;
		line-height: 1.25rem;
	}

	.sapMSFS {
		margin-right: 0.25rem;
		border: none;
	}

	.sapMSFS:active,
	.sapMSFS:hover,
	.sapMSFR:active,
	.sapMSFR:hover {
		background: none;
		box-shadow: none;
		line-height: 1.25rem;
	}

	.sapMSFS:active::after,
	.sapMSFS.sapMSFBA::after,
	.sapMSFR:active::after {
		background: @sapActiveColor;
		color: @sapContent_IconColor;
	}

	.sapMSFS:hover::after,
	.sapMSFR:hover::after {
		background: @sapHoverColor;
		color: @sapContent_IconColor;
	}

	.sapMSFVal.sapMFocus .sapMSFF {
		box-shadow: 0 0 0.125rem 0 fade(@sapUiContentShadowColor, 16), 0 0.5rem 1rem 0 fade(@sapUiContentShadowColor, 16);

		&::before {
			display: none;
		}

		.sapMSFS.sapMSFB::after {
			outline: @sapUiContentFocusWidth @sapUiContentFocusStyle @sapUiContentFocusColor;
		}
	}
}

.sapUiSizeCompact {
	.sapTntToolHeader {
		.sapMSF {
			height: 2rem;
		}

		.sapMSF .sapMSFF {
			height: 2rem;
		}

		.sapMSFB {
			margin-top: 0.1875rem;
			width: 1.625rem;
			height: 1.625rem;
		}

		.sapMSFS {
			margin-right: 0.1875rem;
		}

		.sapMSFF .sapMSFSSI:before {
			margin-top: 0.5rem;
		}
	}
}

// ==========================================================================
// sap.m.IconTabHeader overriding
// ==========================================================================

.sapTntToolHeader {
	.sapUshellShellTabBar .sapMITH,
	.sapUshellShellTabBar.sapMITH {
		box-shadow: none;
	}
}

// ==========================================================================
// sap.m.Image overriding
// ==========================================================================

.sapTntToolHeader {
	.sapMImg {
		height: 1.625rem;
	}

	&.sapMIBar.sapMTB {
		.sapMBarChild.sapMImg:first-child,
		.sapMBarChild.sapMBtn + .sapMBarChild.sapMImg:first-of-type {
			margin-left: 0.75rem;
		}
	}

	.sapMImgFocusable:focus {
		outline: @sapContent_FocusStyle @sapContent_FocusWidth @sapContent_FocusColor;
		outline-offset: 0.125rem;
		border-radius: 0.25rem;
	}
}
/* END "ToolHeader.less" */

/* START "ToolPage.less" */
/* =================================== */
/* CSS for control sap.tnt/ToolPage  */
/* Horizon theme                       */
/* =================================== */

@_sap_tnt_ToolPage_Paddings: 0.5rem 0.5rem 0 0.5rem;
@_sap_tnt_ToolPage_PaddingsTablet: 0.5rem;
@_sap_tnt_ToolPage_PaddingsPhone: 0.25rem;
@_sap_tnt_ToolPage_AsideMargins: 0.5rem 0.5rem 0 0;
@_sap_tnt_ToolPage_AsideMarginsPhone: 0.25rem 0.25rem 0 0;
@_sap_tnt_ToolPage_ContentMargins: 0.5rem 0 0 0;
@_sap_tnt_ToolPage_ContentMarginsPhone: 0.25rem 0 0 0;
@_sap_tnt_ToolPage_ContentShadow: 0 0 0.125rem 0 fade(@sapUiContentShadowColor,16), 0 0.5rem 1rem 0 fade(@sapUiContentShadowColor, 16);
@_sap_tnt_ToolPage_ContentBackgroundStandard: @sapUiBaseBG;
@_sap_tnt_ToolPage_ContentBackgroundSolid: @sapUiBaseBG;
@_sap_tnt_ToolPage_ContentBackgroundTransparent: transparent;
@_sap_tnt_ToolPage_ContentBackgroundList: @sapUiGroupContentBackground;
@_sap_tnt_ToolPage_ContentBorderRadius: 0.5rem 0.5rem 0 0;
@_sap_tnt_ToolPage_ContentBorderRadiusTabletPhone: 0.5rem;
@_sap_tnt_ToolPage_AsideCollapsedPhoneTransform: calc(~"-100% - 0.25rem");
@_sap_tnt_ToolPage_AsideCollapsedPhoneTransformRtl: calc(~"100% + 0.25rem");
@_sap_tnt_ToolPage_AsidePhoneTop: -0.4375rem;
@_sap_tnt_ToolPage_AsidePhoneWidth: 100%;
/* END "ToolPage.less" */
