
/**
 * Hacks of Tabler bugs
 */

.ql-container {
	padding: 0 !important;
}
.nav-link {
	border-radius: 0 !important;
}


/**
 * Tabler modifiers
 */

.form-control::placeholder {
	color: #a8aeb7 !important;
}

.dimmer.active .loader {
	z-index: 1000;
}
.dimmer.active .dimmer-content {
	position: relative;
	opacity: 1;
}
	.dimmer.active .dimmer-content:after {
		content: '';
		position: absolute; z-index: 999;
		top: 0; left: 0; bottom: 0; right: 0;
		background: var(--light);
		opacity: .66;
	}

.form-selectgroup-input:disabled~.form-selectgroup-label,
.form-selectgroup-input[disabled]~.form-selectgroup-label {
	opacity: .5;
	pointer-events: none;
}

.secondary-navigation .list-group .list-group-item {
	line-height: 1.33;
}
	.secondary-navigation .list-group .list-group-item svg,
	.secondary-navigation .list-group .list-group-item small {
		align-self: flex-start;
		margin: .15em 0;
	}

.list-group-item-muted {
	background: var(--light);
}


/**
 * Modals
 */
.modal-header .modal-title {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.modal-backdrop + .modal-backdrop {
	z-index: 1060 !important;
}
.modal.show ~ .modal.show {
	z-index: 1070 !important;
}


/**
 * Flash messages
 */

.flash-message-container {
	display: block; width: 28rem; max-width: 90vw;
	position: fixed; top: 1rem; left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
}
@media (min-width: 64rem) {
	.flash-message-container {
		max-width: 50vw;
		top: 2rem; left: calc(50% + 7.5rem);
	}
}
	.flash-message-container > div {
		box-shadow: 0 .5rem .75rem rgba(0, 0, 0, .05);
	}


/**
 * Background utility runner
 */

.utility-background-runner-container {
	display: block; width: 28rem; max-width: 90vw;
	position: fixed; bottom: 2rem; left: 2rem;
	z-index: 10000;
}
	.utility-background-runner-container > div {
		box-shadow: 0 .5rem .75rem rgba(0, 0, 0, .05);
	}


/**
 * Multiupload
 */

.dropzone,
.dropzone form {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: center;
	width: 100%;
	text-align: center;
}
.dropzone.has-advanced-upload
{
	outline: 2px dashed rgba(0, 0, 0, .1);
	outline-offset: -.75rem;
	-webkit-transition: outline-offset .15s ease-in-out, background-color .15s linear;
	transition: outline-offset .15s ease-in-out, background-color .15s linear;
}
.dropzone.is-dragover
{
	outline-offset: -.5rem;
	outline-color: rgba(0, 0, 0, .2);
	background-color: #cfeab3;
}
.dropzone__dragndrop,
.dropzone__icon
{
	display: none;
}
.dropzone.has-advanced-upload .dropzone__dragndrop
{
	display: inline;
}
.dropzone.has-advanced-upload .dropzone__icon
{
	display: block;
	width: 100%;
	height: 2rem;
	fill: rgba(0, 0, 0, .1);
	margin: 2rem 0;
}

.dropzone__input {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	justify-content: space-around;
	width: 100%;
}

.dropzone.is-uploading .dropzone__input,
.dropzone.is-success .dropzone__input,
.dropzone.is-error .dropzone__input,
.dropzone.is-uploading .dropzone__button,
.dropzone.is-success .dropzone__button,
.dropzone.is-error .dropzone__button
{
	visibility: hidden;
}

.dropzone__uploading,
.dropzone__success,
.dropzone__error
{
	display: none;
	flex-grow: 1;
}
.dropzone.is-uploading .dropzone__uploading,
.dropzone.is-success .dropzone__success,
.dropzone.is-error .dropzone__error
{
	display: block;
}
.dropzone__uploading
{
	font-style: italic;
}

.dropzone__button
{
	display: block;
	margin: .5rem auto 1.5rem auto;
}

.js .dropzone__file
{
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	position: absolute;
	z-index: -1;
}
.js .dropzone__file + label
{
	max-width: 80%;
	margin: 0 auto;
	cursor: pointer;
	display: inline-block;
	overflow: hidden;
}
.js .dropzone__file + label:hover strong,
.dropzone__file:focus + label strong,
.dropzone__file.has-focus + label strong
{
	color: #39bfd3;
}
.js .dropzone__file:focus + label,
.js .dropzone__file.has-focus + label
{
	outline: 1px dotted #000;
}

.no-js .dropzone__file + label
{
	display: none;
}

.no-js .dropzone__button
{
	display: block;
}


/**
 * Draggable sorting
 */

.sortable-ghost .card {
	position: relative;
}

.sortable-ghost .card:after {
	content: ''; display: block; width: 100%; height: 100%;
	position: absolute; top: 0; left: 0;
	box-sizing: border-box;
	border: .5rem solid rgba(94, 186, 0, .2);
	background: #f5f7fb;
}

.sortable-dragged-item {
	opacity: 1;
}

.image-box .dimmer.active .dimmer-content {
	opacity: .3 !important;
}


/**
 * Inline single-input forms
 */
.form-control-plaintext[value=""] {
	font-style: italic;
}
.form-control-plaintext:hover {
	background: lightyellow;
}


/**
 * Selectize.js multiselect control
 */
.form-control.selectize-control {
	height: auto;
	min-height: 2.375rem;
}


/**
 * Selectable items
 */

.selectable-wrapper {
	display: inline-block;
	position: relative;
}
.selectable-wrapper.active.checked:before {
	content: '';
	position: absolute;
	top: .75rem;
	left: .75rem;
	display: block;
	width: 1.25rem;
	height: 1.25em;
	pointer-events: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background: #467fcf url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E") no-repeat center center/50% 50%;
	color: #fff;
	z-index: 1;
	border-radius: 3px;
	opacity: 1;
	transition: .3s opacity;
}
.selectable-wrapper.active:after {
	content: ''; display: block; width: 100%; height: 100%;
	position: absolute; top: 0; left: 0;
	/*background: rgba(0, 255, 255, .2);*/
	cursor: pointer;
}
.selectable-wrapper.active > * {
	opacity: .5;
	transition: .3s opacity;
}
.selectable-wrapper.active:hover > * {
	opacity: .75;
}
.selectable-wrapper.active.checked > * {
	opacity: 1;
}


/**
 * Image management sidebar (file upload component etc.)
 */

.image-tools-sidebar {
	position: -webkit-sticky;
	position: sticky;
	top: 1rem;
}


/**
 * Carousel of images
 */
.aui-carousel-container {
	display: none; width: 100vw; height: 100vh;
	position: fixed; top: 0; left: 0;
	z-index: 1500;
	background: rgba(0, 0, 0, .75);
}
.aui-carousel-container.shown {
	display: block;
}
.aui-carousel-container .carousel {
	display: flex; width: 100vw; height: 100vh;
	justify-content: center; align-items: center;
	position: fixed; top: 0; left: 0;
}
.aui-carousel-container .carousel-inner {
	width: auto;
}
.aui-carousel-container .carousel-indicators {
	bottom: auto; top: 2rem;
}
.aui-carousel-container .carousel-indicators li {
	/*content: '•';*/
	cursor: pointer;
}
.aui-carousel-container .carousel-caption {
	text-shadow: 0 .1em .33em rgba(0, 0, 0, 1);
}
