/*
	Styles added in PolyWatcher v2 for the Blazor components. The original
	styles from v1 are kept in the other css files
*/

/*
	Overlays and dialogs
*/
.FixedOverlay {
	position: fixed;
}

.ModalOverlay {
	z-index: 150;
}

.MessageBoxOverlay {
	z-index: 250;
}

.CenteredDialog {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width: calc(100vw - 20px);
	max-height: calc(100vh - 20px);
}

.Modal.CenteredDialog .ModalContentContainer {
	height: calc(100% - 30px - 20px - 60px);
	display: flex;
	flex-direction: column;
}

.Modal.CenteredDialog .ModalContentControlsContainer {
	flex: 1;
}

/*
	Busy indicator covering the parent element
*/
.BusyOverlay {
	z-index: 10;
}

.BusyOverlayIndicator {
	z-index: 11;
}

.GridContainer {
	position: relative;
}

/*
	Header menu
*/
.HeaderMenu.Open {
	display: block;
}

.HeaderMenuBackdrop {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999;
}

.HeaderMenuLinkButton {
	display: block;
	width: 100%;
	border: none;
	background: transparent;
	color: #333333;
	text-align: left;
	white-space: nowrap;
	padding: 10px 40px 10px 10px;
	margin: 0;
	border-radius: 0;
	font-size: 14px;
	cursor: pointer;
}

.HeaderMenuLinkButton:hover, .HeaderMenuLinkButton:focus {
	background-color: #62B3E5;
	color: #FFFFFF;
	border: none;
}

.HeaderMenuLinkButton .material-icons {
	padding-right: 10px;
}

/*
	Blazor validation
*/
.validation-errors {
	color: #D82373;
	margin: 0;
	padding-left: 20px;
}

.validation-message {
	color: #D82373;
}

input.invalid, textarea.invalid, select.invalid {
	border-color: #D82373;
}

/*
	Inline edit fields
*/
.InlineEditField {
	position: relative;
}

.InlineEditButtons {
	right: 0;
	top: 100%;
	margin-top: 2px;
}

/*
	Autocomplete
*/
.AutocompleteContainer {
	position: relative;
}

.AutocompleteSuggestions {
	display: block;
	left: 0;
	right: 0;
	top: 100%;
}

/*
	Before/after slider used in the snapshot preview
*/
.BeforeAfterContainer {
	position: relative;
	display: inline-block;
	max-width: 100%;
	overflow: hidden;
	cursor: ew-resize;
	user-select: none;
	touch-action: none;
}

.BeforeAfterImage {
	display: block;
	max-width: 100%;
	pointer-events: none;
}

.BeforeAfterAfter {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

.BeforeAfterHandle {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 3px;
	margin-left: -1px;
	background-color: #FFFFFF;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.BeforeAfterHandle .material-icons {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #FFFFFF;
	color: #333333;
	border-radius: 50%;
	padding: 4px;
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.BeforeAfterLabel {
	position: absolute;
	top: 10px;
	padding: 2px 8px;
	background-color: rgba(0, 0, 0, 0.5);
	color: #FFFFFF;
	font-size: 12px;
	pointer-events: none;
}

.BeforeAfterLabelLeft {
	left: 10px;
}

.BeforeAfterLabelRight {
	right: 10px;
}

.PreviewSingleImage {
	max-width: 100%;
}

/*
	Blazor error UI
*/
#blazor-error-ui {
	background: lightyellow;
	bottom: 0;
	box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
	display: none;
	left: 0;
	padding: 0.6rem 1.25rem 0.7rem 1.25rem;
	position: fixed;
	width: 100%;
	z-index: 1000;
}

#blazor-error-ui .dismiss {
	cursor: pointer;
	position: absolute;
	right: 0.75rem;
	top: 0.5rem;
}

.blazor-error-boundary {
	color: #D82373;
}
