.tpl, .hidden {
	display: none !important;
}

.ib {
	display: inline-block;
}


/* Layouting helpers */

.ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mt15 { margin-top: 15px; }
.mb30 { margin-bottom: 30px; }
.w120 { display: inline-block; width: 120px; }

#sidebar, ._menu {
	font-family: var(--font-family-titles);
}

table.no_outer {
	border-style: hidden;
}
  
td, th {
	border: 1px solid #ccc;
	padding: 4px 5px;
	line-height: 20px;
}


#wrapper.fixedheader {
	padding-top: 2.5rem;
}

#wrapper.fixedheader #header {
	position: fixed;
	top: 0;
}

#header span.clickable {
	border: 1px solid transparent;
	border-radius: 3px;
}

#header span.clickable:hover {
	cursor: pointer;
	border: 1px solid #fff;
}

#sidebar {
	position: fixed;
	top: 2.5rem;
	height: calc(100% - 2.5rem);
    padding-bottom: 2rem;

	width: 230px;
	border-right: 1px solid #f0e9eb;
	overflow-y: auto;

	background-color: #fff;
}

#wrapper.narrow #content,
#content.single {
	margin-left: 0;
}

@media (min-width: 1000px) {
	#wrapper, #header, #content {
		max-width: 1000px;
	}
}

@media (max-width: 1000px) {
	#header .sidetoggle {
		display: inline-block;
	}
	#sidebar {
		display: none;
	}
	#content {
		margin-left: 0;
	}
}

@media (min-width: 1000px) {
	#content {
		margin-left: 240px;
	}
}

#wrapper.noside #sidebar {
	display: none;
}

#wrapper.side #sidebar {
	display: inline-block;
}

#wrapper.noside #content {
	margin-left: 0;
}

div.main_and_side_column {
	display: flex;
	flex: 1;
	margin: 0 auto; /* center the page */
	height: 100%;  /*allows both columns to span the full height of the browser window*/
	overflow: hidden; /* make the body non-scrollable (scrolling is enabled on sidebar and content containers) */

	max-width: 1040px;
}

div.main_and_side_column .side {
    flex: 0 1 280px;
	min-width: 280px;
	padding: 10px 5px 10px 0;

	/* [thin grey border] */
	border-right: 1px solid #f0e9eb;
	
	overflow-y: auto;
}

div.main_and_side_column .side, 
div.main_and_side_column .main {
	display: flex;
	flex-direction: column;	
	height: 100%;
}

div.main_and_side_column .main {
	flex: 1 1 auto;
	overflow-y: auto;
}


.list-menu {
	padding: 10px 50px;
}
.list-menu .list-menu-entry {
	padding: 10px 0;
	border-bottom: 1px solid #dedfe0;	
}
.list-menu .list-menu-entry.active {
	color: var(--blue);
}


.loading {
	display: block;
	margin: 15px auto;
	width: 16px;
	height: 16px;
}

.loading_inline {
	display: inline-block;
	vertical-align: middle;
	margin: 0 5px;
	width: 16px;
	height: 16px;
}

.green {
	color: #60c400;
}

.errbox {
	color: var(--pinkish-red);
	border: 1px solid red;
	border-radius: 2px;
	padding: 10px 20px;
}

.neutral {
  color: #999;
}

.selected {
  background-color: #E6F4FF;
}

.disabled {
	opacity: 0.3;
}


label,
legend {
  display: inline-block;}
fieldset {
  padding: 0;
  border-width: 0; }
input[type="checkbox"],
input[type="radio"] {
  display: inline; }
label > .label-body {
  display: inline-block;
  margin-left: .5rem;
  font-weight: normal; }


.btn {
   display: inline-block;
   text-decoration: none;
   margin-bottom: 0;
   font-weight: 400;
   text-align: center;
   vertical-align: middle;
   cursor: pointer;
   background-image: none;
   border: 1px solid transparent;
   white-space: nowrap;
   padding: 4px 8px;
   font-size: 90%;
   line-height: 1.42857143;
   border-radius: 3px;
   -webkit-user-select: none;
}

a.btn-primary,
.btn-primary {
	color: #ffffff;
	background-color: #428bca;
	border-color: #357ebd;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary {
	color: #ffffff;
	background-color: #3276b1;
	border-color: #285e8e;
}

