:root {
	--php-erp-primary: #2563eb;
	--php-erp-primary-dark: #1d4ed8;
	--php-erp-accent: #14b8a6;
	--php-erp-surface: #eff6ff;
}

body {
	--primary: var(--php-erp-primary);
	--primary-color: var(--php-erp-primary);
	--btn-primary: var(--php-erp-primary);
	--blue-500: var(--php-erp-primary);
	--blue-600: var(--php-erp-primary-dark);
	--blue-50: #eff6ff;
	--blue-100: #dbeafe;
	--blue-200: #bfdbfe;
	--blue-300: #93c5fd;
	--blue-400: #60a5fa;
	--blue-700: #1d4ed8;
	--blue-800: #1e40af;
	--blue-900: #1e3a8a;
	--navbar-bg: #ffffff;
}

.layout-main-section,
.widget,
.frappe-card {
	border-radius: 12px;
}

.standard-sidebar-item.selected,
.standard-sidebar-item:hover,
.desk-sidebar-item.selected,
.workspace-dock-item.active {
	background-color: var(--php-erp-surface) !important;
	color: var(--php-erp-primary-dark) !important;
}

.indicator-pill.blue,
.indicator-pill[data-filter*="blue"] {
	background: #dbeafe;
	color: #1e40af;
}

.btn-primary,
.es-button[data-variant="solid"] {
	background-color: var(--php-erp-primary) !important;
	border-color: var(--php-erp-primary) !important;
}

.btn-primary:hover,
.es-button[data-variant="solid"]:hover {
	background-color: var(--php-erp-primary-dark) !important;
	border-color: var(--php-erp-primary-dark) !important;
}

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

.navbar-home img {
	max-width: 132px;
}

.workspace-dock-logo img,
.sidebar-header img {
	object-fit: contain;
}

.workspace-dock-logo a {
	cursor: pointer;
}

/*
 * ERPNext injects Frappe CRM and Helpdesk product promotions at the bottom of
 * the CRM and Support sidebars. Keep those product links out of the
 * white-labelled Desk without modifying the upstream Frappe sidebar code.
 */
.body-sidebar .promotional-banners {
	display: none !important;
}

[data-theme="dark"] body {
	--php-erp-surface: rgb(37 99 235 / 18%);
	--navbar-bg: #111827;
}

body[data-path="login"] {
	background: linear-gradient(145deg, #f8fafc 0%, var(--php-erp-surface) 100%);
}

body[data-path="login"] .page-card {
	border: 1px solid #dbeafe;
	box-shadow: 0 20px 50px rgb(15 23 42 / 10%);
}

body[data-path="login"] .app-logo {
	width: auto;
	max-width: 190px;
	height: 52px;
}

body[data-path="login"] .web-footer,
body[data-path="login"] .powered-by {
	display: none !important;
}

/* Hide the shared attribution column on every public and portal page. */
.web-footer .footer-powered,
.footer-powered {
	display: none !important;
}
