.xhr-overlay {
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-color: rgba(255,255,255, 0.3);
	cursor: wait;
}

/* overlay popup */
#modal-overlay {
	display: none;
	z-index: 1000;
	background-color: rgba(0,0,0, 0.3);
	position: fixed;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
#modal-overlay-content {
	z-index: 1001;
	max-height: calc( 100vh - 100px );
	margin-top: 70px;
	padding: 10px;
	border: 1px solid lightgray;
	background-color: white;
	border-radius: 4px;
	cursor: default;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	align-content: stretch; /* space-between */
	animation-name: anim;
	animation-duration: .2s;
	animation-timing-function: ease;	/* linear, ease-in, ease-out, ease-in-out */
	animation-iteration-count: 1;
}
@keyframes anim {
	0% {
		display: none;
		opacity: 0;
	}
	1% {
		display: block;
		opacity: 0;
		transform: scale( 0 );
	}
	100% {
		opacity: 1;
		transform: scale( 1 ) ;
	}
}
#modal-overlay-content > div {
	padding: .3em;
}
#modal-title {
	font-size: 1.3em;
}
#modal-body {
	width: 100%;
	max-height: calc( 100vh - 190px );
	overflow-y: auto;
}
#modal-body table {
	margin-bottom: 0 !important; /* bootstrap hijack */
}
#modal-buttons {
    bottom: 10px;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: stretch;
	align-content: stretch;
}
#modal-buttons .div-flex.div-left {
}
#modal-buttons .div-flex.div-right {
}
/* overlay popup */
/* -------------------------------------------------------------------------- */
/* lightbox */
#lightbox {
    margin: 0 auto;
	max-height: calc( 100vh - 2em );
	max-width: calc( 100vw - 2em );
}
#lightbox-overlay, .lightbox-fade-out {
	z-index: 15000;
    background-color: rgba( 255,255,255, .9 );
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    cursor: pointer;
	animation-duration: .5s;
	animation-timing-function: ease;
	animation-iteration-count: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
#lightbox-overlay {
	animation-name: lightboxAnim;
}
.lightbox-fade-out {
	animation-name: lightboxFadeOut;
}
@keyframes lightboxFadeOut {
	0% {
		display: block;
		opacity: 1;
	}
	1% {
		display: block;
		opacity: 1;
		transform: scale( 1 );
	}
	99% {
		display: none;
	}
	100% {
		display: none;
		opacity: 0;
		transform: scale( 0 ) ;
	}
}
@keyframes lightboxAnim {
	0% {
		display: none;
		opacity: 0;
	}
	1% {
		display: block;
		opacity: 0;
		transform: scale( 0 );
	}
	100% {
		opacity: 1;
		transform: scale( 1 ) ;
	}
}
/* lightbox */
/* -------------------------------------------------------------------------- */
/* Tooltip */
[data-hint] {
	position: relative;
	display: inline-block;
}
[data-hint]:before, [data-hint]:after {
	position: absolute;
	transform: translate3d(0, 0, 0);
	visibility: hidden;
	opacity: 0;
	z-index: 1000000;
	pointer-events: none;
	transition: 0.3s ease;
	transition-delay: 0ms;
}
[data-hint]:hover:before, [data-hint]:hover:after {
	visibility: visible;
	opacity: 1;
	transition-delay: 100ms;
}
[data-hint]:before {
	content: '';
	position: absolute;
	background: transparent;
	border: 6px solid transparent;
	z-index: 1000001;
}
[data-hint]:after {
	content: attr( data-hint );
	background: #383838;
	color: white;
	padding: 8px 10px;
	font-size: 1em;
	line-height: 12px;
	white-space: nowrap;
	border-radius: 4px;
	text-shadow: 0 -1px 0px black;
	box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}
/* top tooltip */
.hint--top:before { margin-bottom: -12px; border-top-color: #383838; }
.hint--top:before, .hint--top:after { bottom: 100%; left: 50%; }
.hint--top:after, .hint--top:before { transform: translateX(-50%); }
.hint--top:hover:after, .hint--top:hover:before, .hint--top:focus:after, .hint--top:focus:before { transform: translateX(-50%) translateY(-8px); }
/* bottom tooltip */
.hint--bottom:before { margin-top: -12px; border-bottom-color: #383838; }
.hint--bottom:before, .hint--bottom:after { top: 100%; left: 50%; }
.hint--bottom:after, .hint--bottom:before { transform: translateX(-50%); }
.hint--bottom:hover:after, .hint--bottom:hover:before, .hint--bottom:focus:after, .hint--bottom:focus:before { transform: translateX(-50%) translateY(8px); }
/* right tooltip */
.hint--right:before { margin-left: -12px; margin-bottom: -6px; border-right-color: #383838; }
.hint--right:after { margin-bottom: -14px; }
.hint--right:before, .hint--right:after { left: 100%; bottom: 50%; }
.hint--right:hover:after, .hint--right:hover:before, .hint--right:focus:after, .hint--right:focus:before { transform: translateX(8px); }
/* left tooltip */
.hint--left:before { margin-right: -12px; margin-bottom: -6px; border-left-color: #383838; }
.hint--left:after { margin-bottom: -14px; }
.hint--left:before, .hint--left:after { right: 100%; bottom: 50%; }
.hint--left:hover:after, .hint--left:hover:before, .hint--left:focus:after, .hint--left:focus:before { transform: translateX(-8px); }
/* top-left tooltip */
.hint--top-left:before { margin-bottom: -12px; border-top-color: #383838; }
.hint--top-left:before, .hint--top-left:after { bottom: 100%; left: 50%; }
.hint--top-left:after, .hint--top-left:before { transform: translateX(-100%); }
.hint--top-left:after { margin-left: 6px; }
.hint--top-left:hover:after, .hint--top-left:hover:before, .hint--top-left:focus:after, .hint--top-left:focus:before { transform: translateX(-100%) translateY(-8px); }
/* top-right tooltip */
.hint--top-right:before { margin-bottom: -12px; border-top-color: #383838; }
.hint--top-right:before, .hint--top-right:after { bottom: 100%; left: 50%; }
.hint--top-right:after, .hint--top-right:before { transform: translateX(0); }
.hint--top-right:after { margin-left: -6px; }
.hint--top-right:hover:after, .hint--top-right:hover:before, .hint--top-right:focus:after, .hint--top-right:focus:before { transform: translateY(-8px); }
/* bottom-left tooltip */
.hint--bottom-left:before { margin-top: -12px; border-bottom-color: #383838; }
.hint--bottom-left:before, .hint--bottom-left:after { top: 100%; left: 50%; }
.hint--bottom-left:after, .hint--bottom-left:before { transform: translateX(-100%); }
.hint--bottom-left:after { margin-left: 6px; }
.hint--bottom-left:hover:after, .hint--bottom-left:hover:before, .hint--bottom-left:focus:after, .hint--bottom-left:focus:before { transform: translateX(-100%) translateY(8px); }
/* bottom-right tooltip */
.hint--bottom-right:before { margin-top: -12px; border-bottom-color: #383838; }
.hint--bottom-right:before, .hint--bottom-right:after { top: 100%; left: 50%; }
.hint--bottom-right:after, .hint--bottom-right:before { transform: translateX(0); }
.hint--bottom-right:after { margin-left: -6px; }
.hint--bottom-right:hover:after, .hint--bottom-right:hover:before, .hint--bottom-right:focus:after, .hint--bottom-right:focus:before { transform: translateY(8px); }
/* Tooltip */
/* -------------------------------------------------------------------------- */
