/* nxDialog, v1.60 (2024-12-13) */

.nxDialogVeil {
	background-color: rgba(255, 255, 255, 0.5);
	position: fixed;
	left: 0;
	right: 0;
	top:  0;
	bottom: 0;
	-webkit-user-select: none;
	user-select: none;
	z-index: 100;
}

.nxDialog {
	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.45);
	position: absolute;
	background: #ebebeb;
	border: 1px solid #888;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 95vw;
	display: grid;
	gap: 20px;
	grid-template-columns: max-content 1fr;
}

.nxDialogTitle:not(:empty) {
	padding: 0.3em 0.7em 0.4em 0.7em;
}

.nxDialogTitle {
    word-wrap: break-word;
	position: relative;
	color: white;
	background-color: #373737;
	cursor: move;
	grid-area: 1 / 1 / 2 / 3;
}

.nxDialogBody {
    word-wrap: break-word;
	max-height: 80vh;
	overflow: auto;
	grid-area: 2 / 2 / 3 / 3;
	margin-right: 10px;
}

.nxDialogBody.nxDialogOverflow + .nxDialogButtons {
	border-top: 1px solid #666;
	box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px 5px;
	background-color: rgba(255, 255, 255, 0.5);
}

.nxDialogButtons {
	position: relative;
	text-align: right;
	transition-property: border-top, box-shadow, background-color;
	transition-duration: 0.3s;
	grid-area: 3 / 1 / 4 / 3;
	padding: 10px;
}

.nxDialogBody > *:first-child {
	margin-top: 0;
}

.nxDialogBody > *:last-child {
	margin-bottom: 0;
}

.nxDialogBody input[type=text], .nxDialogBody input[type=password], .nxDialogBody textarea {
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: 1px solid #ccc;
	background-color: white;
	font-size: inherit;
	padding: 3px;
	color: #444;
	box-sizing: border-box;
}

.nxDialogBody input:focus, .nxDialogBody textarea:focus {
	border: 1px solid #ccc;
	background-color: #ffffff;
	color: #444;
}

.nxDialogIconWrapper {
	grid-area: 2 / 1 / 3 / 2;
	margin-left: 10px;
}

.nxDialogIconWrapper:empty {
	display: none;
}

.nxDialogIconWrapper:empty + .nxDialogBody {
	grid-area: 2 / 1 / 3 / 3;
	margin-left: 20px;
	margin-right: 20px;
}