html,
body,
div,
aside,
nav,
main,
section {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	color: var(--color-font);
}

html {
	height: 100%;
	min-height: 100%;
	font-size: 16px;
}
body {
	font-size: 14px;
	background-color: var(--color-tertiary);
	height: 100%;
	min-height: 100%;
}

body > svg {
	display: none;
}
body > nav {
	display: none;
}
body .fs-body {
	font-size: 14px;
}

body > footer,
body > header {
	height: 60px;
	min-height: 60px;
}

body > div {
}

body > div > aside,
#sidebar {
	background-color: var(--color-secondary);
	color: var(--color-font) !important;
}

body main .container {
	padding: 0 !important;
	margin: 0 !important;
	width: 100% !important;
	min-width: 100% !important;
	max-width: 100% !important;
}

body main .paginate_button.disabled > a.page-link,
body main .paginate_button > a.page-link {
	color: var(--color-progress-font);
	background-color: var(--color-progress-bg);
	border-color: var(--color-progress-border);
	box-shadow: none;
	outline: none;
}

body main .paginate_button.active > a.page-link {
	color: var(--color-progress-font-active);
	background-color: var(--color-progress-bg-active);
	border-color: var(--color-progress-border);
	box-shadow: none;
	outline: none;
}

body .w-25 {
	width: 25%;
}
body .w-50 {
	width: 50%;
}
body .w-60 {
	width: 60%;
}
body .w-65 {
	width: 65%;
}
body .fc-black {
	color: #000;
}

body div.alert.alert-success {
  color: var(--color-alert-success);
  background-color: var(--color-alert-success-bg);
  border-color: var(--color-alert-success-border);
}

body div.alert.alert-error {
  color: var(--color-alert-error);
  background-color: var(--color-alert-error-bg);
  border-color: var(--color-alert-error-border);
}

/* do not group these rules */
/*
*::-webkit-input-placeholder {}
*:-moz-placeholder {}
*::-moz-placeholder {}
*:-ms-input-placeholder {}
*::-ms-input-placeholder {}
*::placeholder {}
*/

#hub_navbar {
	height: 60px;
	padding: 0px;
	/* height: 10vh;
  max-height: 80px;
  min-height: 50px; */
}

#hub_navbar,
.nav_button {
	background-color: var(--color-tertiary) !important;
}

#hub_navbar img,
#hub_navbar .navbar-collapse,
#hub_navbar .btn-group {
	height: 100%;
}

#hub_navbar img {
	/*max-height: 75%;*/
	/*height: auto; */
	/*width: auto;*/
	padding-left: 2rem;
}

footer > div.inner {
	position: fixed;
	bottom: 0px;
	background-color: var(--color-tertiary);
	width: 100%;
	padding: 5px;
	height: 60px;
	text-align: center;
	z-index: 150;
}

footer a {
	line-height: 3;
}

footer img {
	max-height: 35px;
	height: 35px;
}

.content-box-border {
	border: 2px solid #65a09e;
	border-radius: 1rem;
	min-height: 410px;
	margin: 1rem 0rem;
	background-color: white;
	box-shadow: 2px 7px 6px rgb(0 0 0 / 30%);
	padding: 1rem 1.5rem;
}
/*.nav_button {
  height: 100%;
  padding: 10px 20px;
  color: var(--color-primary);
  border-left: 1px solid var(--color-primary);
  border-radius: 0px;
}*/

.btn:hover {
	cursor: pointer;
}

#hub_header_btns {
	padding: 0px;
}

#hub_header_btns a {
	height: 100%;
	width: 25%;
	float: right;
	border-left: 1px white solid !important;
}

table,
table.dataTable {
	border-collapse: collapse !important;
	background-color: var(--color-five);
	color: var(--color-font) !important;
}


.table th {
	background-color: var(--color-four) !important;
	padding: 25px;
	font-weight: bold;
	border-bottom: none !important;
	vertical-align: middle;
	border-top: none !important;
}

.table.table-sm th{
	padding: 0.3rem;
}

.table th:first-child {
	border-top-left-radius: 5px;
	border-bottom-left-radius: 5px;
}

.table th:last-child {
	border-top-right-radius: 5px;
	border-bottom-right-radius: 5px;
}

