
/* ------------ defaults ------------- */
input[type="text"], input[type="password"], textarea {
	padding: 5px;
	font-size: 16px;
	border: 1px solid #CCC;
	max-width: 100%;
	border-radius: 3px;
}

.col-xxsmall {
	width: 1%;
}
.col-small {
	width: 4%;
}
.col-1 {
	width: 8%;
}
.col-2 {
	width: 16.66%;
}
.col-3 {
	width: 25%;
}
.col-4 {
	width: 33%;
}
.col-5 {
	width: 41.66%;
}
.col-6 {
	width: 50%;
}
.col-7 {
	width: 58%;
}
.col-8 {
	width: 66.66%;
}
.col-9 {
	width: 75%;
}
.col-10 {
	width: 83.33%;
}
.col-11 {
	width: 91.66%;
}
.col-12 {
	width: 100%;
}
.column img {
	max-width: 100%;
}
.button {
	display: inline-block;
	padding: 8px 20px;
	border-radius: 5px;
	background: linear-gradient(to bottom, #FF0000, #660000);
	color: #FFF;
	margin: 5px 20px;
	text-decoration: none;
	font-size: 16px;
	border-width: 0;
	cursor: pointer;
	cursor: hand;
}
a.loading, button.loading, .button.loading {
	background-image: url(../graphics/smallloader.gif);
	background-color: #660000;
	background-repeat: no-repeat;
	background-position: center;
}

input.loading, select.loading {
	opacity: .3;
}
.button:disabled {
	opacity: 0.3;
}
.small-loader {
	width: 30px;
	height: 20px;
	background-image: url(../graphics/smallloader.gif);
	background-position: center;
	background-repeat: no-repeat;
}
.button.hide {
	display: none;
}
.tabs {
	list-style: none;
	margin: 0;
}
.tabs li {
	display: inline;
}
.tabs li a {
	display: inline-block;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	padding: 10px;
	text-decoration: none;
	color: #333;
	background: #EEE;
}
.tabs li a:hover {
	background: #DDD;
}
.tabs li a.current {
	background: #CCC;
}
.tabsection {
	padding: 30px;
	border: 2px solid #CCC;
}


/* -------------------- tables ----------------------- */
.ajaxtablewrap {
	position: relative;
}
.tablefilter {
	border: 2px solid #EEE;
	border-radius: 5px;
	margin: 10px 0;
	float: left;
	width: 77%;
}
.tablefilter.hidden {
	display: none;
}
#ajaxfilter {
	position: relative;
	display: block;
}
.filteritem {
	float: left;
	padding: 5px 10px;
	border-right: 1px solid #EEE;
	line-height: 40px;
}
.datepicker {
	width: 80px;
}
.filteritem h3 {
	font-size: 16px;
	margin: 0;
}
.tablefilter .button {
	padding: 4px 20px;
	margin: 15px;
	float: left;
}
#ajaxfilter .searchwrap {
	position: absolute;
	bottom: 10px;
	right: 0;
	width: 20%;
}
#ajaxfilter .searchwrap input {
	padding: 10px 5px;
	border: 1px solid #999;
}


#ajaxloader, .ajaxtableempty {
	text-align: center;
	padding: 200px 0;
	border: 2px solid #CCC;
}
#ajaxloader.hidden {
	display: none;
}
#ajaxloader.upper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100;
	line-height: 100%;
	background: rgba(255, 255, 255, 0.8);
}
#ajaxloader.upper.hidden {
	height: 1px;
	line-height: 1px;
}
#ajaxtable {
	display: none;
	position: relative;
	margin-bottom: 50px;
}
#ajaxtable h2 {
	font-size: 18px;
	margin-right: 200px;
}
#ajaxtable.show {
	display: block;
}
.ajaxtablekey {
	list-style: none;
	margin: 5px 0;
}
.ajaxtablekey li {
	display: inline-block;
	font-size: 12px;
	margin-right: 10px;
}
.ajaxtablekey li.greyout {
	color: #999;
}
.ajaxtablekey li div {
	width: 15px;
	height: 15px;
	display: inline-block;
	vertical-align: middle;
}
.ajaxtablekey li .red {
	background-color: #CC0000;
}
.ajaxtablekey li .green {
	background-color: #29a100;
}
.ajaxtablekey li.greyout div {
	background-color: #CCC;
}
.tablehead {
	display: table;
	width: 100%;
}
.columnhead, .ajaxcolumn {
	display: table-cell;
	margin-left: -4px;
}
.columnhead .inner {
	background: #EEE;
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	padding: 5px 2px;
	margin: 0 3px;
	text-align: center;
	position: relative;
}
.columnhead.selected .inner {
	background: #CCC;
}
.columnhead.sortable {
	cursor: pointer;
	cursor: hand;
}

