/* ===== Fonts */
@import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap');
/* ===== */



/* ===== General */
html {
	font-size: 100%;
}

body {
	background: #fff;
	box-sizing: border-box;
	color: #000;
	font-size: 1rem;
	font-family: 'Montserrat', sans-serif;
	margin: 0;
	min-width: 320px;
}

a,
a:link,
a:visited {
	color: #551f75;
}

a:hover,
a:active {
	color: #fb3204;
}

pre,
code {
	font-family: monospace;
}

hr {
	background-color: #551f75;
	border: none;
	color: #1c8bc3;
	height: 1px;
}

h1 {
	font-size: 1.5rem;
}

h2 {
	font-size: 1.4rem;
}

h3 {
	font-size: 1.3rem;
}

h4 {
	font-size: 1.2rem;
}

h5 {
	font-size: 1.1rem;
}

h6 {
	font-size: 1rem;
}

ol {
	list-style: decimal;
}

ul {
	list-style: disc;
}

li {
	margin-left: 0.6rem;
}

p, dl, hr, h1, h2, h3, h4, h5, h6, ol, ul, pre, table, address, fieldset, figure {
	margin: 0 0 1.2rem 0;
}
/* ===== */



/* ===== Misc */
html.no-scroll,
body.no-scroll {
	overflow: hidden;
}

.clearfix:after {
	clear: both;
	content: "";
	display: block;
	height: 0;
	line-height: 0;
	visibility: hidden;
}

.js-show {
	display: none;
}

.max-window-height {
	min-height: 78%;
}
/* ===== */



/* ===== Session messages */
#session-messages {
	margin: 0 10px 15px;
}

#session-messages .session-message {
	border: 1px solid #551f75;
	border-radius: 10px;
	color: #551f75;
	cursor: pointer;
	margin: 5px auto;
	padding: 15px 50px;
}

#session-messages .session-message-info {
	background: url('img/sm_info_icon.png') 15px center no-repeat, url(img/sm_info_close.png) right 15px center no-repeat;
	background-color: #e7f5fc;
	border-color: #a2d9f7;
	color: #1989c4;
}
#session-messages .session-message-success {
	background: url('img/sm_success_icon.png') 15px center no-repeat, url(img/sm_success_close.png) right 15px center no-repeat;
	background-color: #eef9e0;
	border-color: #c0d0aa;
	color: #04c80c;
}
#session-messages .session-message-warning {
	background: url('img/sm_warning_icon.png') 15px center no-repeat, url(img/sm_warning_close.png) right 15px center no-repeat;
	background-color: #fef9ed;
	border-color: #fcc132;
	color: #fcb303;
}
#session-messages .session-message-error {
	background: url('img/sm_error_icon.png') 15px center no-repeat, url(img/sm_error_close.png) right 15px center no-repeat;
	background-color: #f9e9ea;
	border-color: #e0b1b3;
	color: #fb3204;
}
/* ===== */



/* ===== Messages */
.app-message {
	background: #fff;
	border: 3px solid #fff;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
	margin: 1rem;
	max-width: 50%;
	padding: 0;
}
.app-message > * {
	margin: 0 0 1rem 0;
}

.app-message .message-title {
	background: #f3f6f9;
	color: #1d8fc7;
	padding: 0.6rem;
	text-align: center;
}
.app-message.app-message-info .message-title {
	background: url('img/sm_info_icon.png') 5px center no-repeat;
	background-color: #e7f5fc;
	border-color: #a2d9f7;
	color: #1989c4;
}
.app-message.app-message-success .message-title {
	background: url('img/sm_success_icon.png') 5px center no-repeat;
	background-color: #eef9e0;
	border-color: #c0d0aa;
	color: #04c80c;
}
.app-message.app-message-warning .message-title {
	background: url('img/sm_warning_icon.png') 5px center no-repeat;
	background-color: #fef9ed;
	border-color: #fcc132;
	color: #fcb303;
}
.app-message.app-message-error .message-title {
	background: url('img/sm_error_icon.png') 5px center no-repeat;
	background-color: #f9e9ea;
	border-color: #e0b1b3;
	color: #fb3204;
}

.app-message .message-content {
	padding: 0 1rem;
}

.app-message .message-actions {
	padding: 0 1rem;
	text-align: center;
}

/* Messages inside UI Dialog */
.ui-dialog .ui-dialog-content .app-message {
	margin: 0;
	max-width: none;
}
/* ===== */