.table th.sorting::before,
.table th.sorting::after,
.table th.sorting_asc::before,
.table th.sorting_asc::after,
.table th.sorting_desc::before,
.table th.sorting_desc::after {
	padding-bottom: 9px;
	font-size: 1.3em;
}

.table td {
	/*border-bottom: 1px #E1E3E5 solid;*/
}

.table-hover tbody tr:hover {
	background-color: var(--color-four);
	color: var(--color-font);
}

table.dataTable thead th.sorter-false.sorting_asc::before,
table.dataTable thead th.sorter-false.sorting_asc::after,
table.dataTable thead th.sorter-false.sorting_dsc::before,
table.dataTable thead th.sorter-false.sorting_dsc::before,
table.dataTable thead th.sorter-false.sorting::before,
table.dataTable thead th.sorter-false.sorting::after { content: ''; };

body .tile table.aside + form,
body .tile table.aside {
	background-color: var(--color-five);
}
body .tile table.aside {
	border-top-left-radius: 1rem;
	border-top-right-radius: 1rem;
}
body .tile table.aside + form[name="import"] {
	padding: 0.75rem;
}
body .tile table.aside + form[name="import"] label {
	max-width: 300px;
}
body .tile > div + div {
	background-color: var(--color-five);
}

h1 {
	margin-bottom: 0;
}
h5 {
	font-weight: bold;
	font-size: 1.5rem;
}

div.tile.table {
	color: var(--color-font);
}
div.tile.table,
.tile {
	margin-bottom: 1.5rem;
}

.tile input,
.tile textarea {
	background-color: var(--color-five);
}

.lead_details .tile > * {
	padding: 0 1.5rem;
}

.lead_details .tile > *:last-child {
	padding-bottom: 1rem;
}
.lead_details .tile > *:nth-child(2) {
	padding-top: 1rem;
}

.tile .title h1 {
	padding: 0 !important;
}

div.tile > h5 {
	margin-bottom: 0;
}

.tile h5,
.tile h1,
.tile .title {
	padding: 1rem 1.5rem !important;
	border-radius: 1rem 1rem 0 0;
	background-color: var(--color-four);
}

.tile h1 + div.d-flex,
.tile > .title + div.d-flex {
	padding: 1rem 1.5rem;
	background-color: var(--color-five);
	border-bottom-left-radius: 1rem;
	border-bottom-right-radius: 1rem;
}

.tile .fa {
	pointer-events: none;
}

.tile .content {
	border-radius: 0 0 1rem 1rem;
	padding: 1.5rem;
	background-color: var(--color-five);
}

.tile > .content.plain {
	padding-left: 0;
	padding-right: 0;
	background-color: transparent;
}

.lead_details dl.row {
	line-height: 1.2;
	margin: 0;
}

.lead_details .row {
	padding: 0;
}

.lead_details .col {
	margin: 0.5rem 0;
}

.lead_details .tile .row::after {
	content: "";
	border-bottom: 1px solid var(--color-four);
	width: 100%;
	margin: 0 1rem;
}

/*.tile .row::after {
  content: '';
  border-bottom: 2px solid red;
  width: 100%;
  margin: 0 1rem;
}*/

.lead_details dd:first-child {
	font-weight: 600;
}

a,
.page-link {
	color: var(--color-primary);
	/*text-decoration: underline;*/
}

/*
.page-item.active .page-link{
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}
*/

#login button {
	width: 100%;
}

.bg-primary{
	background-color: var(--color-primary) !important;
	color: white !important;
}

.btn-toggle.active,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:focus,
.btn-primary:active,
.btn-primary {
	background-color: var(--color-primary);
	color: var(--color-tertiary);
	border: none;
	box-shadow: none;
	outline: none;
}

.btn-primary > svg {
	fill: var(--color-tertiary);
}
.btn-primary:hover > svg {
	fill: var(--color-primary);
}

.btn-primary .fa {
	color: var(--color-tertiary);
}

.btn-toggle:not(.active):hover,
.btn-primary:hover,
.btn-primary .fa:hover {
	opacity: 0.8;
	background-color: var(--color-tertiary);
	color: var(--color-primary);
}

.btn-primary:hover .fa {
	color: var(--color-primary);
}

.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary {
	background-color: var(--color-four) !important;
	border: none !important;
	color: var(--color-primary) !important;
	fill: var(--color-primary);
	box-shadow: none;
	outline: none;
}

