html {
	height: 100%;
}
body {
	height: 100%;
	background-color: #fafafa;
}

.pace {
  -webkit-pointer-events: none;
  pointer-events: none;

  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.pace-inactive {
  display: none;
}

.pace .pace-progress {
  background: #a8ca60;
  position: fixed;
  z-index: 2000;
  top: 0;
  right: 100%;
  width: 100%;
  height: 2px;
}

.full-height {
	height: 100%;
}

.app-layout {
	padding-top: 51px;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.navbar-default .navbar-brand img {
	width: 40px;
    height: 40px;
    margin-top: -10px;
    margin-left: 5px;
}
.navbar-default .navbar-brand span {
	display: none;
}

.login-container {
	text-align: center;
	margin-top: -51px;
}
.login-container .logo {
	margin: 0 auto;
	max-width: 150px;
	margin-bottom: 25px;
}
.login-container__heading {
	font-size: 20px;
	margin-bottom: 20px;
}
.login-container .control-label {
	display: none;
}

.attribution {
	display: none;
}

.vertical-center {
	min-height: 100%;
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
}

form label.required::after {
	content: "*";
	margin-left: 5px;
}

.modal-footer .btn + .btn {
	margin-left: 15px;
}

.navbar {
	margin-bottom: 0;
}
.navbar-inverse {
	background-color: #333f4d;
}

.section-view {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.section-view .navbar {
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	min-height: 30px;
}
.section-view .navbar li a {
	padding-top: 5px;
	padding-bottom: 5px;
}
.section-view .view {
	flex: 1;
}

.standard-list-view .table-element, .standard-repeater-view .table-element {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 10px 20px 65px 20px;
}
.panel {
	overflow: hidden; /* Prevent content from overflowing border-radius */
}
.input-element .panel {
	overflow: visible;
}
.panel-body .table-element {
	margin: -15px; /* Remove spacing around table in panel body */
}
.panel-body .table-element .table-header-actions {
	padding-inline: 15px;
}
.panel-body .table-element th:first-of-type, .panel-body .table-element td:first-of-type {
	padding-inline-start: 15px;
}
.panel-body .table-element th:last-of-type, .panel-body .table-element td:last-of-type {
	padding-inline-end: 15px;
}
.panel-body .table-element table {
	margin-bottom: 0;
}

.standard-form-view form {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.pageheader {
	padding: 20px;
	margin: 0;
	background-color: #A9CA60;
}
.pageheader__back {
	margin-top: -12px;
	margin-bottom: -6px;
	margin-right: 10px;
}
.pageheader__label {
	display: inline-block;
	padding: 0;
	margin: 0;
	font-size: 1.4em;
	color: #fff;
}
.pageheader__actions {
	float: right;
	margin-top: -6px;
	margin-bottom: -6px;
}
.pageheader__actions a + a, .pageheader__actions a + button, .pageheader__actions button + button {
	margin-left: 10px;
}


.view {
	display: flex;
	flex-direction: column;
}
.view__body {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.view__body > .container-fluid {
	/* Without this the container shrinks to the minimum possible size due to parent flex setting */
	width: 100%;
	padding-left: 20px;
	padding-right: 20px;
}

.table-element table .alert {
	margin: 0;
}
.table-element table td.norecords-td {
	padding: 0;
	padding-inline: 0 !important;
}
.table-element .norecords-td .alert {
	border: 0;
	border-radius: 0;
	padding: 5px 15px;
}
.table-element__navinfo {
	display: inline-block;
	padding: 7px 10px;
}
.table-header-actions {
	padding: 5px;
}
.table-header-filters {
	flex-grow: 1;
}
.table-header-filter .form-group {
	margin-bottom: 0;
}
.table-element__toolbar {
	display: flex;
	margin-bottom: 15px;
}
.table-actions__selectall {
	display: inline-block;
	width: 30px;
	padding-left: 5px;
	padding-top: 5px;
}
.table-element__toolbar .table-search {
	flex-grow: 1;
}
.table-element .selector {
	width: 1%;
	min-width: 30px;
	max-width: 30px;
	padding: 5px 0 0 5px;
}
.table-element .selector .checkbox {
	width: 25px;
	max-width: 25px;
	margin: 0;
}

.table-element .created-at, .table-element .updated-at {
	width: 10%;
	min-width: 175px;
}

.itemview {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	height: 100%;
}
.itemview__main {
	flex: 1;
	height: 100%;
	padding: 10px 20px;
}
.itemview__sidebar {
	width: 275px;
	height: 100%;
	border-left: 1px solid lightgrey;
	padding: 10px 20px;
}

@media(max-width: 1199px) {
	.itemview {
		flex-direction: column;
		align-items: normal;
		height: auto;
	}
	.itemview__main {
		height: auto;
		width: 100%;
		padding: 20px 10px;
	}
	.itemview__sidebar {
		height: auto;
		width: 100%;
		border-left: 0;
		border-top: 1px solid lightgrey;
		padding: 20px 10px;
	}
}

.item-editor {
	height: 100%;
}
.item-editor {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	height: 100%;
}
.item-editor__main {
	flex: 1;
	height: 100%;
	padding: 10px 20px;
}
.item-editor__sidebar {
	width: 275px;
	height: 100%;
	border-left: 1px solid lightgrey;
	padding: 10px 20px;
}
.item-editor .form-actions {
	margin-bottom: 10px;
	text-align: center;
}

@media(max-width: 1199px) {
	.item-editor {
		flex-direction: column;
		align-items: normal;
		height: auto;
	}
	.item-editor__main {
		height: auto;
		width: 100%;
		padding: 20px 10px;
	}
	.item-editor__sidebar {
		height: auto;
		width: 100%;
		border-left: 0;
		border-top: 1px solid lightgrey;
		padding: 20px 10px;
	}
}

/* Labeled elements outside of forms need to work */
.labeled-element {
	margin-left: -15px;
	margin-right: -15px;
	margin-bottom: 15px;
	overflow: hidden;
}
.labeled-element + .labeled-element {
	margin-top: -15px;
}
.labeled-element .control-label {
	padding-top: 7px;
}
.labeled-element.full-width .control-label {
	text-align: left;
}

.tab-element {
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	
	padding: 15px;
	background-color: white;
}

.entity-picker-dialog .select-item-column {
	width: 5%;
	min-width: 50px;
}

.code-element pre {
	white-space: pre-wrap;
}

.percentage-input-element .input-group, .decimal-input-element .form-control {
	max-width: 200px;
}
.set-editor__item .form-group, .list-editor__item .form-group {
	margin-bottom: 0;
}
.set-editor__item:first-child, .list-editor__item:first-child {
	border-top: 1px solid lightgrey;
}
.set-editor__item, .list-editor__item {
	padding: 10px 0;
	border-bottom: 1px solid lightgrey;
}

.field-with-counter {
	position: relative;
}
.field-with-counter > input {
	padding-right: 50px;
}
.field-with-counter .counter {
	float: right;
	margin-top: -34px;
	padding: 6px 12px;
	color: #606d7b;
	min-width: 50px;
	text-align: right;
}

.stats-element .label {
	font-size: 100%;
}

.two-columns-element > .row {
	margin: 0;
}
.filters .form-group {
	margin-bottom: 0;
}

.p-lg {
	padding: 10px;
}
.ph-lg {
	padding-left: 10px;
	padding-right: 10px;
}
.pv-lg {
	padding-top: 10px;
	padding-bottom: 10px;
}
.p-sm {
	padding: 5px;
}
.ph-sm {
	padding-left: 5px;
	padding-right: 5px;
}
.pv-sm {
	padding-top: 5px;
	padding-bottom: 5px;
}