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

/*!
 * OpenUI5
 * (c) Copyright 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_hcw/base.less"; /* ORIGINAL IMPORT PATH: "../../../../sap/ui/core/themes/sap_horizon_hcw/base.less" */

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

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

/* ========================================================================== */
/* Variables overriding                                                       */
/* ========================================================================== */

@_sap_tnt_InfoLabel_LineHeightDisplayOnly: 1rem;
@_sap_tnt_InfoLabel_DisplayModeBorder: none;
@_sap_tnt_InfoLabel_DisplayModeBackground: #C5CDD3;
@_sap_tnt_InfoLabel_DisplayModeColor: #2C3A48;
@_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: var(--sapFontSemiboldDuplexFamily);
@_sap_tnt_InfoLabel_FontSize: @sapMFontMediumSize;
@_sap_tnt_InfoLabel_DisplayFontSize: var(--sapFontSmallSize);
@_sap_tnt_InfoLabel_DisplayFontSizeIcon: 0.625rem;
@_sap_tnt_InfoLabel_NarrowPadding: @_sap_tnt_InfoLabel_Padding;
@_sap_tnt_InfoLabel_LetterSpacing: normal;

@_sap_tnt_InfoLabel_ColorsArray:
#FFC218 #5F2900,
#FFBABA #770606,
#FEB7D9 #71093D,
#FFB3F5 #71093D,
#D6C2FF #2500BC,
#8FD4FF #003776,
#3CE3C5 #033F45,
#9BDF47 #0C420C,
#E0C1EB #552267,
#C5CDD3 #2C3A48;

.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 High Contrast White theme       */
/* ======================================= */

@_sap_tnt_SideNavigation_Width: 16rem;
@_sap_tnt_SideNavigation_CollapsedWidth: 4rem;
@_sap_tnt_SideNavigation_NavigationSeparatorMargin: 0.25rem 0.5rem 0.25rem 0.5rem;
@_sap_tnt_SideNavigation_NavigationSeparatorHeight: 0.0625rem;
@_sap_tnt_SideNavigation_BoxShadow: var(--sapContent_Shadow0);
@_sap_tnt_SideNavigation_TriangleDisplay: none;
/* END "SideNavigation.less" */

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

@_sap_tnt_NavigationList_CollapsedWidth: 4rem;
@_sap_tnt_NavigationList_ExpandIconColor: var(--sapContent_NonInteractiveIconColor);
@_sap_tnt_NavigationList_ItemHeight: 2.75rem;
@_sap_tnt_NavigationList_ItemBorderStyleColor: solid var(--sapList_BorderColor);
@_sap_tnt_NavigationList_ItemBorderWidth: 0 0 0.0625rem 0;
@_sap_tnt_NavigationList_ItemFocusBorderOffset: 0;
@_sap_tnt_NavigationList_LastItemBorderStyleColor: solid transparent;
@_sap_tnt_NavigationList_HoverBorderStyleColor: solid var(--sapList_SelectionBorderColor);
@_sap_tnt_NavigationList_HoverBorderWidth: 0.0625rem;
@_sap_tnt_NavigationList_SelectedBorderWidth: 0.0625rem;
@_sap_tnt_NavigationList_SelectedAndFocusedBorderStyleColor: none;
@_sap_tnt_NavigationList_Collapsed_SelectedItemBackground: ~"0 100% / 0.188rem 100%" no-repeat linear-gradient(0deg, @sapUiListHighlightColor, @sapUiListHighlightColor), var(--sapList_SelectionBackgroundColor);
@_sap_tnt_NavigationList_Collapsed_SelectedItemBackgroundHover: @sapUiListSelectionHoverBackground;
@_sap_tnt_NavigationList_Collapsed_SelectedItemBackgroundRTL: ~"100% 0 / 0.188rem 100%" no-repeat linear-gradient(0deg, @sapUiListHighlightColor, @sapUiListHighlightColor), var(--sapList_SelectionBackgroundColor);
@_sap_tnt_NavigationList_ItemBottomMargin: 0.25rem;
@_sap_tnt_NavigationList_ItemBottomMarginInOverflowPopup: 0.25rem;
@_sap_tnt_NavigationList_ParentItemBottomMarginInPopup: 0.5rem;
@_sap_tnt_NavigationList_GroupTextWeight: bold;
@_sap_tnt_NavigationList_GroupIconWidth: 2rem;
@_sap_tnt_NavigationList_GroupIconWidthExpanded: 1rem;
@_sap_tnt_NavigationList_GroupIconMarginLeft: 1rem;
@_sap_tnt_NavigationList_GroupIconMarginRight: 0.5rem;
@_sap_tnt_NavigationList_NoIconsNestedItemPadding: 2rem;
@_sap_tnt_NavigationList_Padding: 0.5rem 0.5rem 0 0.5rem;
@_sap_tnt_NavigationList_PaddingFixed: 0 0.5rem 0.5rem 0.5rem;
@_sap_tnt_NavigationList_PopupItemPadding: 0 0.5rem;
@_sap_tnt_NavigationList_PopupPadding: 0.5rem;
@_sap_tnt_NavigationList_PopupTitleTextSize: var(--sapFontSize);
@_sap_tnt_NavigationList_PopupTitleLineHeight: 1.5rem;
@_sap_tnt_NavigationList_PopupPadding: 0.5rem;
@_sap_tnt_NavigationList_Collapsed_GroupBorderWidth: @_sap_tnt_NavigationList_GroupBorderWidth;
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusTextDisplay: block;
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemZIndex: 1;
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPosition: absolute;
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPadding: 0 0 0 0.5rem;
@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPaddingCompact: @_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPadding;
@_sap_tnt_NavigationList_CollapsedIconPaddingLeft: 0.25rem;
@_sap_tnt_NavigationList_CollapsedHiddenExpanderPadding: 1rem;
@_sap_tnt_NavigationList_NavigationIndicator: '\E066';
@_sap_tnt_NavigationList_ExpandIconWidth: 2.25rem;
@_sap_tnt_NavigationList_ExpandIconMarginRight: 0.375rem;
@_sap_tnt_NavigationList_ExpandIconMarginLeft: 0.25rem;
@_sap_tnt_NavigationList_ExpandIconPaddingLeft: 0.25rem;
@_sap_tnt_NavigationList_ExpandIconFontSize: 1rem;
@_sap_tnt_NavigationList_ActionItemBorderHover: 1px solid transparent;
@_sap_tnt_NavigationList_ActionItemBorderPosition: -1px;
@_sap_tnt_NavigationList_ActionItemBorderHeight: auto;
@_sap_tnt_NavigationList_ActionItemBorderPaddingLeft: calc(@_sap_tnt_NavigationList_Collapsed_HoverOrFocusItemPadding ~"-" 0.0625rem);
/* 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 High Contrast White theme   */
/* =================================== */