.columnhead .inner .sort {
	position: absolute;
	top: 6px;
	right: 5px;
	font-size: 22px;
	color:#FFF;
	display: none;
}
.columnhead .inner:hover .sort, .columnhead .inner .sort.show {
	display: block;
}
.columnhead.nohead .inner {
	background: none;
}
.tablebody {
	border: 2px solid #CCC;
	position: relative;
	display: table;
	table-layout:fixed;
	width: 100%;
}
.ajaxtable.row {
	display: table-row;
}
.ajaxtable.row.alt {
	background: #F5F5F5;
}
.ajaxtable.row:hover {
	background-color: #ecf4fe;
}
.ajaxtable.row.alt:hover {
	background-color: #d1e4fc;
}
.ajaxtable.row.selected {
	background-color: #d5e7fc;
}
.ajaxtable.row.alt.selected {
	background-color: #afd0fa;
}
.ajaxtable.row.inactive:hover {
	background-color: #F9F9F9;
}
.ajaxcolumn {
	display: table-cell;
	border-right: 1px solid #FFF;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ajaxcolumn .inner {
	padding: 15px 3px;
	vertical-align: middle;
	display: inline-block;
	
}
.ajaxcolumn img {
	max-width: 100%;
	max-height: 100px;
}
.ajaxcolumn.inactive {
	color: #999;
}
.ajaxcolumn.col-small {
	font-size: 12px;
}

