/* Local ERPNext demo palette, aligned with Projefy CRM. */
:root,
[data-theme="light"] {
  --projefy-navy: #102b3f;
  --projefy-teal: #0c7d88;
  --projefy-cyan: #50c5d8;
  --blue-50: #eefafb;
  --blue-100: #dff4f6;
  --blue-200: #bee8ed;
  --blue-300: #93d8e1;
  --blue-400: #50c5d8;
  --blue-500: #1ca9b8;
  --blue-600: #0c7d88;
  --blue-700: #0a717b;
  --blue-800: #0b5862;
  --blue-900: #10414e;
  --surface-sidebar: #f0f6f7;
  --surface-gray-1: #f7fafb;
  --surface-gray-2: #eaf2f3;
  --surface-gray-3: #deebed;
  --ink-gray-8: #193341;
  --ink-gray-9: #102b3f;
  --outline-gray-1: #dce7e9;
  --outline-gray-2: #cbdcdf;
  --primary: #0c7d88;
  --primary-color: #0c7d88;
  --brand-color: #0c7d88;
  --btn-primary: #0c7d88;
}

[data-theme="dark"],
.dark {
  --projefy-navy: #102b3f;
  --projefy-teal: #50c5d8;
  --projefy-cyan: #50c5d8;
  --blue-50: #dff4f6;
  --blue-100: #bee8ed;
  --blue-200: #93d8e1;
  --blue-300: #72cdd8;
  --blue-400: #50c5d8;
  --blue-500: #35b7c6;
  --blue-600: #2697a5;
  --blue-700: #207c8b;
  --blue-800: #155d6d;
  --blue-900: #124453;
  --surface-base: #0b151c;
  --surface-sidebar: #10212a;
  --surface-gray-1: #12232c;
  --surface-gray-2: #1a303a;
  --surface-gray-3: #25414b;
  --surface-elevation-1: #14262f;
  --surface-elevation-2: #192c35;
  --surface-elevation-3: #203d47;
  --ink-gray-8: #e4f1f3;
  --ink-gray-9: #f5fbfc;
  --outline-gray-1: #29444d;
  --outline-gray-2: #35545e;
  --primary: #50c5d8;
  --primary-color: #50c5d8;
  --brand-color: #50c5d8;
  --btn-primary: #50c5d8;
}

.es-button[data-variant="solid"]:not([data-theme="red"]) {
  --bt-solid-bg: #0c7d88;
  --bt-solid-bg-hover: #0a717b;
  --bt-solid-bg-active: #095e68;
  --bt-solid-fg: #fff;
}

[data-theme="dark"] .es-button[data-variant="solid"]:not([data-theme="red"]) {
  --bt-solid-bg: #50c5d8;
  --bt-solid-bg-hover: #77d3df;
  --bt-solid-bg-active: #2bafbf;
  --bt-solid-fg: #09202a;
}

.active-sidebar,
.dock-item.active {
  background: #def3f5;
  color: #0a717b;
}

.active-sidebar .item-anchor {
  color: #0a717b;
}

[data-theme="dark"] .active-sidebar,
[data-theme="dark"] .dock-item.active {
  background: #183b45;
  color: #8adce5;
}

[data-theme="dark"] .active-sidebar .item-anchor {
  color: #8adce5;
}

body[data-path="login"] {
  background: radial-gradient(circle at 82% 90%, #d9f2f1 0, transparent 35%), #f5f9fa;
}

body[data-path="login"] .page-card {
  background: var(--surface-base);
  border: 1px solid var(--outline-gray-1);
  box-shadow: 0 18px 50px #102b3f14;
}

body[data-path="login"] .page-card-head img.app-logo {
  width: 44px;
  max-height: 44px;
}

[data-theme="dark"] body[data-path="login"] {
  background: radial-gradient(circle at 82% 90%, #0d4445 0, transparent 40%), #071117;
}

[data-theme="dark"] body[data-path="login"] .page-card {
  box-shadow: 0 20px 55px #0007;
}