@_sap_tnt_ToolHeader_Height: 3.25rem;
@_sap_tnt_ToolHeader_IconHeight: 0.75rem;
@_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_DisabledOpacity: var(--sapContent_DisabledOpacity);
@_sap_tnt_ToolHeader_SF_Border: 0.0625rem solid var(--sapShell_BorderColor);

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

.sapTntToolHeader {

	&.sapMTB:not(.sapUshellShellToolHeader) {
		background-color: var(--sapShellColor);
		padding: 0 1.25rem 0 0.75rem;
	}

	&.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: none;
	box-shadow: none;
}

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

.sapTntToolHeader {

	.sapMBarChild:not(.sapMMenuBtn) {

		&.sapMBtn {
			padding: 0.125rem 0;
			min-width: 2.5rem;

			.sapMBtnInner:not(.sapMBtnEmphasized)::after,
            .sapMBtnInner:not(.sapMBtnEmphasized) .sapMBtnIcon {
				background: transparent;
				color: var(--sapShell_InteractiveTextColor);
			}

			.sapMBtnInner:not(.sapMBtnEmphasized) .sapMBtnContent {
				background: transparent;
				color: var(--sapShell_TextColor);
			}

			&:not(.sapMBtnDisabled) > span.sapMBtnInner.sapMBtnActive {
				background: var(--sapShell_Active_Background);
				border-color: var(--sapShell_Active_Background);
			}

			.sapMToggleBtnPressed:not(.sapMBtnDisabled) {
				background-color: var(--sapShell_Hover_Background);

				.sapMBtnIcon {
					color: var(--sapShell_Active_TextColor);
				}
			}

			&:hover:not(.sapMBtnDisabled) {

				.sapMToggleBtnPressed:not(.sapMBtnActive), .sapMToggleBtnPressed:not(.sapMBtnDisabled):hover  {
					background-color: var(--sapShell_Hover_Background);

					.sapMBtnIcon {
						color: var(--sapShell_Active_TextColor);
					}
				}

				> span.sapMBtnInner.sapMBtnHoverable:not(.sapMToggleBtnPressed) {

					&:not(.sapMBtnActive) {
						background: var(--sapShell_Hover_Background);
						border: 1px solid var(--sapButton_Lite_Hover_BorderColor);
					}

					&.sapMBtnActive {
						background: var(--sapShell_Active_Background);
						color: var(--sapShell_Active_TextColor);
						border: 1px solid var(--sapButton_Lite_Active_BorderColor);

							.sapMBtnContent bdi {
								color: var(--sapShell_Active_TextColor);
							}
					}

					&.sapMBtnActive::after,
					&.sapMBtnActive > .sapMBtnIcon {
						color: var(--sapShell_Active_TextColor);
					}

					&::after,
					> .sapMBtnIcon {
						color: var(--sapShell_InteractiveTextColor);
					}

					> .sapMBtnContent,
					> .sapMBtnContent bdi {
						color: var(--sapShell_TextColor);
					}
				}

				&:active {

					> .sapMBtnContent,
					> .sapMBtnInner,
					> .sapMBtnIcon {
						color: var(--sapShell_TextColor);
					}
				}
			}
		}
	}
}