/* ===== jQueryUI - Dialog */
.ui-dialog {
	box-sizing: border-box;
	min-width: 300px;
}

.ui-dialog-titlebar {
	display: none;
}

.dialog-content {
	display: none;
}

@media only screen and (max-width: 1024px) {
	.ui-dialog {
		margin: 10px;
	}
}
/* ===== */



/* ===== dl.legend */
dl.legend {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: max-content auto;
	margin: 0;
	width: 100%;
}

dl.legend > dt {
	align-self: center;
	box-sizing: border-box;
	grid-column-start: 1;
	margin: 0;
	padding: 0.6rem;
	text-align: left;
}

dl.legend > dd {
	box-sizing: border-box;
	grid-column-start: 2;
	margin: 0;
	padding: 0.6rem;
}

/* dl.legend inside UI Dialog */
.ui-dialog dl.legend > dt {
	text-align: center;
}

@media only screen and (max-width: 512px) {
	dl.legend {
		display: block;
	}

	dl.legend > dt,
	dl.legend > dd {
		padding: 0.3rem 0.6rem;
	}

	dl.legend > dd {
		padding-left: 2rem;
	}

	.ui-dialog dl.legend > dt {
		text-align: left;
	}
}
/* ===== */



/* ===== context menu */
.context-menu-button {
	background: url('img/hamburger_s.png') center center no-repeat;
	box-sizing: border-box;
	cursor: pointer;
	display: block;
	height: 38px;
	margin: 0 2px;
	width: 38px;
}

.context-menu-container {
	background: #fff;
	border: 1px solid #097bad;
	border-radius: 5px;
	box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
	flex-direction: column;
	padding: 10px;
	position: absolute;
	text-align: right;
	white-space: nowrap;
	width: 100%;
	z-index: 100;
}
.context-menu-container > * {
	display: block;
	flex-shrink: 0;
}

table.list .context-menu-container .context-menu a {
	background: #fff;
	border: 1px solid #000;
	display: block;
	height: 20px;
	margin: 0;
	padding: 10px 10px 10px 40px;
}

table.list .context-menu-container .context-menu a img {
	left: 10px;
	position: absolute;
}
/* ===== */



/* ===== Pretty checkbox fix */
.pretty .state label a {
	position: relative;
	z-index: 100;
}
/* ===== */



/* ===== Toggle */
.toggle-arrow-container.toggle {
	padding-right: 37px;
}

.toggle-arrow-container.toggle.toggle-hidden {
	background: url('img/down.png') center right no-repeat;
	min-height: 37px;
	min-width: 37px;
}

.toggle-arrow-container.toggle.toggle-visible {
	background: url('img/up.png') center right no-repeat;
	min-height: 37px;
	min-width: 37px;
}
/* ===== */



/* ===== Gallery */
.gallery-container .gallery-buttons-container {
	display: none;
}

.gallery-container .gallery-buttons-container button {
	margin: 0.8rem;
}

.gallery-container .gallery-items-container {
	align-items: flex-end;
	display: flex;
	flex-wrap: wrap;
	text-align: center;
}

.gallery-container .gallery-items-container .gallery-item {
	margin: 0.8rem;
}

.gallery-container .gallery-items-container .gallery-item-preview-container {
	display: inline-block;
	margin: 40px 40px 0 0;
	position: relative;
}

.gallery-container .gallery-items-container .item-delete-btn {
	background: url('img/delete_s.png') center center no-repeat;
	cursor: pointer;
	height: 37px;
	position: absolute;
	right: -40px;
	top: -40px;
	width: 37px;
	z-index: 1;
}

.gallery-container .gallery-items-container img,
.gallery-container .gallery-items-container video,
.gallery-container .gallery-items-container iframe {
	max-height: 250px;
	max-width: 440px;
}

.gallery-container .gallery-container-attachment .gallery-item-url {
	display: block;
}

@media screen and (max-width: 440px) {
	.gallery-container .gallery-items-container img,
	.gallery-container .gallery-items-container video,
	.gallery-container .gallery-items-container iframe {
		max-height: 145px;
		max-width: 260px;
	}

	.gallery-container .gallery-items-container .gallery-item {
		margin-left: 0;
		margin-right: 0;
	}
}
/* ===== */



/* ===== Form tags */
.form .tags-container .tags-source {
	border: 1px solid #b6b8b9;
	margin: 0 0.7rem 0.7rem 0.7rem;
	padding: 0.7rem;
}
.form .tags-container .tags-source .tag {
	cursor: pointer;
	white-space: nowrap;
}
/* ===== */
