:root {
	--green-color: rgb(0, 181, 150);
	--graph-spacing: 20px;
}

body,
html {
	width: 100%;
	height: 100%;
	font-family: Arial, Helvetica, sans-serif
}

body>div {
	display: flex;
	height: 100%;
}

nav {
	width: 300px;
	min-height: 100%;
	padding: 10px;
	flex-direction: column;
	position: fixed;
	background-color: #ff636a;
}

nav .brand {
	font-weight: bold;
	font-size: 2em;
	color: black;
	text-decoration: none;
	text-align: center;
	margin-top: 10px;
	margin-bottom: 20px;
}

nav .brand img {
	max-height: 40px;
	width: auto;
}

nav,
nav a,
nav .nav-link {
	color: #fff
}

nav .nav-link i {
	width: 20px;
	text-align: center;
}

nav .nav-link:hover {
	font-weight: bold;
	color: #fff
}

main {
	padding: 30px;
	width: calc(100% - 300px);
	margin-left: 300px;
}

main>table.table {
	width: 100%;
}


form table:not(.datatable) {
	border-collapse: separate;
	border-spacing: 5px;
}

form table:not(.datatable) td {
	vertical-align: top;
}

form table td input {
	margin-top: 0 !important;
}

form label {
	font-weight: bold;
}

form input+label {
	font-weight: normal;
}

p.checklevel-1 {
	margin-left: 10px;
}

p.checklevel-2 {
	margin-left: 20px;
}


.toggle-cat {
	cursor: pointer;
}

p.checklevel-0+.childs {
	display: none;
}

p.checklevel-0.show+.childs {
	display: block;
}

.card-body {
	background-color: #f0f8ff;
}

th {
	color: var(--green-color);
	font-weight: normal;
}

.input-group {
	margin-bottom: 5px;
}

.input-group-text {
	width: 150px;
}

.input-group>.select2 {
	flex: 1 1;
}

.input-group .select2-selection:not(.select2-selection--multiple) {
	height: 38px;
}

.input-group .select2-selection__rendered {
	line-height: 38px !important;
}

#filter.modal .modal-content {
	padding: 30px 20px 20px;
}

#filter.modal h3 {
	margin-bottom: 10px;
}


.input-group-description label {
	width: 100%;
	border-radius: 0 !important;
}

.quill-holder {
	width: 100%;
	margin: 0 !important;
	border-top: 0;
	height: 100%;
}

nav .copyright {
	font-size: .8em;
	text-align: center;
}

.product-images {
	flex-wrap: wrap;
}

.product-images .image {
	position: relative;
}

.product-images .image img {
	width: 150px;
	aspect-ratio: 1/1;
	height: auto;
}

body.whitelabel .product-images .image {
	position: relative;
	cursor: pointer;
}

body.whitelabel .product-images .image:hover::before {
	background: rgba(0, 0, 0, .4);
	height: 100%;
	width: 100%;
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
	content: "\f00d";
	color: red;
	font-size: 2em;
	font-weight: bold;
	font-family: "Font Awesome 6 Pro";
}


.product-images .image {
	margin-right: 15px;
}


table p.product-data {
	font-size: .8em;
	margin-top: 10px;
	margin-bottom: 0px;
}

table p.product-data b {
	min-width: 100px;
	display: inline-block;
}

.card.product-child .card-head {
	padding: 10px;
	font-weight: bold;
}

.stats>.row>div {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, .2);
	padding: 10px;
	margin: calc(var(--graph-spacing) / 2);
	border-radius: 10px;
}

.stats .counter {
	font-size: 50px;
	display: flex;
	flex-direction: column;
	margin: auto;
	text-align: center;
	font-weight: bold;
	padding: 20px;
}

.stats .counter>label {
	display: block;
	text-transform: uppercase;
	font-size: 10px;
	margin-top: 10px;
	font-weight: normal;
}

.module[data-url] {
	cursor: pointer;
}

