/* add custom styles and overrides here */
/*@import url(https://fonts.googleapis.com/css?family=Cabin:400,700,400italic,700italic);*/

body {
	min-width: 1280px !important;
	min-height: 720px !important;
	overflow-x: auto !important;
}
/* drag-drop */
body.dragging, body.dragging * {
	cursor: move !important;
}

.dragged {
	position: absolute;
	-ms-opacity: 0.5;
	opacity: 0.5;
	z-index: 2000;
}

/*.table-sortable tbody tr {
    cursor: pointer;
}*/

.table-sortable .td-sortable {
	/*cursor: all-scroll;*/
	text-align: center;
	vertical-align: middle;
}

.table-sortable tr.placeholder {
	background: none repeat scroll 0 0 #000000;
	border: medium none;
	display: block;
	margin: 0;
	padding: 0;
	position: relative;
}

.table-sortable tr.placeholder:before {
	border: 8px solid transparent;
	border-left-color: #3a87ad; /** same as bootstrap *-info */
	height: 0;
	width: 0;
	content: "";
	left: -8px;
	margin-top: -8px;
	position: absolute;
}

/* auto numbering */
table.table-sortable {
	counter-reset: rowNumber;
}

table.table-sortable tbody tr {
	counter-increment: rowNumber;
}

table.table-sortable tbody tr td.td-sortable .info-counter:before {
	content: counter(rowNumber);
}

body, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: "Cabin", "Helvetica Neue",Helvetica,Arial,sans-serif !important;
}

input, select, textarea, button, .btn, .label, .badge {
	font-family: "Helvetica Neue",Helvetica,Arial,sans-serif !important;
}

.body {
	font-family: "Cabin", "Helvetica Neue",Helvetica,Arial,sans-serif !important;
	font-size: 14px;
	line-height: 1.428571429;
	color: #333333;
	background-color: #ffffff;
}

.comment-text {
	max-height: 340px;
	overflow-y: auto;
}

.required:after {
	content: " *";
}

#sidebar > ul ul {
	-webkit-box-shadow: 0 0 1px #000000 inset;
	-ms-box-shadow: 0 0 1px #000000 inset;
	-ms-box-shadow: 0 0 1px rgba(0, 0, 0, 0.5) inset;
	box-shadow: 0 0 1px #000000 inset;
	box-shadow: 0 0 1px rgba(0, 0, 0, 0.5) inset;
}

.table-center {
	text-align: center;
}

th.small, td.small {
	width: 1%;
}

/* these are mainly supposed to go on th's with buttons */
.btn-width-xs-1 {
	min-width: 3em;
	max-width: 3em;
}

.btn-width-xs-2 {
	min-width: 6em;
	max-width: 6em;
}

.btn-width-xs-3 {
	min-width: 9em;
	max-width: 9em;
}

.btn-width-xs-4 {
	min-width: 12em;
	max-width: 12em;
}
/* */

textarea {
	min-height: 8em; /* roughly 5 rows */
}
/*.datefield {
    width: 55%;
}*/

body {
	margin-bottom: 70px;
}

#footer {
	padding-right: 30px;
}

@media (max-width: 782px) {
	body {
		margin-bottom: 106px;
	}
}

.datefield .delete-date, .datefield .add-on {
	cursor: pointer;
}

.multi-line {
	height: 200px !important;
}

.no-resize {
	-moz-resize: none;
	-ms-resize: none;
	-o-resize: none;
	resize: none;
}

/* select2 */
.select2-container {
	width: 100%;
}

.select2-container .select2-choice {
	height: 30px !important;
	-moz-min-width: 140px !important;
	-ms-min-width: 140px !important;
	-o-min-width: 140px !important;
	-webkit-min-width: 140px !important;
	min-width: 140px !important;
}

/* select2 end */

/* use this class to make any element look like an input field, 
    useful for displaying a CKEditor inline editor */
/* also used by the markdown preview window */
.contenteditable, .md-preview {
	display: inline-block;
	margin-bottom: 0;
	vertical-align: middle;
	margin-left: 0;
	background-color: #FFFFFF;
	border: 1px solid #CCCCCC;
	-webkit-box-shadow: 0 1px 1px #000000 inset;
	-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08) inset;
	-ms-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
	-moz-transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
	-o-transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
	-webkit-transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
	-ms-transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
	transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s;
	-ms-border-radius: 4px 4px 4px 4px;
	border-radius: 4px 4px 4px 4px;
	line-height: 20px;
	padding: 4px 6px;
	-moz-min-width: 96%;
	-ms-min-width: 96%;
	-o-min-width: 96%;
	-webkit-min-width: 96%;
	min-width: 96%;
	min-height: 100px;
}

/* for paginhelper */
.paginginfo.dropdown-menu {
	-moz-min-width: 0 !important;
	-ms-min-width: 0 !important;
	-o-min-width: 0 !important;
	-webkit-min-width: 0 !important;
	min-width: 0 !important;
}

/**UNICORN/BOOSTRAP OVERRIDES ***/
html {
	overflow-x: visible !important;
}
/* Header */
#header {
	/*height: 95px;*/
	height: 90px;
	width: 220px;
	background-image: none !important;
	background-color: transparent !important;
	-webkit-box-shadow: none !important;
	-ms-box-shadow: none !important;
	box-shadow: none !important;
}

#header #logo {
	display: none;
}

#header #logo img {
	max-width: 100%;
	max-height: 100%;
	vertical-align: middle;
	/*margin-top: 20px;*/
}

#header .header-title {
	display: block;
	color: #ffffff;
	font-size: 18px;
	position: relative;
	top: 27px;
	left: 10px;
}