.btn-info {
	color: #ffffff;
	background-color: #5bc0de;
	border-color: #46b8da;
}
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info {
	color: #ffffff;
	background-color: #31b0d5;
	border-color: #269abc;
}
.btn-info:active, .btn-info.active, .open > .dropdown-toggle.btn-info {
	background-image: none;
}

.btn-warning {
	color: #ffffff;
	background-color: #f0ad4e;
	border-color: #eea236;
}
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning {
	color: #ffffff;
	background-color: #ec971f;
	border-color: #d58512;
}
.btn-warning:active, .btn-warning.active, .open > .dropdown-toggle.btn-warning {
	background-image: none;
}


a.btn-success,
.btn-success {
	color: #ffffff;
	background-color: #5cb85c;
	border-color: #4cae4c;
}

.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active, .open .dropdown-toggle.btn-success {
	color: #ffffff;
	background-color: #47a447;
	border-color: #398439;
}

.btn-success.light {
	color: #555;
	background-color: #D9FCD1;
	border-color: #ccc;
}

.btn-success.light:hover {
	color: #555;
	background-color: #D9FCD1;
	border-color: #888;
}

.btn-default {
	color: var(--almost-black);
	background-color: #ffffff;
	border-color: #ccc;
}
.btn-default:hover, .btn-default:focus, .btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
	color: var(--almost-black);
	background-color: #E6F4FF;
	border-color: #adadad;
}
.btn-default:active, .btn-default.active, .open > .dropdown-toggle.btn-default {
	background-image: none;
}

.btn.disabled, .btn[disabled] {
	pointer-events: none;
	opacity: 0.8;
}

.btn-default .badge {
	color: #ffffff;
	background-color:var(--almost-black);
}

.btn-sm {
	padding: 1px 5px;
}

.btn-xs {
	padding: 0 2px;
	line-height: 1.3;
}

.btn-noborder {
	border: 1px solid transparent;
}
.btn-noborder:hover {
	border: 1px solid #ccc;
}


._menu {
	position: absolute;
	top: 0;
	left: 0;
	width: 10em;
	z-index: 15;
	border: 1px solid #81C6FF;
	background: white;
	font-weight: normal;
	font-size: 90%;
	border-radius: 5px;
	box-shadow: rgba(0, 0, 0, 0.2) 0 0 5px;
	padding: 10px 10px 10px 10px;
	white-space: nowrap;
}

._menu p, ._menu span {
}

._menu li a {
	color: var(--almost-black);
	display: flex;
	padding: 4px 5px;
	text-decoration: none;
}

._menu li a div {
	margin-right: 5px;
}

._menu ul li a:hover {
	background-color: #E6F4FF;
	text-decoration: none;
}

._menu ul li a.selected {
	background-color: #E6F4FF;
	text-decoration: none;
}

._menu ul, ._menu li {
	margin: 0;
	padding: 0;
	list-style: none;
}

._menu a {
	display: flex;
	justify-content: space-between;
}

._menu li span {
}

._menu li span.sub {
	margin-left: 15px;
}

._menu li {
	list-style-position: outside;
}

._menu .for_input {
	padding: 5px;
}

._menu li input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	height: 24px;
}

._menu {
	max-height: 330px;
	overflow-y: auto;
	display: inline-block;
}


/* kill scrolling on body */
.modal_open {
   overflow: hidden;
}

#modalBackground {
	position: fixed;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	outline: 0;
	overflow: auto;

	z-index: 9;
	background-color:transparent;
	display: none;
}

#modalBackdrop {
	opacity: 0.50;
	z-index: 8;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: #000;
}

#modalWindow {
	position: relative;

	margin: 1.75rem auto;

	z-index: 10;
	background-color: white;
	padding: 15px;
	width: max-content;
	overflow: auto;

	border: 1px solid #f0e9eb;
	box-shadow: #bbb 0 2px 5px;
	border-radius: 5px;

	opacity: 1;
}

#modalWindow h3 {
	color: #00579C;
	padding: 0 0 10px 0;
	border-bottom: 1px solid #ebebeb;
	margin-top: 0;
	font-size: 16px;
	margin-bottom: 20px;
}

#modalWindow .errbox {
	display: none;
	margin-bottom: 15px;
}


