
dialog {
	display: block flow-root;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	right: 0px;
	bottom: 0px;
	left: 0px;
	margin: 0px;
	padding: 0px;
	background: rgba(0,0,0,0.5);
	/* transform: translate(0%, -100%); */
	transition: all 250ms ease-out;
	pointer-events: none;
	opacity: 0;
	z-index: 30;
}

dialog[data-layout="flex"] {
	display: block flex;
}

dialog[data-layout="grid"] {
	display: block grid;
}

dialog[open] {
	transform: translate(0%, 0%);
	opacity: 1;
	pointer-events: all;
}

dialog article {
	display: block;
	position: fixed;
	width: auto;
	height: auto;
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	transform: translate(-50%, -50%);
	transition: all 250ms ease-out;
	color: var(--article-color);
	background: var(--article-background);
	border: 1px solid var(--article-border);
	border-radius: 8px;
	z-index: 31;
}

dialog article h3 {
	display: block;
	position: static;
	margin: 0px;
	padding: 8px 8px;
	font-family: 'cantarell';
	font-weight: bold;
	font-size: 16px;
	text-align: center;
	color: var(--header-color);
	background: var(--header-background);
	border-radius: 8px 8px 0px 0px;
	user-select: none;
}

dialog article button[data-action="close"] {
	display: block;
	position: absolute;
	width: auto;
	top: 4px;
	right: 4px;
	margin: 0px;
	padding: 4px 6px;
}

dialog article button[data-action="close"]:before {
	margin: 0px;
}

dialog article fieldset {
	margin: 16px;
}

dialog article table {
	margin: 16px;
}

dialog article table tbody td {
	padding: 0px 8px;
	font-family: 'vera-mono';
	font-weight: normal;
	font-size: 16px;
	line-height: 30px;
	vertical-align: middle;
}

dialog article table tbody td:first-of-type {
	border-bottom: 1px solid var(--input-default-border);
}

dialog article table tbody td:last-of-type {
	border-left: 1px solid var(--input-default-border);
	border-bottom: 1px solid var(--input-default-border);
}

dialog article table tbody td input {
	vertical-align: middle;
}