/* colors */
.ajaxcolumn.col-xxsmall.green {
	background-color: #29a100;
}
.ajaxcolumn.tabledelete .fas {
	color: #CC0000;
	font-size: 30px;
}
.ajaxcolumn.date {
	font-size: 12px;
}
.ajaxcolumn.greyout {
	color: #999;
}
.ajaxcolumn.smalltext {
	font-size: 12px;
}
.ajaxcolumn.smalltextblock .inner {
	font-size: 10px;
	max-height: 55px;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ajaxcolumn .search_highlight {
	background-color: #f8ff9f;
}
.bulk-actions {
	background-color: #999;
	color: #FFF;
	padding: 5px;
}

/* ----------------- pagination ----------------- */
.pagination {
	padding-top: 20px;
	text-align: center;
}
.pagination a {
	text-decoration: none;
	color: #CC0000;
}


/* -------------------- editor -------------------- */

.editor-wrap {
	padding: 5px;
	background-color: #FFF;
	border: 1px solid #EEE;
}
.editor-wrap .button {
	background: linear-gradient(to bottom, #EEE, #CCC);
	color: #333;
	border:1px solid #999;
}
.savebutton {
	text-align: right;
}

.editsection {
	padding: 20px 1%;
	border: 2px solid #CCC;
	margin: 10px 0;
	width: 98%;
	display: table;
	background-color: #FFF;
}


.editsectionwrap {
	padding: 20px 1%;
	border: 2px solid #CCC;
	margin: 10px 0;
	background-color: #FFF;
	display: block;
}
.editsectionwrap h2 {
	cursor: pointer;
	cursor: hand;
}
.editsectionwrap .accordion.editsection {
	padding: 0;
	border-width: 0;
	width: 100%;
}
.editsectionwrap.accordion .fa-caret-right {
	margin: 0 10px;
	font-size: 30px;
	transition: 0.3s ease-in-out;
}
.editsectionwrap.accordion .fa-caret-right.open {
	-ms-transform: rotate(90deg); /* IE 9 */
	-webkit-transform: rotate(90deg); /* Chrome, Safari, Opera */
	transform: rotate(90deg);
	transition: 0.3s ease-in-out;
}
.editsectionwrap.accordion .fa-caret-right.closed {
	-ms-transform: rotate(0deg); /* IE 9 */
	-webkit-transform: rotate(0deg); /* Chrome, Safari, Opera */
	transform: rotate(0deg);
	transition: 0.3s ease-in-out;
}
.editsectionwrap .accordion.closed .editsection {
	display: none;
}
.editsectionwrap.hidden {
	display: none;
}
.softmaxred {
	color: #CC0000;
}
span.softmaxred {
	font-size: 12px;
}
.softmaxred.hidden {
	display: none;
}

table.editsection {
	width: 100%;
}
.editsection .row {
	display: table-row;
	position: relative;
}
.editsection .colhead {
	display: table-cell;
	padding: 10px;
	vertical-align: middle;
}
.editsection .column, .searchresult .column {
	display: table-cell;
	border-top: 1px solid #EEE;
	padding: 10px;
	vertical-align: middle;
}
.editsection .column {
	position: relative;
}
.editsection .column.noresults, .editsection .column.noresultssub {
	text-align: center;
	border: 1px solid #EEE;
}
.editsection .notable {
	display: block;
	width: auto;
}
.editsection .descr {
	font-size: 12px;
	color: #666;
}
.editsection .descr h3 {
	color: #000;
}
.editsection input[type="text"], .editsection textarea.simple {
	width: 100%;
}
.editsection textarea.simple {
	height: 80px;
	width: 98%;
}
.editsection textarea.simple.medium {
	height: 200px;
}
.editsection input[type="text"].alias, .editsection input[type="text"].number {
	width: 50%;
}

/* ------- date picker ------- */
.editsection input[type="text"].datepicker {
	max-width: 200px;
}
.editsection input[type="text"].timefield {
	width: 50px;
}

.editsection .hidden {
	display: none;
}
.editsection .aligntop td {
	vertical-align: top;
}
.editsection .aligncenter {
	text-align: center;
}
.editsection .alignright {
	text-align: right;
}
.editsection .sortdelete {
	position:absolute;
	right: 0px;
	top: 0px;
	font-size: 30px;
	color:#CC0000;
	z-index: 100;
}

.mediapreview {
	width: 100px;
	height: 100px;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	background-color: #CCC;
	cursor: pointer;
	cursor: hand;
}
.mediapreview span {
	display: block;
	width: 100px;
	height: 100px;
}
.mediapreview:hover span {
	border: 2px solid #CC0000;
	background-image: url(../graphics/delimage.svg);
	background-size: cover;
	background-position: center;
}

.handle, .subhandle {
	background-color: #CCC;
	background-image: url(../graphics/drag-handle.svg);
	background-size: 40px auto;
	background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
	cursor: hand;
	
}


/* -------------- search ----------------- */
.searchwrap {
	position: relative;
	max-width: 500px;
}
.searchbox {
	position: absolute;
	top: 30px;
	left: 0;
	width: 100%;
	background: rgba(255,255,255,0.9);
	border: 1px solid #999;
	z-index: 200;
}
.searchchosen.hide, .searchbox.hide {
	display: none;
}
.searchchosen-delete {
	color: #CC0000;
}
.searchresult {
	cursor: pointer;
	cursor: hand;
	padding: 10px 5px;
	border-bottom: #CCC;
}
.searchresult h3 {
	font-size: 16px;
}
.searchresult:hover {
	color: #FFF;
	background-color: #9a0505;
}

/* --------------- color picker --------------- */
.colorselector {
	position: relative;
	width: 36px;
	height: 36px;
	background: url(../graphics/colorpicker/select.png);
}
.colorselector div {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 30px;
	height: 30px;
	background: url(../graphics/colorpicker/select.png) center;
}

/* ------------------ media ------------------- */
#mediaviewer-wrap {
	background: rgba(50,50,50,0.7);
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	display: none;
}
#mediaviewer {
	background: #FFF;
	border: 2px solid #333;
	max-width: 1200px;
	margin: 40px auto;
	position: relative;
}
#mediaviewer.loading {
	background-image: url(../graphics/table-loader.gif);
	background-repeat: no-repeat;
	background-position: center;
	min-height: 400px;
}

