body {
	background-color: #ffffff;
}

.btn.btn-primary {
	color: #fff;
	background-color: #e2382a;
	border-color: #e2382a;
}

.btn-primary-light {
	color: var(--text-on-red) !important;
	background-color: var(--bg-red) !important;
	border-color: var(--bg-red) !important;
}

.btn-primary-light.focus,
.btn-primary-light:focus,
.btn-primary-light:hover {
	color: var(--text-on-red) !important;
	background-color: var(--bg-red) !important;
	border-color: var(--bg-red) !important;
}

.btn-primary-light .icon {
	--icon-stroke: var(--text-on-red);
}

.page-form .filter-button.btn-primary-light {
	outline: 1px solid var(--text-on-red) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus,
.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
	color: #fff !important;
	background-color: #872119 !important;
	border-color: #872119;
}

:root {
	--dt-primary-color: #e2382a;
	--primary: #e2382a;
	--primary-color: #e2382a;
	--brand-color: #e2382a;
	--bg-color: #ffffff;
	--bg-blue: #e2382a;
	--text-on-blue: white;
	--bg-yellow: #ededed;
	--text-on-yellow: #e2382a;
	--purple-avatar-color: #e2382a;
	--sidebar-select-color: #f2c7c4;
}

input[type="checkbox"]:checked {
	background-image: url('data:image/svg+xml;charset=utf-8,<svg viewBox="0 0 8 7" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 4l1.667 1.8L7 1.2" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>'),
		linear-gradient(180deg, #e2382a -124.51%, #e2382a);
}

input[type="checkbox"]:checked:before {
	color: #e2382a;
}

.app-logo {
	width: 32px !important;
}

.desk-sidebar .standard-sidebar-item {
	transition: background-color 0.3s ease-in-out;
}

.widget.links-widget-box .link-item {
	transition: background-color 0.3s ease-in-out;
}

.tree-info {
	font-size: 12px;
}

/* hide logo in navbar */
.navbar .navbar-brand {
	width: 20px;
	margin-right: 10px;
	padding-bottom: 0.6rem;
}

/* when the logo is hidden the margin is no longer needed */
#navbar-breadcrumbs {
	margin-left: 0;
}

.splash img {
	display: none;
}

/* --- Image Gallery --- */
.dach-attach-file {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--bg-red);
	border-radius: 6px;
	margin-bottom: 1em;
	border: 1px dashed var(--primary);
	color: var(--primary);
	width: 100%;
	height: calc(100% - 1em);
	min-height: 120px;
	cursor: pointer;
}

.dach-thumbnail {
	margin-bottom: 1em;
	border-radius: 6px;
}

.dach-remove-btn {
	position: absolute;
	top: 0;
	right: 15px;
	cursor: pointer;
}

.dach-spinner {
	width: 24px;
	height: 24px;
}
/* --------------------- */

/* Show our own placeholder image, instead of initials, if image is missing for
a record (image view and form view). */
.image-view-body.no-image,
.sidebar-standard-image {
	background-image: url("/assets/dacherp/images/no-image.png");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}

.image-view-body .placeholder-text {
	display: none;
}

.sidebar-standard-image {
	/* set border radius on parent element so that it applies to background */
	border-radius: var(--border-radius-lg);
}

.sidebar-standard-image .standard-image {
	/* reduce padding to match background image */
	padding: 37% 0 !important;
	/* remove grey background */
	background-color: unset;
	/* make initials transparent */
	opacity: 0;
}

/*
Highlight links to the item named "Titel".
The link must be on a `Form` page, in a field named `item_code`.
*/
body[data-route^="Form"]
	div[data-fieldname="item_code"]
	a[data-name="Titel"][data-doctype="Item"] {
	color: var(--primary);
}

.no-images {
	min-height: 75vh;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	border-radius: var(--border-radius-md);
	box-shadow: var(--card-shadow);
}

.no-images > img {
	margin-bottom: var(--margin-md);
	max-height: 70px;
}

.mapper-container {
	min-height: 75vh;
	border-radius: var(--border-radius-md);
	box-shadow: var(--card-shadow);
	overflow-x: scroll;
}

.mapper-row-image {
	width: 50%;
	min-width: 100px;
}

.mapper-row-image > img {
	max-height: 190px;
	border-radius: var(--border-radius);
}

.remove-image-row {
	border: 1px solid var(--gray-400);
	border-radius: 50%;
	padding: 0rem 0.1rem 0.1rem 0.1rem;
}

.vertical-align {
	padding-bottom: 2rem;
}

.project-name-cell {
	width: 20%;
	padding-top: 2.75rem !important;
}

.remove-image-cell {
	width: 5%;
	padding-top: 2.75rem !important;
}

.project-name-cell-mobile {
	display: none;
	padding: 0 0.75rem;
	font-size: var(--text-sm);
}

.image-location-cell {
	padding-top: 2.75rem !important;
}

.image-location-cell-mobile {
	display: none;
	padding-top: 0.75rem;
	font-size: var(--text-sm);
}

@media (max-width: 767px) {
	.project-name-cell-mobile,
	.image-location-cell-mobile {
		display: block;
	}

	.project-name-header,
	.project-name-cell,
	.location-header,
	.image-location-cell {
		display: none;
	}
}
