.modal-overlay
{
	display: flex;
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	z-index: 1000;
	background-color: rgba(0, 0, 0, 0.3);
}

.modal
{
	position: relative;
	background-color: #ffffff;
	border: outset;
	min-height: 10%;
	height: max-content;
	max-height: 90%;
	min-width: 20%;
	width: max-content;
	max-width: 90%;
	display: block;
	margin: auto;
	text-align: center;
	border-radius: 10px;
	border-width: 2px;
  box-shadow: 2px 2px 5px #170fee;
	color: #7f7f7f;
}

.modal *
{
	color: inherit;
}

.modal > div
{
	display: block;
}

.modal-title
{
	background-color: #005494;
	padding: 5px;
	text-align: left;
	border-radius: 10px 10px 0 0;
}

.modal-title > span
{
	width: calc(100% - 25px);
	display: inline-block;
	text-align: left;
	overflow-x: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: text-bottom;
	color: #ffffff;
}

.modal-close
{
	width: 25px;
	height: 25px;
	right: 5px;
	top: 5px;
	font-size: 25px;
	position: absolute;
	color: #939ca1 !important;
	cursor: pointer;
}
.modal-close:hover
{
	color: #dee4e4 !important;
}

.modal-content
{
	border-radius: 0;
	padding: 10px;
  overflow-y: auto;
  max-height: calc(90vh - 80px);
}

.modal-buttons
{
	background-color: #005494;
	padding: 3px 5px 2px 5px;
  text-align: right;
	border-radius: 0 0 10px 10px;
}

.modal-button
{
    height: 30px;
    padding: 5px;
    margin: 0px 2px 0px 8px;
    line-height: normal;
    font-size: 13px;
    border-radius: 1px;
}

.modal-button:last-child
{
    border-bottom-right-radius: 5px;
}

/*************************** Special cases ********************************/

.modal.alert
{
    min-width: 50%;
    padding: 0;
    color: inherit;
}

.alert-success > .modal-content
{
    color: #00dd00;
}

.alert-warning > .modal-content
{
    color: #dddd00;
}

.alert-error > .modal-content
{
    color: #dd0000;
}
