/* VocalOps brand tokens and the few visual touches on Frappe's Desk and web pages (docs/BRANDING.md).
   Palette from the emblem gradient (#2932f3 -> #8a4bf4). Desk's own primary stays neutral (its buttons are gray-900 by design): the brand shows in the logo, the links on web pages,
   the focus ring and the About dialog, so the stage colours, the call tabs and the map keep their meaning. */
:root {
	--vc-brand: #5d3ef3; /* 6.4:1 on white */
	--vc-brand-from: #2932f3;
	--vc-brand-to: #8a4bf4;
	--vc-brand-contrast: #ffffff;
}
[data-theme="dark"],
[data-theme-mode="dark"] {
	--vc-brand: #9a8cff; /* 6.5:1 on #171717 */
}

/* web pages (login, 404, licences; NOT the Desk, whose body carries data-route): brand links and the primary action */
body:not([data-route]) a:not(.btn):not(.text-muted):not(.navbar-brand),
.vc-licences a {
	color: var(--vc-brand);
}
.for-login .btn-primary,
.page-card .btn-primary {
	background: linear-gradient(135deg, var(--vc-brand-from), var(--vc-brand-to));
	border-color: transparent;
	color: var(--vc-brand-contrast);
}
.page-card-head img.app-logo,
.page-card-head .app-logo,
.for-login .app-logo {
	height: 48px;
	width: auto;
	max-width: 64px;
}

/* Desk: focus ring in the brand colour */
.desk-body :focus-visible,
body[data-route] :focus-visible {
	outline-color: var(--vc-brand);
}

/* About dialog */
.vc-about {
	text-align: center;
}
.vc-about-logo {
	height: 36px;
	margin: 8px auto 16px;
	display: block;
}
[data-theme="dark"] .vc-about-logo {
	content: url("/assets/vocalops_crm/branding/logo-dark-480.png");
}
.vc-about-lead {
	font-weight: 600;
}
.vc-about-list {
	list-style: none;
	padding: 0;
	margin: 12px 0;
}

/* apps screen: "VocalOps ERP" must not be cut to "VocalOps E..." */
.desktop-icon .icon-caption .icon-title,
a.icon-title {
	white-space: normal !important;
	text-overflow: clip !important;
	overflow: visible !important;
	text-align: center;
	line-height: 1.25;
}
