/* ============================================================= */
/* CSS for control sap.suite.ui.commons/CalculationBuilderInput  */
/* Base theme                                                    */
/* ============================================================= */

.sapCalculationBuilderInput {
	border: 1px solid var(--sapGroup_TitleBorderColor);
	padding: 0.75rem;
	min-height: 2.5rem;
	position: relative;
	user-select: text;

	&:focus {
		outline: none;
	}

	&:focus::before {
		content: '';
		position: absolute;
		top: 2px;
		left: 2px;
		right: 2px;
		bottom: 2px;
		border: var(--sapContent_FocusWidth) var(--sapContent_FocusStyle) var(--sapContent_FocusColor);
		pointer-events: none;
	}

	box-sizing: border-box;
}

.sapUiSizeCompact .sapCalculationBuilderInput {
	padding: 0.25rem;
	min-height: 1.725rem;
}

html.sap-phone .sapCalculationBuilderInput span,
html.sap-tablet:not(.sap-desktop) .sapCalculationBuilderInput span {
	-webkit-user-select: text;
}

.sapCalculationBuilderInputError.sapCalculationBuilderInput {
	border-color: var(--sapErrorBorderColor);
	border-width: 2px;
}

.sapCalculationBuilderInputWrapper {
	background-color: var(--sapField_Background);
}

.sapCalculationBuilderInputOuterWrapperMargin {
	margin-top: 1rem;
}

.sapCalculationBuilderInputToolbar {
	border: none;
	height: 3rem;

	.sapCalculationBuilderInputToolbarFunctionMenu {
		margin-left: 0.75rem;
	}

	.sapCalculationBuilderInputToolbarMenuButtons {

		.sapMBtnInner {
			height: 2rem;
		}

		.sapMBtnContent {
			line-height: 30px;
		}

		&.sapMMenuBtn.sapMMenuBtnRegular .sapMBtnInner::after {
			height: 30px;
			line-height: 30px;
		}
	}

	.sapCalculationBuilderInputToolbarButtons {

		.sapMBtnInner {
			height: 2rem;
		}

		.sapMBtnContent {
			line-height: 30px;
			font-size: 1.25rem;
			font-weight: bold;
		}

		.sapMBtnIcon {
			line-height: 30px;
		}
	}
}

.sapUiSizeCompact .sapCalculationBuilderInputToolbar {
	height: 3rem;

	.sapMBtn {
		padding: 0;
	}
}

.sapCalculationBuilderReadOnly .sapCalculationBuilderInputWrapper {
	background: transparent;
}

.sapCalculationBuilderReadOnly .sapCalculationBuilderInput {
	border: none;
}

.sapCalculationBuilderInputErrorArea {
	white-space: pre-line;
	background-color: var(--sapErrorBackground);
	font-size: var(--sapFontSmallSize);
	position: relative;
	width: max-content;
	padding: 3px;
	display: none;
	z-index: 1;
}

.sapCalculationBuilderItemTextDefault {
	overflow-wrap: break-word;
}