/* Use flexbox to fix and align the height of the page nav and page content. */
#wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	overflow-x: inherit;
}

.navbar-static-side {
	position: relative !important;
}

#page-wrapper{
	flex: 1;
	margin-left: 0 !important;
	min-height: 0 !important;
	min-width: 0;
	max-width: 100%;
}

/* Fixed the padding to match the footer height (in Inspinia's skin #3) */
.wrapper-content {
	padding-bottom: 40px !important;
}

/* Bugfix for the upper right menu (in Inspinia's skin #3) */
.navbar-top-links .dropdown-menu li:last-child {
	margin-right: 0 !important;
}

/* Bugfix for Inspinia's overriding of dropdown menu right */
.dropdown-menu.dropdown-menu-right {
	left: auto;
}

/* Adjust the font colors to have better contrast */
body {
	color: #303030;
}

/* The labels and table headers */
.field-label, .control-label, .form-group label,
.table > thead > tr > th, .table > tbody > tr > th {
	color: #505050;
	font-weight: 600; /* Consistently use semi-bold */
	text-transform: none; /* Do not fully capitalize table headers */
}

.ibox-title h5 {
	margin-top: 2px; /* Align with the button is present on the right */
	color: #505050;
}

.text-muted {
	color: #707070;
}

/* Field groups (and the related classes) are our "read-only" 
counterpart to bootstrap's form group and related classes */
.field-group {
	margin-left: -15px;
	margin-right: -15px;
	margin-bottom: 10px;
}

@media(min-width: 768px) {
	.field-label {
		margin-bottom: 0;
		padding-top: 5px;
	}

	.field-group > .field-label {
		text-align: right;
	}
}

.field-value {
	margin-bottom: 0;
	padding-top: 5px;
}

/* Make sure select 2's dropdown is visible when inside a modal */
.select2-dropdown {
	z-index: 999999;
}

/* restyle select to better match inspina's input form controls */
.select2-selection.select2-selection--single {
	border-radius: 0;
	height: 34px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.select2-selection.select2-selection--multiple {
	border-radius: 0;
}

.select2-selection__choice {
	border: none !important;
	border-radius: 0 !important;
	margin-top: 6px !important;
	margin-left: 6px !important;
}

.select2-selection__rendered {
	margin-top: -4px;
}

.select2-selection__arrow {
	margin-top: 3px;
}

.select2-selection__clear {
	margin-top: 1px;
}

/* Remove bootstrap's default margins. */
.pagination {
	margin-top: 0;
	margin-bottom: 0;
}

/* Inspinia didn't properly set this. */
.text-primary {
	color: #1ab394;
}

/* Used in the listing pages to indicate that new data is being loaded. */
.faded {
	opacity: 0.5;
}

/* Used to preserve the newlines in text (e.g. when displaying the document's remarks) */
.multiline {
	white-space: pre-line;
}

/* Used to properly align the checkboxes with the other form controls in table. */
.checkbox-cell > input[type=checkbox]{
	margin-top: 0;
	min-height: 36px;
}

.checkbox-cell {
	text-align: center;
}

h2 .label {
	vertical-align: middle;
}

/* Used for tabs that act like iboxes (independent floating containers). */
.tabs-ibox {
	margin-bottom: 25px;
}

/* Orange from the Zayls' logo. */
.zayls-orange {
	color: #F7634E;
}

/* Fix for dropdowns inside of responsive tables */
/* originally from: https://github.com/twbs/bootstrap/issues/11037#issuecomment-105283986 */
/* modified conditions to apply on md-sized width (instead of sm) */
@media (max-width: 991px) {
	.table-responsive .dropdown-menu {
		position: static !important;
	}
}

@media (min-width: 992px) {
	.table-responsive {
		overflow: visible;
	}
}

/* Prevent unusably small input fields */
input[type=text] {
	min-width: 100px;
}

.dropzone.active {
	border: 2px solid #1ab394;
}

/* Shorten the nav header to match the top nav */
.nav-header {
	padding: 12px 0 !important;
}

.nav-header .profile-element,
.nav-header .logo-element {
	margin: 5px 0 !important;
	padding: 0 !important;
	font-size: 18px !important;
	line-height: 1.4 !important;
}

@media (min-width: 1200px) {
	.border-left-lg {
		border-left: 1px solid #e7eaec;
	}
	
	.btn-block-lg {
		display: block;
		width: 100%;
		white-space: normal;
	}  
}

/* Shorten the menu item side padding (esp. since there are icons) */
.dropdown-menu > li > a {
	padding: 3px 15px !important;
}

/* Adjust spacing for fixed-width icons, which are used in menus */
.fa-fw {
	margin-left: -2px;
	margin-right: 2px;
}

.item-info {
	color: #707070;
	margin: 5px 0;
}

/* Make sure elements with the hidden attribute stay hidden */
/* even when their display is explicitly set to something else. */
[hidden] {
	display: none !important;
}

/* Legend box and the red & green highlights are for the activity log diff */
.legend-box {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-left: 10px;
}

.red-highlight {
	background: rgba(240, 120, 120, 0.85) !important;
	text-decoration: line-through;
}

.green-highlight {
	background: rgba(120, 240, 120, 0.85) !important;
}

.profile-picture-small {
	width: 50px;    
}

.profile-picture-big {
	display: block;
	width: 150px;
}

.profile-picture-empty-dropzone {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
	width: 150px;
	height: 150px;
	border: 2px dashed gray;
	border-radius: 15px;
}

/* Surround negative amounts in parenthesis */
/* but stay aligned with positive amounts. */
.negative-amount {
	margin-left: -0.65ch;
	margin-right: -0.65ch;
}

.negative-amount::before {
	content: "(";
	margin-right: 0.1ch;
}

.negative-amount::after {
	content: ")";
	margin-left: 0.1ch;
}

th {
	vertical-align: bottom !important;
}

.has-error .select2-container--default .select2-selection--single,
.has-error .select2-container--default .select2-selection--multiple {
	border-color: #d38e99;
}

/* Switchery */
.switchery {
	background-color: #fff;
	border: 1px solid #dfdfdf;
	border-radius: 20px;
	cursor: pointer;
	display: inline-block;
	height: 30px;
	position: relative;
	vertical-align: middle;
	width: 50px;
	margin: 6px 0px;

	-moz-user-select: none;
	-khtml-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
	user-select: none;
	box-sizing: content-box;
	background-clip: content-box;
}

.switchery.checked {
	background-color: #1ab394;
}

.switchery.disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.switchery>small {
	background: #fff;
	border-radius: 100%;
	box-shadow: 0 1px 3px #dfdfdf;
	height: 30px;
	position: absolute;
	top: 0;
	width: 30px;
}

.switchery>small.checked {
	right: 0px;
}


  /* Switchery sizes. */

.switchery-small {
	border-radius: 20px;
	height: 20px;
	width: 33px;
}

.switchery-small>small {
	height: 20px;
	width: 20px;
}

.switchery-large {
	border-radius: 40px;
	height: 40px;
	width: 66px;
}

.switchery-large>small {
	height: 40px;
	width: 40px;
}