/* EK Payroll — Ektime brand theme (orange).
 *
 * Remaps Frappe v17 Espresso tokens (--surface-*, --ink-*, --outline-*) and the
 * legacy aliases (--primary, --btn-primary, link ink) to the Ektime palette:
 *   primary  #EA580C · light  #F97316 · tint  #FFEDD5
 *   text     #23204A · muted  #7A7C9C · navy  #26264F
 *   bg       #F4F5FB · border #E7E8F4
 */

:root,
[data-theme="light"] {
	/* ---- brand ---- */
	--primary: #ea580c;
	--primary-color: #ea580c;
	--brand-color: #ea580c;
	--btn-primary: #ea580c;
	--progress-bar-bg: #ea580c;

	/* ---- surfaces: ektime lavender-gray ---- */
	--surface-gray-1: #f6f6fb;
	--surface-gray-2: #efeff6;
	--surface-sidebar: #f4f5fb;
	--navbar-bg: #ffffff;

	/* ---- ink: ektime navy text ---- */
	--ink-gray-9: #26264f;
	--ink-gray-8: #23204a;
	--ink-gray-7: #3d3c66;
	--ink-gray-6: #7a7c9c;
	--ink-gray-5: #8f91b0;
	--ink-gray-3: #c4c6dd;

	/* ---- outlines ---- */
	--outline-gray-1: #e7e8f4;
	--outline-gray-2: #dddef0;

	/* ---- links, selection, active states ---- */
	--ink-blue-link: #ea580c;
	--sidebar-select-color: #ffedd5;
	--subtle-accent: #fdf4ec;

	/* ---- focus + date pickers ---- */
	--highlight-shadow: 1px 1px 10px #ffedd5, 0 0 4px #ea580c;
	--focus-default: 0px 0px 0px 2px rgba(234, 88, 12, 0.35);
	--date-active-bg: #ea580c;
	--date-active-text: #ffffff;
	--date-range-bg: #ffedd5;
	--timeline-badge-bg: #ffedd5;
	--timeline-badge-color: #c2410c;
}

[data-theme="dark"] {
	--primary: #f97316;
	--primary-color: #f97316;
	--brand-color: #f97316;
	--btn-primary: #f97316;
	--progress-bar-bg: #f97316;
	--ink-blue-link: #fdba74;
	--sidebar-select-color: #3a2410;
	--subtle-accent: #2c1f16;
	--highlight-shadow: 1px 1px 10px #431407, 0 0 4px #f97316;
	--focus-default: 0px 0px 0px 2px rgba(249, 115, 22, 0.45);
	--date-active-bg: #f97316;
	--date-active-text: #1c1010;
	--date-range-bg: #3a2410;
	--timeline-badge-bg: #3a2410;
	--timeline-badge-color: #fdba74;
}

[data-theme="dark"] .btn.btn-primary {
	color: #fff;
}

/* brand strip across the desk + web topbar */
.navbar {
	border-top: 2px solid var(--primary);
}

::selection {
	background: #ffedd5;
	color: #23204a;
}
