/* 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_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: @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:
#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: 3.5rem;
@_sap_tnt_SideNavigation_NavigationSeparatorHeight: 0.0625rem;
@_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 0.0625rem @sapContent_ShadowColor, 0 0.5rem 1rem 0 fade(@sapContent_ShadowColor, 16);
@_sap_tnt_SideNavigation_TriangleDisplay: none;
@_sap_tnt_SideNavigation_PhoneWidth: ~"100% !important";
/* END "SideNavigation.less" */

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

@_sap_tnt_NavigationList_CollapsedWidth: 3.5rem;
@_sap_tnt_NavigationList_IconFontSize: 1.125rem;
@_sap_tnt_NavigationList_ExpandIconColor: @sapUiContentNonInteractiveIconColor;
@_sap_tnt_NavigationList_ItemHeight: 2.5rem;
@_sap_tnt_NavigationList_ItemBorderStyleColor: solid @sapUiListBorderColor;
@_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 @sapUiListSelectionBorderColor;
@_sap_tnt_NavigationList_HoverBorderWidth: 0.0625rem;
@_sap_tnt_NavigationList_SelectedBorderWidth: 0.0625rem;
@_sap_tnt_NavigationList_SelectedAndFocusedBorderStyleColor: none;
@_sap_tnt_NavigationList_Collapsed_SelectedItemBackground: @sapUiListSelectionBackgroundColor;
@_sap_tnt_NavigationList_ItemBottomMargin: 0.25rem;
@_sap_tnt_NavigationList_ItemBottomMarginCompact: 0.25rem;
@_sap_tnt_NavigationList_GroupTextWeight: bold;
@_sap_tnt_NavigationList_GroupIconWidth: 2rem;
@_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_PopupItemPadding: 0 0.5rem;
@_sap_tnt_NavigationList_PopupIconWidth: 0.5rem;
@_sap_tnt_NavigationList_ParentPopupPadding: 0.75rem;
@_sap_tnt_NavigationList_ParentPopupBorderRadius: 0.75rem;
@_sap_tnt_NavigationList_PopupBoxShadow: 0 0 0 0.0625rem @sapUiContentShadowColor, 0 1rem 2rem 0 fade(@sapUiContentShadowColor, 16);
@_sap_tnt_NavigationList_PopupArrowBoxShadow: 0 0 0 0.0625rem @sapUiContentShadowColor, 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_PopupPadding: 0.5rem;
@_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 High Contrast White 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_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 0.0625rem @sapUiContentShadowColor, 0 0.5rem 1rem 0 fade(@sapUiContentShadowColor, 16);
@_sap_tnt_ToolHeader_DisabledOpacity: @sapUiContentDisabledOpacity;
@_sap_tnt_ToolHeader_SF_Border: 0.0625rem solid @sapUiShellBorderColor;

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

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

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

.sapTntToolPageHeaderWithSubHeaderWrapper .sapTntToolPageHeader:nth-of-type(2) .sapTntToolHeader {
	border-top-right-radius: 0;
	border-top-left-radius: 0;
	border-top: none;
	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: @sapUiContentIconColor;
			background-color: @sapUiButtonLiteBackground;
			height: 2.5rem;

			.sapUiIcon {
				color: @sapUiContentIconColor;
				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: @sapUiContentFocusStyle @sapUiContentFocusWidth @sapUiContentFocusColor;
				border: none !important;
			}
		}

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

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

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

.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: @sapUiFontBlackFamily;
		font-size: 1.125rem;
		line-height: 1.625rem;
	}

	.sapMText,
	.sapMLabel {
		line-height: @sapUiContentLineHeight;
		color: @sapUiContentLabelColor;
	}

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

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

	.sapMSF .sapMSFF {
		border-radius: 2rem;
		height: 2.5rem;
		border: @_sap_tnt_ToolHeader_SF_Border;
	}

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

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

	.sapMSFSSI {
		display: inline;
	}

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

	.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;
		border: @sapUiButtonBorderWidth solid @sapUiButtonBorderColor;
	}

	.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: @sapUiActive;
		color: @sapUiContentIconColor;
	}

	.sapMSFS:hover::after,
	.sapMSFR:hover::after {
		background: @sapUiHover;
		color: @sapUiContentIconColor;
	}

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

	.sapMSFB:hover {
		border: none;
	}

	.sapMSFVal.sapMFocus .sapMSFF {
		outline: none;

		.sapMSFS.sapMSFB::after {
			border-color: transparent;
			outline: @sapUiContentFocusWidth solid @sapUiContentFocusColor;
			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: @sapUiContentFocusWidth solid @sapUiContentFocusColor;
		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;
		}

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

// ==========================================================================
// 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: @sapUiContentFocusStyle @sapUiContentFocusWidth @sapUiContentFocusColor;
		outline-offset: 0.125rem;
		border-radius: 0.25rem;
	}
}
/* END "ToolHeader.less" */

/* START "ToolPage.less" */
/* ================================== */
/* CSS for control sap.tnt/ToolPage   */
/* Horizon High Contrast White 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_Background: @sapUiBaseBG;
@_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 0.0625rem @sapContent_ShadowColor, 0 0.5rem 1rem 0 fade(@sapContent_ShadowColor, 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" */