.edit-logo img {
	vertical-align: middle;
}

.edit-logo .header-title {
	display: none;
}

.row {
	/* restore bootstrap default */
	margin-left: -15px;
	margin-right: -15px;
}

.row > .well {
	margin-left: 10px;
	margin-right: 20px;
}

#content {
	margin-top: -30px;
	min-height: 800px !important;
}

@media (min-width: 769px) {
	#header {
		height: 120px;
		width: 220px;
		background-color: transparent !important;
		background-image: none !important;
		-webkit-box-shadow: none !important;
		-ms-box-shadow: none !important;
		box-shadow: none !important;
	}

	#header #logo {
		display: block;
		/*margin: 10px;*/
		width: 216px;
		text-align: center;
		/*padding: 7px;*/
		top: 30px;
		left: 0;
		position: absolute;
		vertical-align: middle;
		height: 80px;
	}

	#header .header-title {
		display: none;
	}

	#content {
		margin-top: -60px;
	}
}

.form-horizontal .form-actions {
	padding-left: 10px !important;
}

/* Search input */
#search {
	top: 15px;
}


/*.table thead > tr > th,
.table tbody > tr > th,
.table tfoot > tr > th,
.table thead > tr > td,
.table tbody > tr > td,
.table tfoot > tr > td {
    line-height: .6;
}*/

.table th {
	text-align: left !important;
}

input.error {
	color: #ffffff;
	background-color: rgb(238, 211, 215);
}

input.warning {
	color: #000000;
	background-color: #ffd631;
	background-color: rgba(255,214,49, 0.6);
}

/** UNICORN OVERRIDES END ***/
/* bootstrap overrides */

@media (min-width: 1280px) {
	.container {
		width: auto;
	}
}

.modal-backdrop {
	z-index: 0;
}

.table-responsive {
	overflow-x: auto !important;
}

.table-responsive .form-control.integer {
	-moz-min-width: 90px;
	-ms-min-width: 90px;
	-o-min-width: 90px;
	-webkit-min-width: 90px;
	min-width: 90px;
	padding: 6px 3px;
	text-align: left; /* IE9 doesn't like right-aligned text... */
}

.table-responsive .form-control.number {
	-moz-min-width: 100px;
	-ms-min-width: 100px;
	-o-min-width: 100px;
	-webkit-min-width: 100px;
	min-width: 100px;
	padding: 6px 3px;
	text-align: left;
}


/* bootstrap grid override end */
/* modules */
.fullModule {
	width: 100%;
	-moz-min-width: 640px;
	-ms-min-width: 640px;
	-o-min-width: 640px;
	-webkit-min-width: 640px;
	min-width: 640px;
	overflow-x: hidden;
}

.halfModule {
	width: 48%;
	float: left;
	-moz-min-width: 320px;
	-ms-min-width: 320px;
	-o-min-width: 320px;
	-webkit-min-width: 320px;
	min-width: 320px;
	overflow-x: hidden;
}

/*.well ~ .halfModule:nth-child(odd) {
    padding-right: 6px;
    padding-left: 0;
}

.well ~ .halfModule:nth-child(even) {
    padding-right: 0;
    padding-left: 6px;
}*/

.well.collapsible {
	cursor: pointer;
}

.widget-title.collapsible {
	cursor: pointer;
}

.widget-box .widget-title span.help {
	-ms-opacity: 0.7;
	opacity: 0.7;
	filter: alpha(opacity=70);
}

/* validation */

.input-validation-error {
	color: #ffffff;
	background-color: rgb(238, 211, 215);
}

.field-validation-error {
	-ms-border-radius: 0.25em;
	border-radius: 0.25em;
	background-color: #d9534f;
	color: #fff;
	font-style: oblique;
	font-size: 75%;
	/*font-weight: bold;*/
	line-height: 1;
	padding: 0.2em 0.6em 0.3em;
	text-align: center;
	vertical-align: baseline;
	white-space: nowrap;
}

/*.has-error {
    background-color: #d9534f;
}*/
/* validation end */

#noscript, disabled-background {
	background-color: #000000;
	background-color: rgba(0, 0, 0, 0.6);
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	z-index: 2000000000;
}

#noscript > div {
	max-width: 50%;
	padding: 0 20px 20px;
	margin: 160px auto;
}

/*Verification pages */
.panel-verification {
}

.panel-verification .form-horizontal .form-actions,
.panel-verification .form-actions {
	padding: 0;
	padding-left: 0 !important;
}

/* ajax spinner */
#spinner {
	color: #ffffff;
	display: none;
	background-color: #000000;
	background-color: rgba(0, 0, 0, 0.5);
	position: fixed;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	z-index: 2000000000;
}

/* dataTables */
.dataTables_wrapper {
	width: 99% !important;
}

.pagination > li > a {
	cursor: pointer;
}

.list-group.list-group-flush:first-child .list-group-item:first-child {
	border-top: 0;
}

.list-group.list-group-flush:last-child .list-group-item:last-child {
	border-bottom: 0;
}

.list-group.list-group-flush .list-group-item {
	border-right: 0;
	border-left: 0;
	border-radius: 0;
}


.glimpse, .glimpse-nowrap {
	z-index: 10000;
}

.move-up {
	margin-bottom: -0.3rem;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom: none;
	width: 28px;
}

.move-down {
	margin-top: -0.8rem;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-top: none;
	width: 28px;
}

.info-counter {
	display: inline-block;
	padding: 0.3rem 0;
	width: 28px;
	border-radius: 0;
	border-left: solid 1px rgb(173, 173, 173);
	border-right: solid 1px rgb(173, 173, 173);
}