.module.graph,
.module.graph canvas {
	min-height: 400px;
}

.module.graph canvas {
	max-height: 400px;
}

.module.graph .total {
	display: flex;
	row-gap: 5px;
	justify-content: space-between;
	font-size: .8em;
	flex-direction: column;
	text-align: center;
}

.stats {
	position: relative;
}

.stats canvas {
	max-width: 100%;
}


span.log-data {
	display: block;
}

tr.rule-row table {
	border-collapse: collapse;
}

tr.rule-row tr:last-of-type td {
	padding-bottom: 20px;
}

tr.rule-row tr:first-of-type td {
	padding-top: 10px;
}

tr.rule-row tr:last-of-type {
	border-bottom: 1px solid black;
}

.rule-row .rule-row-setting_value,
.rule-row .rule-row-setting_value input {
	width: 100%;
}

.rule-row .rule-row-setting_value input {
	padding-top: 0;
	padding-bottom: 0;
}

form.tenant-selector label,
form.tenant-selector select {
	width: 100%;
}

form.tenant-selector label {
	font-weight: bold;
	margin-bottom: 5px;
}


.ui-datepicker.ui-widget {
	flex-direction: column;
	height: auto;
	z-index: 99999 !important;
}


.current_customer_price {
	font-weight: bold;
	font-size: 2em;
}


#gifted-purchase form .form-group {
	margin-bottom: 20px;
	;
}


table.gifted td {
	vertical-align: middle;
}

@media only screen and (max-width: 1024px) {
	nav:not(:hover) .nav-item span {
		display: none;
	}

	nav:not(:hover) .nav-item>.nav-link {
		text-align: center;
		padding-left: 6px;
		padding-right: 6px;
	}

	nav:not(:hover) {
		width: 72px;
	}

	nav .brand img {
		max-width: 50px;
	}

	main {
		margin-left: 72px;
	}

	.nav-item i {
		font-size: 1.3em;
	}

	.nav-item {
		margin-top: 5px;
		margin-bottom: 5px;
	}

	main {
		width: calc(100% - 72px);
	}

	nav:not(:hover) .tenant-selector {
		display: none;
	}

	nav:hover {
		z-index: 999;
	}
}



@media (min-width:768px) {
	.col-md-3 {
		width: calc(25% - var(--graph-spacing));
	}

	.col-md-2 {
		width: calc(16.6667% - var(--graph-spacing));
	}

	.col-md-6 {
		width: calc(50% - var(--graph-spacing));
	}

	.col-md-9 {
		width: calc(75% - var(--graph-spacing));
	}
}


@media only screen and (min-width: 992px) {


	.col-lg-3 {
		width: calc(25% - var(--graph-spacing));
	}

	.col-lg-2 {
		width: calc(16.6667% - var(--graph-spacing));
	}

	.col-lg-6 {
		width: calc(50% - var(--graph-spacing));
	}

	.col-lg-4 {
		width: calc(33.33% - var(--graph-spacing));
	}

	.col-lg-5 {
		width: calc(41.66666667% - var(--graph-spacing));
	}

	.col-lg-9 {
		width: calc(75% - var(--graph-spacing));
	}


}


@media only screen and (min-width: 1200px) {


	.col-xl-3 {
		width: calc(25% - var(--graph-spacing));
	}

	.col-xl-2 {
		width: calc(16.6667% - var(--graph-spacing));
	}

	.col-xl-6 {
		width: calc(50% - var(--graph-spacing));
	}

	.col-xl-4 {
		width: calc(33.33% - var(--graph-spacing));
	}

	.col-xl-5 {
		width: calc(41.66666667% - var(--graph-spacing));
	}

	.col-xl-9 {
		width: calc(75% - var(--graph-spacing));
	}


}


@media (max-width: 767px) {
	.stats>.row>div {
		margin-left: 0;
		margin-right: 0;
	}
}