@charset "utf-8";

/**********/
/* Layout */
/**********/

:root{
	--bs-body-font-family:'Open Sans',sans-serif;
}

.main{
	overflow:initial;
	background:var(--color-bg-main);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='2' cy='2' r='0.85' fill='%23164E56' fill-opacity='0.18'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-attachment: fixed;
}

@media screen and (min-width:992px){
	.content{
		padding:3rem;
	}
}

@media screen and (max-width:1199px){
	.content{
		padding-left:0.75rem;
		padding-right:0.75rem;
	}
}

.header > .row{
	min-height:42px;
}

body > #overlay{
	position:fixed;
	top:0;
	right:0;
	bottom:0;
	left:0;
	z-index:99999;
	background-color:rgba(0,0,0,0.5);
	cursor:progress;
}

/*************/
/* Allgemein */
/*************/

::selection{
	background:var(--color-highlight);
	color:var(--bs-white);
}

::-moz-selection{
	background:var(--color-highlight);
	color:var(--bs-white);
}

.h1, .h2, .h3, .h4, .h5, .h6,
h1, h2, h3, h4, h5, h6{
	font-weight:500;
}

:focus-visible{
	outline:none;
}

.rounded{
	overflow:hidden;
}

.fadelink{
	display:inline-block;
	-webkit-transition:opacity 0.2s ease;
	-moz-transition:opacity 0.2s ease;
	-o-transition:opacity 0.2s ease;
	transition:opacity 0.2s ease;
}

.fadelink:hover,
.fadelink:focus{
	opacity:0.65;
}

.disabled,
.btn:disabled,
.form-control:disabled,
.form-select:disabled,
.cursor-disabled{
	cursor:not-allowed !important;
	pointer-events:all !important;
}

.cursor-help{
	cursor:help;
}

.fa-spin-hover:hover i{
	-webkit-animation:fa-spin 2s infinite linear;
	-moz-animation:fa-spin 2s infinite linear;
	-o-animation:fa-spin 2s infinite linear;
	animation:fa-spin 2s infinite linear;
}

pre{
	/*white-space:normal;*/
}

/***********/
/* Tooltip */
/***********/

.tooltip{
	z-index:20000;
}

/*********/
/* Toast */
/*********/

#toast-container > div{
	opacity:1;
}

/****************/
/* Activity Log */
/****************/

#activityLog [data-bs-toggle="collapse"]{
	cursor:pointer;
}

/*************/
/* Box Ratio */
/*************/

.box-ratio{
	display:block;
	position:relative;
}

.box-ratio::after{
	content:"";
	display:block;
}

.box-ratio.box-square::after{
	padding-bottom:100%;
}

.box-ratio.box-a4::after{
	padding-bottom:130%;
}

.box-ratio > *{
	position:absolute;
	left:0;
	top:0;
	width:100%;
	height:100%;
}

/***************/
/* Drag & Drop */
/***************/

.files{
	position:relative;
	outline:2px dashed var(--color-input-border);
	outline-offset:-10px;
	margin:0;
	height:200px;
	border:1px solid var(--color-input-border);
	border-radius:.2rem;
}

.files input{
	position:absolute;
	left:0;
	top:0;
	bottom:0;
	width:100%;
	cursor:pointer;
	opacity:0;
	z-index:20;
}

.files:focus-within{
	box-shadow:0 0 0 .2rem var(--color-input-shadow);
}

.files .label{
	height:100%;
	width:100%;
	display:flex;
	align-items:center;
	justify-content:center;
	flex-direction:column;
	text-align:center;
	opacity:0.5;
}

/***********/
/* Galerie */
/***********/

.gallery .item{
	position:relative;
	overflow:hidden;
}

.gallery .item > a{
	text-decoration:none !important;
	-webkit-transition:opacity 0.2s ease;
	-moz-transition:opacity 0.2s ease;
	-o-transition:opacity 0.2s ease;
	transition:opacity 0.2s ease;
}

.gallery .item > a:hover{
	opacity:0.65;
}