.btn-secondary:not(:disabled):hover {
	background-color: var(--color-primary) !important;
	color: var(--color-tertiary) !important;
	fill: var(--color-tertiary);
}

.btn-secondary:not(:disabled):hover .fa {
	color: var(--color-tertiary) !important;
}

.btn-none:focus,
.btn-none:hover,
.btn-none {
	color: var(--color-font) !important;
	background-color: transparent !important;
	border-color: var(--color-five) !important;
}

.btn.btn-link-primary:focus,
.btn.btn-link-primary {
	color: var(--color-primary);
}

/*
.btn-info:active,
.btn-info:focus,
.btn-info:hover,
.btn-info {
  color: var(--color-input-bg) !important;
  background-color: var(--color-input-font) !important;
  border-color: var(--color-five) !important;
}
*/

.btn-selection:not(.active):focus,
.btn-selection:not(.active):active,
.btn-selection {
	background-color: var(--color-four);
	border: none;
	color: var(--color-primary);
	box-shadow: none;
	outline: none;
}

.btn-selection:not(.active):hover,
.btn-selection.active:focus,
.btn-selection.active:active,
.btn-selection.active {
	background-color: var(--color-primary);
	color: var(--color-tertiary);
	border: none;
	box-shadow: none;
	outline: none;
}

.text-primary {
	color: var(--color-primary) !important;
	fill: var(--color-primary);
}
body .text-body {
	color: var(--color-font) !important;
}

a.text-info {
	color: var(--color-primary) !important;
}
a.text-info:hover {
	color: var(--color-primary) !important;
	text-decoration: underline;
}

.error i {
	color: var(--color-primary);
	cursor: pointer;
}

#maintable tr:hover {
	background-color: var(--color-primary) !important;
}
a:hover {
	color: var(--color-primary);
}
.fa:hover {
	opacity: 1;
}
.dataTable .sorting_desc,
.dataTable .sorting_asc,
th.sorting_1 {
	color: var(--color-primary);
}

table td,
.table th {
	vertical-align: middle !important;
}

table th {
	font-size: 1rem;
}

.bg-plus {
	background-color: mediumseagreen;
}
.bg-minus {
	background-color: indianred;
}
.bg-correct {
	background-color: sandybrown;
}
.bg-tetraeder {
	background-color: var(--color-primary);
}

h3 {
	font-size: 1rem;
}
h4 {
	font-size: 0.9rem;
}
h3,
h4 {
	font-weight: bold;
	margin-top: 1.5rem;
}

h1,
h4 {
	font-weight: bold;
	color: var(--color-font);
}
h2 {
	color: var(--color-primary);
	font-weight: 800;
	padding-bottom: 0.5rem;
	padding-left: 0;
	font-size: 1.3rem;
}

h1 {
	padding-top: 1rem;
	font-size: 1.7rem;
}

b {
	font-weight: bold;
}

#progress,
#progress:not(.active) { display: none; }
#progress.active { display: block; }

body .progress {
	height: 1.5rem;
	border-radius: 0.5rem;
}

body .progress-bar {
	background-color: var(--color-primary);
	color: var(--color-five);
	font-weight: bold;
}

.list-group-item.is {
	padding: 0.3rem 2.5rem;
	font-size: 0.7rem;
}

.list-group-item.ixs {
	padding: 0.3rem 3.5rem;
	font-size: 0.7rem;
}

.tc-primary {
	color: var(--color-primary);
}

pre {
	background-color: #f7f7f7;
}

.docs .list-group a:hover {
	background-color: var(--color-primary);
	color: white;
}

.modal .modal-content {
  background-color: var(--color-five);
}

.modal button.close {
  color: var(--color-font);
}

.modal .modal-header {
	border-bottom: none;
}
.modal .modal-footer {
	border-top: none;
}
.modal-backdrop {
	opacity: 0.8 !important;
}
.helpbutton {
	padding: 0px 4px;
}
.helpbutton:hover {
	opacity: 0.8;
	cursor: pointer;
}

.jumbotron {
    background: none
}

form#lead_details_delete > div.active {
	display: block;
}
form#lead_details_delete > div:not(.active) {
	display: none;
}
form#lead_details_delete .btn.btn-confirm {
	color: var(--color-primary);
	background-color: transparent;
	border: none;
}

