/* Login + native Frappe desk brand polish only. */
body.website-login .app-logo {
	width: auto;
	max-width: 220px;
	max-height: 120px;
	height: auto;
	object-fit: contain;
}

body.website-login .page-card-head h4 {
	color: #111827;
	font-weight: 700;
}

.navbar-brand img.app-logo,
.navbar-home img {
	object-fit: contain;
}

.navbar-brand img.lx-brand-image,
.navbar-home img.lx-brand-image {
	width: 28px;
	height: 28px;
}

.navbar-brand .lx-brand-fallback,
.navbar-home .lx-brand-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 5px;
	background: var(--lx-v2-primary, #8C2031);
	color: var(--lx-v2-primary-contrast, #fff);
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}

.centered.splash .ledgix-splash-logo {
	width: auto;
	height: auto;
}

/* Brand only Ledgix-owned workflow surfaces. Native Frappe forms/lists keep
   their standard visual language while POS and custom centers use the business
   accent selected in Ledgix Brand Settings. */
#page-ledgix-pos .lx-pos-v2 .btn-primary,
#page-ledgix-tax-center .lx-tax-v2 .btn-primary,
#page-business-intelligence-center .lx-ii-v2 .btn-primary {
	background-color: var(--lx-v2-primary, #8C2031) !important;
	border-color: var(--lx-v2-primary, #8C2031) !important;
	color: var(--lx-v2-primary-contrast, #fff) !important;
}

#page-ledgix-pos .lx-pos-v2 .btn-primary:hover,
#page-ledgix-tax-center .lx-tax-v2 .btn-primary:hover,
#page-business-intelligence-center .lx-ii-v2 .btn-primary:hover {
	background-color: color-mix(in srgb, var(--lx-v2-primary, #8C2031) 88%, #000) !important;
	border-color: color-mix(in srgb, var(--lx-v2-primary, #8C2031) 88%, #000) !important;
}

#page-ledgix-pos .lx-pos-v2 .btn-primary:focus,
#page-ledgix-tax-center .lx-tax-v2 .btn-primary:focus,
#page-business-intelligence-center .lx-ii-v2 .btn-primary:focus {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--lx-v2-primary, #8C2031) 18%, transparent) !important;
}

#page-ledgix-tax-center .lx-tax-v2 {
	--lx-primary: var(--lx-v2-primary, #8C2031);
}