.gallery .icon{
	position:absolute;
	right:0;
	top:0;
	font-size:24px;
	line-height:1;
	height:32px;
	width:32px;
	text-align:center;
	color:var(--bs-white);
	z-index:20;
	padding:4px;
	background-color:var(--bs-black);
}

.gallery .item .overlay{
	position:absolute;
	left:0;
	right:0;
	top:0;
	bottom:0;
	background-color:rgba(0,0,0,0.5);
	color:var(--bs-white);
	display:flex;
	justify-content:center;
	align-items:center;
	opacity:0;
	-webkit-transition:opacity 0.2s ease;
	-moz-transition:opacity 0.2s ease;
	-o-transition:opacity 0.2s ease;
	transition:opacity 0.2s ease;
}

.gallery .item:hover .overlay,
.gallery .item:focus .overlay{
	opacity:1;
}

.gallery .item .action{
	position:absolute;
	bottom:0;
	left:0;
	width:100%;
	height:auto;
	top:unset;
	z-index:20;
	-webkit-transition:all 0.2s ease;
	-moz-transition:all 0.2s ease;
	-o-transition:all 0.2s ease;
	transition:all 0.2s ease;
	margin-bottom:-33px;
}

.gallery .item:hover .action,
.gallery .item:focus .action{
	margin-bottom:0;
}

/*************/
/* Countdown */
/*************/

.countdown-table td,
.countdown-table th{
	text-align:center;
}

.countdown-table th{
	font-size:10px;
	min-width:52px;
}

.countdown-table td{
	color:rgb(var(--color-primary));
}

/***********/
/* Borders */
/***********/

@media (min-width:576px){
	.border-sm-end{
		border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
	}
}

@media (min-width:768px){
	.border-md-end{
		border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
	}
}

@media (min-width:992px){
	.border-lg-end{
		border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
	}
}

/***************/
/* Client Logo */
/***************/

.logo-bg{
	position:relative;
	width:100%;
	aspect-ratio:1 / 1;
	display:flex;
	align-items:center;
	justify-content:center;
	margin:0 auto;
	background:conic-gradient(#eee 25%,#fafafa 0 50%,#eee 0 75%,#fafafa 0) 0 0/16px 16px;
	padding:10px;
}

.logo-bg::after{
	content:'';
	position:absolute;
	top:10px;
	right:10px;
	bottom:10px;
	left:10px;
	outline:2px dashed rgba(0,0,0,0.1);
}

.logo-bg > a{
	position:relative;
	z-index:1;
	display:flex;
	flex:1 1 auto;
	align-self:stretch;
	align-items:center;
	justify-content:center;
	min-width:0;
}

.logo-bg img{
	display:block;
	max-width:100%;
	max-height:100%;
	width:auto;
	height:auto;
	object-fit:contain;
}

/****************/
/* Date & Time */
/****************/

.tempus-dominus-widget{
	z-index:100000 !important;
}

/*********/
/* Legal */
/*********/

.legal_nav{
	position:absolute;
	left:0;
	bottom:2rem;
	width:100%;
	text-align:center;
}

/*********/
/* Jodit */
/*********/

.jodit-container:not(.jodit_inline){
	border-color:var(--color-input-border);
	border-radius:.2rem;
}

.jodit-wysiwyg{
	background-color:var(--color-input-bg);
}

.jodit-toolbar-button[disabled]{
	cursor:not-allowed;
}

.jodit-container:has(textarea[readonly]) .jodit-wysiwyg{
	cursor:not-allowed;
}

/*************************/
/* Invoice Discount List */
/*************************/

#invoiceDiscountList .list-group-item {
	min-height: 46px;
	padding-top: 0;
	padding-bottom: 0;
}

#invoiceDiscountList .invoice-discount-display {
	min-height: 45px;
}

/*********************/
/* Rechnung Vorschau */
/*********************/

#invoicePdfPreview canvas{
	box-shadow:0 0 .875rem 0 rgba(33,37,41,.05);
}