#dialog {
	visibility: hidden;
	opacity: 0;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .3s;
	/* padding: 5px; */
	z-index: 30;
	background: #f9fafb;
	box-shadow:	0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
	border-radius: 3px;
	overflow: hidden;
}

#dialog.default-size {
	width: 70%;
	height: 70%;
}

#dialog.show-dialog {
	visibility: visible;
	opacity: 1;
}

#dialog.hide-dialog {
	visibility: visible;
	opacity: 1;
}

#dialog.maximized {
	width: 98% !important;
	height: 98% !important;
}

#dialog-header {
	position: absolute;
    height: 30px;
    left: 0;
    top: 0;
    width: 100%;
	border-bottom: 2px solid #666;
	background: #444;
}

#dialog-header h4 {
	padding: 1px 5px;
	color: #fff;
	margin: 0;
}

#dialog-header button.button-minimize.small {
	position: absolute;
	top: 4px;
	right: 30px;
	display: none;
}

#dialog-header button.button-maximize.small {
	position: absolute;
	top: 4px;
	right: 30px;
	display: none;
}

#dialog-header button.button-close.small {
	position: absolute;
	top: 4px;
	right: 2px;
}

#dialog-content {
	width: calc(100% - 12px);
	height: calc(100% - 80px);
	position: relative;
	top: -5px;
	overflow-y: auto;
	overflow-x: hidden;
	margin: auto;
	padding: 0 5px;
	padding-bottom: 5px;
}

/* Con esto deshabilitamos el scroll vertical cuando utilizamos un iframe */
#dialog-content iframe {
	width: calc(100% - 5px);
	height: calc(100% - 5px);
}

#dialog-content form input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='number']),
#dialog-content form textarea,
#dialog-content form select:not([multiple='multiple']),
#dialog-sub-content form input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='number']),
#dialog-sub-content form textarea,
#dialog-sub-content form select:not([multiple='multiple'])
{
	width: 100%;
}

#dialog-footer {
	width: 100%;
	height: 45px;
	position: absolute;
	bottom: 0;
	left: 0;
	padding: 2px;
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
	background: #fafafa;
	z-index: 20;
}

#dialog-messages {
	display: none;
	padding: 7px;
	width: calc(100% - 120px);
	height: 100%;
	overflow-y: auto;
}

#dialog-messages .span-icon {
	text-align: left;
}

#dialog-footer #dialog-buttons {
	/* float: right; */
	position: absolute;
	top: 0;
	right: 0;
}

#dialog-sub-content-container {
	display: none;
	position: absolute;
	bottom: 45px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
	z-index: 15;
	/*height: calc(100% - 50px);*/
	height: 0;
	width: 90%;
	background: rgba(255, 255, 255, 0.8);
	/* 	margin-left: 5%; */
	/*	transition: .3s ease-in;*/
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	overflow: hidden;
}

#dialog-sub-content-container #dialog-sub-content-close {
	position: absolute;
	top: 3px;
	right: 3px;
}

#dialog-sub-content {
	width: calc(100% - 24px);
	height: calc(100% - 80px);
	margin: 0 auto;
	margin-top: 30px;
	padding: 0 10px;
	overflow-y: auto;
	position: relative;
}

#dialog-sub-content-buttons {
	position: absolute;
	bottom: 0;
	right: 0;
	margin: 5px;
}

#dialog-content p.confirmation-dialog-text {
	font-weight: bold;
	color: #666;
	margin: 5px;
	display: block;
}

#dialog-sub-content p.confirmation-dialog-text {
	font-weight: bold;
	color: #666;
	display: block;
}

@media (max-width: 800px) {
	#dialog-content {
		width: 100%;
		padding: 0 2px;
	}

	/* #dialog {
		width: 98%;
		height: 98%;
	} */
}