.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;
				}
			}
		}

		.sapMSF {
			padding: 0 0;
		}
	}
}

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

.sapTntToolHeader {

	.sapMTitle {
		text-shadow: none;
		line-height: 1.625rem;
		font-size: var(--sapFontHeader5Size);
		font-family: var(--sapFontSemiboldDuplexFamily);
		color: var(--sapShell_SubBrand_TextColor);
	}

	.sapMText,
	.sapMLabel {
		line-height: var(--sapContent_LineHeight);
		color: var(--sapContent_LabelColor);
	}

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

.sapUiSizeCompact {

	.sapTntToolHeader {

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

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

.sapTntToolHeader {

	.sapMSF {
		height: 2.25rem;
		padding-top: 0;

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

			&::after {
				border-color: transparent;
			}
		}
	}

	.sapMSF .sapMSFF {
		border-radius: 1.125rem;
		height: 2.25rem;
		border: @_sap_tnt_ToolHeader_SF_Border;
		background-color: var(--sapShell_InteractiveBackground);
	}

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

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

	.sapMSFR::after,
	.sapMSFS::after {
		display: block;
		width: 1.25rem;
		height: 1.25rem;
		border-radius: 0.75rem;
		font-size: 0.75rem;
		line-height: 1.25rem;
		border: var(--sapButton_BorderWidth) solid var(--sapButton_BorderColor);
	}

	.sapMSFS {
		margin-right: 0.1875rem;
		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: var(--sapActiveColor);
		color: var(--sapContent_IconColor);
	}

	.sapMSFS:hover::after,
	.sapMSFR:hover::after {
		background: var(--sapShell_Hover_Background);
		color: var(--sapContent_IconColor);
		border: 1px solid var(--sapButton_Lite_Hover_BorderColor);
	}

	.sapMSFB.sapMSFR:not(:last-child):hover {
		border: none;
	}

	.sapMSFB:hover {
		border: none;
	}

	.sapMSFVal.sapMFocus .sapMSFF {
		outline: none;

		.sapMSFS.sapMSFB::after {
			border-color: transparent;
			outline: var(--sapContent_FocusWidth) solid var(--sapContent_FocusColor);
			outline-offset: -0.0625rem;
		}
	}
}

html.sap-desktop .sapTntToolHeader .sapMFocus > .sapMSFF::before {
	display: none;
}

html.sap-desktop .sapTntToolHeader .sapMSF:not(.sapMSFDisabled) {

	&:not(.sapMFocus):hover .sapMSFF,
	&.sapMFocus:not(.sapMSFVal) .sapMSFF {
		outline: var(--sapContent_FocusWidth) solid var(--sapContent_FocusColor);
		border-color: transparent;
	}
}

.sapUiSizeCompact {

	.sapTntToolHeader {

		.sapMSF {
			height: 2rem;
		}

		.sapMSF .sapMSFF {
			height: 2rem;
		}

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

		.sapMSFS {
			margin-right: 0.125rem;
		}
	}
}

/* ========================================================================== */
/* 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.5rem;
		}
	}

	.sapMImgFocusable:focus {
		outline: var(--sapContent_FocusStyle) var(--sapContent_FocusWidth) var(--sapContent_FocusColor);
		outline-offset: 0.125rem;
		border-radius: 0.25rem;
	}
}

/* ========================================================================== */
/* sap.m.Avatar overriding                                                    */
/* ========================================================================== */

.sapTntToolHeader {

	.sapFAvatarImage.sapFAvatarFocusable:not(.sapMAvatarPressed):not(.sapMAvatarDisabled) {
		border: 0.0625rem solid var(--sapShell_InteractiveBorderColor);
	}
}
/* END "ToolHeader.less" */

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

@_sap_tnt_ToolPage_ContentBackgroundStandard: var(--sapBackgroundColor);
@_sap_tnt_ToolPage_ContentBackgroundSolid: var(--sapBackgroundColor);
@_sap_tnt_ToolPage_ContentBackgroundTransparent: transparent;
@_sap_tnt_ToolPage_ContentBackgroundList: var(--sapGroup_ContentBackground);
@_sap_tnt_ToolPage_AsideCollapsedLayoutSTransform: calc(~"-100% - 0.25rem");
@_sap_tnt_ToolPage_AsideCollapsedLayoutSTransformRtl: calc(~"100% + 0.25rem");
/* END "ToolPage.less" */
