dialog > * {
	padding: 1em;
	z-index: 50;
	position: relative;
	display: table;

}
/*dialog*/
dialog {
	width: 60%;
	overflow: auto;
	display: block;
	left: 0;
	margin: auto;
	position: absolute;
	right: 0;
	z-index: 5;
  padding: 0;
  border: none;
}

dialog:not([open]) {
	display: none;
}
dialog[open] {
	display: block;
}

dialog.fade {
	top: -100%;
	transition: opacity .3s, top .3s;
}
dialog.in {
	top: 5em;
}

dialog header {
	padding: 1rem 1rem 1rem;
	clear: both;
	float: left;
	position: relative;
	width: 100%;
}
	dialog header button {
		float: right;
	}

	dialog header h3 {
		margin: 0;
	}

dialog article {
	max-height: 400px;
	padding: 1em 1em 0 1em;
	overflow-y: auto;
	width: 100%;
}

dialog footer{
	padding: 1em;
	margin-bottom: 0;
	position: relative;
	/*float: left;*/
	width: 100%;
	margin-top: 0rem;
}

dialog .close {
	float: right;	
}
.modal-backdrop{
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 4;
	content: "";
	display: block;
	height: 100%;
	width: 100%;
}

/* customization */

dialog {
	border-radius: 6px;
}

dialog footer{
	border-radius: 0 0 6px 6px;
}

dialog h3 {
  line-height: 1.5em;
  font-weight: normal;
  font-size: 1.5em;
}

dialog header .close {
	width: 2.5rem;
	height: 2.5rem;
}

dialog .alert,
dialog .button_set {
	float: left;
	position: relative;
	clear: both;
	display: block;
	width: 100%;
}

dialog .alert.hide {
	margin-top: 0rem;
}
dialog .alert.active_alert {
	margin-top: 1rem;
}
dialog .alert ul {
	margin: 0;
}

dialog header h3 {
	line-height: 1.7em;
	margin: 0;
	float: left;
  display: block;
  width: calc(100% - 4rem);
  position: relative;
  clear: none;
}