#sidebar {
	position: relative;
	z-index: 100;
}
#sidebar.active > div > nav > button {
	transform: rotate(0deg);
}
#sidebar:not(.active) > div > nav > button {
	transform: rotate(180deg);
}
#sidebar > div > nav > button > span.close {
	display: none;
}
#sidebar > div > nav > button > span.arrow {
	display: block;
}
#sidebar svg {
	fill: var(--color-font);
}
#sidebar > div ul {
	padding-left: 10px;
	padding-right: 10px;
}
#sidebar a,
a.btn {
	text-decoration: none !important;
}

.nav:hover,
.nav_div:hover {
	opacity: 1 !important;
}

.vertical-nav {
	min-width: 17rem;
	width: 17rem;
	height: 100vh;
	position: fixed;
	top: 60px;
	left: 0;
	box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
	/*transition: all 0.4s;*/
	/*background-color: #f8f9fa;*/
}

.page-content {
	/*  width: calc(100% - 17rem);
  margin-left: 17rem;*/
	/*transition: all 0.4s;*/
}

.nav-item.main {
	margin: 5px 25px;
	padding: 0px 0px;
	font-size: 1.1rem;
	border-radius: 10px;
	margin-left: 0;
	/*margin-right: 0;*/
}

.nav-item a {
	color: var(--color-font);
	opacity: 0.8;
}

.nav-item.main.active,
.nav-item.main:hover {
	background-color: var(--color-highlight);
}

.nav-item.default a {
	margin-left: 2.3rem;
	margin-right: 2rem;
	padding: 0.25rem 1rem;
}

.nav-item.default a.active,
.nav-item.default a:hover {
	/*background-color: #f8f9fa;*/
	font-weight: 800;
}

/* for toggle behavior */

#content.active {
	width: 100%;
	margin: 0;
}

textarea.form-control::placeholder,
input.form-control::placeholder {
	color: var(--color-input-font);
	opacity: 0.5;
}

body input[type="text"].form-control:read-only,
body input[type="text"].form-control:disabled,
body input[type="number"].form-control:read-only,
body input[type="number"].form-control:disabled,
body input[type="tel"].form-control:read-only,
body input[type="tel"].form-control:disabled {
	color: var(--color-input-font);
	background-color: var(--color-input-border);
	/* border-color: var(--color-input-bg); */
	opacity: 0.5;
}

body input[type="file"].custom-file-input:not(:disabled):not(:read-only):focus + label,
body input[type="file"].custom-file-input:not(:disabled):not(:read-only) + label,
body input[type="search"].form-control:not(:disabled):not(:read-only):focus,
body input[type="search"].form-control:not(:disabled):not(:read-only),
body input[type="text"].form-control:not(:disabled):not(:read-only):focus,
body input[type="text"].form-control:not(:disabled):not(:read-only),
body input[type="tel"].form-control:not(:disabled):not(:read-only):focus,
body input[type="tel"].form-control:not(:disabled):not(:read-only),
body input[type="email"].form-control:not(:disabled):not(:read-only):focus,
body input[type="email"].form-control:not(:disabled):not(:read-only),
body input[type="mail"].form-control:not(:disabled):not(:read-only):focus,
body input[type="mail"].form-control:not(:disabled):not(:read-only),
body input[type="number"].form-control:not(:disabled):not(:read-only):focus,
body input[type="number"].form-control:not(:disabled):not(:read-only),
body input[type="password"].form-control:not(:disabled):not(:read-only):focus,
body input[type="password"].form-control:not(:disabled):not(:read-only) {
	color: var(--color-input-font);
	background-color: var(--color-input-bg);
	border-color: var(--color-input-border);
}

body select.custom-select:disabled,
body select.form-control:disabled {
	color: var(--color-input-font);
	background-color: var(--color-input-border);
	/* border-color: var(--color-input-bg); */
	opacity: 0.5;
}

body select.custom-select:not(:disabled):focus,
body select.custom-select:not(:disabled),
body textarea.form-control:not(:disabled):not(:read-only):focus,
body textarea.form-control:not(:disabled):not(:read-only),
body select.form-control:not(:disabled):focus,
body select.form-control:not(:disabled) {
	color: var(--color-input-font);
	background-color: var(--color-input-bg);
	border-color: var(--color-input-border);
}

