/* HELPER */
.right { text-align: right; }

.middle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	text-align: center;
}

.background-text {
	font-weight: bold;
	color: #8e8e8e;
}

/* GENERAL */
a {
	color: #0000FF;
}

/* NAVIGATION */
nav {
	position: fixed;
	width: 100%;
	height: 60px;
	z-index: 90;
	background: #6D7AE0;
	/*#428BCA;*/
}

nav .title {
	line-height: 60px;
	font-size: 20px;
	padding: 0px 20px;
	color: #FFFFFF;
}

nav input {
	position: relative;
	float: right;
	right: 10px;
	top: 11px;
	margin: 0px 5px;
}

/* MAIN CONTENT */
main {
	display: block;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding-top: 60px;
	background: transparent;
}

main #previewContainer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 50px;
	width: 100%;
	overflow-y: auto;
}

main #previewContainer img {
	width: auto;
	height: auto;
	display: none;
	margin: 0 auto;
}

main #previewContainer.active img.active {
	width: 100%;
	height: auto;
	object-fit: cover;
}

main #previewContainer img.active {
	display: block;
	object-fit: cover;
}

/* EDIT POPUP PREVIEW */
.previewBoxContainer {
	text-align: left;
}

.previewBox {
	display: inline-block;
	width: 23%;
	min-width: 150px;
	margin: 1%;
	border-radius: 5px;
	overflow: hidden;
	background: #6D7AE0;
	-webkit-box-shadow: 0px 0px 4px -1px black;
	-moz-box-shadow: 0px 0px 4px -1px black;
	-o-box-shadow: 0px 0px 4px -1px black;
	box-shadow: 0px 0px 4px -1px black;
}


.previewBox input[type="button"][name="view"] {
	background: url("../img/view-icon.png") no-repeat center;
	background-size: 22px;
}

.previewBox input[type="button"][name="delete"] {
	background: url("../img/delete-icon.png") no-repeat center;
	background-size: 16px;
	float: right;
}

.previewBox input[type="button"] {
	position: relative;
	width: 25px;
	height: 25px;
	border: none;
	padding: 0;
	margin: 5px;
	background: transparent;
	cursor: pointer;
	border-radius: 3px;
}

.previewBox input[type="button"]:hover {
	background-color: #363e80;
}

.popup .container button::after {
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    content: "\2716"; /* use the hex value here... */
    font-size: 18px; 
    color: #FFFFFF;
    line-height: 22px;
    text-align: center;
}



.previewBox .thumb {
	width: 100%;
	padding-bottom: 100%;
	background-position: center center;
	background-repeat: no-repeat;
	background-color: #FFFFFF;
	background-size: cover;
}

/* MAIN LOADING ANIMATION */
.lds-ring {
	display: block;
	position: absolute;
	width: 64px;
	height: 64px;
	left: 50%;
	top: 50%;
	transform: translate(-50%,-50%);
}
.lds-ring div {
	box-sizing: border-box;
	display: block;
	position: absolute;
	width: 51px;
	height: 51px;
	margin: 6px;
	border: 3px solid #6D7AE0;
	border-radius: 50%;
	animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
	border-color: #6D7AE0 transparent transparent transparent;
}
.lds-ring div:nth-child(1) {
	animation-delay: -0.45s;
}
.lds-ring div:nth-child(2) {
	animation-delay: -0.3s;
}
.lds-ring div:nth-child(3) {
	animation-delay: -0.15s;
}
@keyframes lds-ring {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* TABLE */
table {
	display: table;
	width: 100%;
	margin: 15px 0px;
	overflow: hidden;
	border-radius: 7px;
	border-collapse: collapse;
	-webkit-box-shadow: 0px 0px 4px -1px black;
	-moz-box-shadow: 0px 0px 4px -1px black;
	-o-box-shadow: 0px 0px 4px -1px black;
	box-shadow: 0px 0px 4px -1px black;
}

table tr {
	border-bottom: 1px solid #E5E5E5;
}

table tr.heading { border: none; }

table tr:first-child, table tr:last-child {
	border: none;
	padding-top: 5px;
}

table tr.func th {
	font-weight: 300;
}

table tr.func th input[name="search"] {
	position: relative;
	width: auto;
	margin: 0;
}

table tr.func th input[name="search"]:focus {
	border: none;
}

table tr.func th span[name="layoutSize"] {
	height: 36px;
	vertical-align: middle;
	margin-left: 10px;
}

table tr.func th input[name="Upload"] { margin: 0; float: right; }

table tr:nth-child(2n+1) td {
	background: #F6F6F6;
}

table tr:not(:first-child):hover td {
	background: #E5E5F3;
	cursor: default;
}

table th {
	color: #FFFFFF;
	background: #6D7AE0;
	height: 50px;
	padding: 0px 7px;
	border: none;
	text-align: left;
}

table td {
	height: 40px;
	padding: 0px 15px;
	color: #000000;
	background: #FFFFFF;
}

table tr.noUse { display: none; }

table input[type="button"].interaction {
	width: 30px;
	height: 30px;
	padding: 0;
	margin-left: 5px;
}

table input[type="button"].interaction[name="warning"] {
	background: transparent url("../img/warn-icon.png") no-repeat center;
	background-size: 30px;
}

table input[type="button"].interaction[name="view"] {
	background: #454545 url("../img/view-icon.png") no-repeat center;
	background-size: 24px;
}

table input[type="button"].interaction[name="edit"] {
	background: #218D21 url("../img/edit-icon.png") no-repeat center;
	background-size: 20px;
}

table input[type="button"].interaction[name="delete"] {
	background: #DA1E1E url("../img/delete-icon.png") no-repeat center;
	background-size: 20px;
}

/* LAYOUT PREVIEW */
#control {
	position: fixed;
	bottom: 0;
	width: 100%;
	height: 50px;
	padding: 0 5px;
	background: #000000;
}
/*#control input.view { display: none; }*/

#control input {
	height: 36px;
	margin: 7px 3px;
	background: transparent;
	-webkit-box-shadow: inset 0px 0px 0px 2px #E1E1E1;
	-moz-box-shadow: inset 0px 0px 0px 2px #E1E1E1;
	box-shadow: inset 0px 0px 0px 2px #E1E1E1;
	color: #FFFFFF;
}
#control input.selection {
	width: 36px;
	padding: 0;
	float: right;
}

#control input:hover {
	background: rgba(255,255,255,0.2);
}

#control input.active {
	background: #E1E1E1;
	color: #000000;
}

/* NOTIFICATION FROM APP */
.appmsg {
	background: #ffc916;
}

table tr.appmsg td, table tr.appmsg:hover td {
	background: transparent;
}