.close {
	position: absolute;
	top: -15px;
	right: -15px;
	width: 20px;
	height: 20px;
	text-align: center;
	font-size: 20px;
	line-height: 20px;
	font-weight: bold;
	padding: 2px;
	background: #333;
	border: 1px solid #FFF;
	color: #FFF;
	border-radius: 15px;
	cursor: pointer;
	cursor: hand;
}
.media-wrap {
	margin: 10px;
}
#mediaviewer .files {
	width: 69%;
	border-right: 2px solid #CCC;
	float: left;
}
#mediaviewer .files h3 {
	clear: both;
}

#mediaviewer.loading .files, #mediaviewer.loading .media-options {
	opacity: 0.3;
}

#mediaviewer .media-options {
	width: 26%;
	float: left;
	padding: 10px 2%;
}
#mediaviewer .media-options h3 {
	font-size: 12px;
}
#mediaviewer .media-options h4 a {
	font-size: 12px;
	display: block;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
#media-viewer, #media-uploader {
	border: 2px solid #CCC;
	padding: 10px;
}
#media-viewer .noresults {
	padding: 200px 0;
	text-align: center;
}
#media-viewer .pagination {
	float: left;
	width: 100%;
}
#media-uploader {
	text-align: center;
	padding: 100px 0;
	display: none;
}
.mediaitem {
	float: left;
	width: 148px;
	height: 148px;
	margin: 3px;
	border: 2px solid #999;
	position: relative;
	background-color: #CCC;
	background-size: contain;
	background-image: url(../graphics/file.png);
	background-repeat: no-repeat;
	background-position: center;
	cursor: pointer;
	cursor: hand;
}
.mediaitem.upload {
	background-color: #62beff;
}
.mediaitem .progress {
	height: 15px;
	width: 98%;
}
.mediaitem.audio, .mediapreview.audio {
	background-image: url(../graphics/mp3.svg);
}
.mediaitem.video, .mediapreview.video {
	background-image: url(../graphics/video.svg);
}
.mediaitem.pdf, .mediapreview.pdf {
	background-image: url(../graphics/pdf.png);
}
.mediaitem .filename {
	color: #FFF;
	text-align: center;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	height: 48px;
	font-size: 11px;
	background:rgba(0,0,0,0.5);
}
.mediaitem.photo .filename {
	display: none;
}
.mediaitem.photo:hover .filename {
	display: block;
}

.mediaitem .size {
	font-size: 12px;
	text-align: center;
	display: block;
	color: #FFF;
}
.mediaitem .ui-widget-content {
	background-color: #595959;
}
.mediaitem .ui-widget-header {
	background-color: #FFF;
}
.mediaitem.selected {
	box-shadow: 0 0 5px 2px #62beff;
	border: 2px solid #FFF;
}
.mediaitem.checked {
	border: 2px solid #0095ff;
}
.insertmedia {
	position: absolute;
	bottom: 10px;
	right: 10px;
}
.insertmedia.disabled {
	opacity: 50%;
}

/* ------------- lightbox ---------------- */
#lightbox {
	background: rgba(0,0,0,0.8);
	display: none;
	position: absolute;
	z-index: 999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}
.lightbox-content {
	position: relative;
	max-width: 1000px;
	margin: 100px auto;
	background: #FFF;
	border: 4px solid #333;
	padding: 20px;
}
.lightbox-close {
	position: absolute;
	display: block;
	top: 5px;
	right: 5px;
	font-size: 30px;
	color: #999;
	text-decoration: none;
}

/* ------------------- updates ----------------- */
.update-available {
	color: #00981b;
}
.update-error {
	color: #CC0000;
}

/* ------------------ modules ------------------ */
.module-update-available {
	color: #00981b;
}
.module-update-error {
	color: #CC0000;
}

/* ----------------- footer --------------- */