/* Default bootstrap value */
.input-group.shadow-focus:focus-within {
  color: #495057;
  background-color: #fff;
  border-color: #80bdff;
  border-radius: .25rem;
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(0,123,255,.25);
}

input.form-control + .input-group-prepend + .input-group-prepend > .input-group-text,
input.form-control + .input-group-prepend > .input-group-text,
input.form-control + .input-group-append + .input-group-append > .input-group-text,
input.form-control + .input-group-append > .input-group-text {
	color: var(--color-input-font);
	background-color: var(--color-input-bg) !important;
	border-color: var(--color-input-border);
}

input.form-control + .input-group-prepend.hide:has(> .input-group-text > input:disabled),
input.form-control + .input-group-append.hide:has(> .input-group-text > input:disabled) {
  display: none;
}

@media (max-width: 1400px) {
	body > nav {
		display: block;
	}
	body > div > aside {
		width: none;
	}
	#sidebar:not(.active) {
		display: none;
		min-width: 0;
	}
	#sidebar.active {
		position: fixed;
		overflow-y: auto;
		height: calc(100% - 60px);
		top: 60px;
		margin: 0;
		padding-bottom: 60px;
		min-width: 300px;
	}

	#sidebar.active > div {
		min-width: 300px;
	}
	#sidebar > div > nav {
		text-align: right;
	}
	#sidebar > div > nav > button {
		margin-right: 5px;
	}
	#sidebar > div > nav > button > span.close {
		display: block;
	}
	#sidebar > div > nav > button > span.arrow {
		display: none;
	}
}

@media (min-width: 1401px) {
	#sidebar > div {
		position: fixed;
		height: calc(100vh - 120px);
		overflow-y: auto;
		background-color: var(--color-secondary);
	}

	#sidebar.active,
	#sidebar.active > div {
		width: 50px;
	}
	#sidebar.active,
	#sidebar.active > div {
		min-width: 50px;
	}
	#sidebar.active > div ul {
		display: none;
	}
	#sidebar:not(.active) {
		width: auto;
		min-width: 300px;
	}
	#sidebar:not(.active) > div {
		width: auto;
		min-width: 300px;
	}
	#sidebar {
		position: relative;
		overflow: hidden;
		z-index: 100;
	}
	#sidebar > div > nav {
		text-align: center;
	}
	#sidebar:not(.active) > div > nav {
		text-align: right;
	}
	#sidebar > div > nav > button {
		margin-right: 0;
	}
	#sidebar:not(.active) > div > nav > button {
		margin-right: 5px;
	}
	#sidebar > div > nav > button > span.close {
		display: none;
	}
	#sidebar > div > nav > button > span.arrow {
		display: block;
	}
}

.required label:after {
	content: " *";
}


form.hardware{
	font-weight: bold;
}

.hidden {
	display: none;
}

/* New Account Filter */
.filtering-options {
	width: 50%;
	display: flex;
  	justify-content: space-around;
	margin-inline: auto;
	margin-block-end: 1rem;
}

.filtering-options label {
	display: block;
	font-weight: bold;
}

.filtering-options select {
	min-width: 125px;
}

.checkbox-filtering {
	padding-inline: 1rem;
	border: 1px solid var(--color-input-border);
	min-width: 250px;
}

.checkbox-filtering span {
	font-weight: bold;
	font-size: large;
}

.checkbox-filtering ul {
	list-style: none;
	padding-inline: 0;
	margin-bottom: 0;
	padding-block-start: .5rem;
}

.checkbox-filtering label {
	display: inline-block;
	padding-inline-start: .5rem;
}

.btn-tooltip {
	padding-block: 0;
	padding-inline: .25rem;
	vertical-align: top;
	color: var(--gray);
	font-size: smaller;
}
/* Umbau Pagination Templates */

input[name="activitysearch"] {
	margin-block-end: 1rem;
  }

#replaceMe {
	text-align: right;
}

/* HTMX Spinner */

.htmx-indicator{
	opacity:0;
	transition: opacity 500ms ease-in;
}
.htmx-request .htmx-indicator{
	opacity:1;
}
.htmx-request.htmx-indicator{
	opacity:1;
}
