/* RX palette – ONE theme for the whole hub (Orders + Sales CRM + Client Base).
   The hub strip's palette button writes data-rx-theme on <html> (hub-embed.js
   applies it on every page from localStorage "rx_hub_theme"), and these
   variables recolour all three apps together. Default: Glacier (Sky Blue shades). */

:root,
html[data-rx-theme="glacier"] {
  --rx-a1: #0ea5e9; /* main accent – sky-500 (v1.90 Clean Bold Sky) */
  --rx-a2: #38bdf8; /* gradient partner – Sky Blue */
  --rx-deep: #0369a1; /* text / outlines – sky-700, readable on white */
  --rx-wash: #f5f7fa; /* clean neutral page wash */
}

/* v1.99.29 JARVIS: cyan / electric blue accents that stay readable on the light Sales / Clients / Hiring pages */
html[data-rx-theme="jarvis"] {
  --rx-a1: #0EA5D9;
  --rx-a2: #4D7CFF;
  --rx-deep: #1D4ED8;
  --rx-wash: #EEF5FB;
}

html[data-rx-theme="royal"] {
  --rx-a1: #2563eb;
  --rx-a2: #4f46e5;
  --rx-deep: #1e40af;
  --rx-wash: #f5f8fe;
}

html[data-rx-theme="mint"] {
  --rx-a1: #059669;
  --rx-a2: #10b981;
  --rx-deep: #047857;
  --rx-wash: #f3fbf7;
}

html[data-rx-theme="sunset"] {
  --rx-a1: #ea580c;
  --rx-a2: #f59e0b;
  --rx-deep: #c2410c;
  --rx-wash: #fdf8f2;
}

/* ---- Active Orders (Glacier theme) follows the shared palette. ---- */
html[data-theme="glacier"][data-rx-theme="royal"] {
  --primary: #2563eb;
  --primary-hover: #1e40af;
  --accent: #4f46e5;
  --info: #1d4ed8;
  --active-text: #1e40af;
  --bg: #f5f8fe;
  --border: rgba(37, 99, 235, 0.2);
  --shadow: 0 10px 32px rgba(37, 99, 235, 0.12);
  --gradient-primary: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
}

html[data-theme="glacier"][data-rx-theme="mint"] {
  --primary: #059669;
  --primary-hover: #047857;
  --accent: #10b981;
  --info: #047857;
  --active-text: #047857;
  --bg: #f3fbf7;
  --border: rgba(5, 150, 105, 0.2);
  --shadow: 0 10px 32px rgba(5, 150, 105, 0.12);
  --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

html[data-theme="glacier"][data-rx-theme="sunset"] {
  --primary: #ea580c;
  --primary-hover: #c2410c;
  --accent: #f59e0b;
  --info: #c2410c;
  --active-text: #c2410c;
  --bg: #fdf8f2;
  --border: rgba(234, 88, 12, 0.2);
  --shadow: 0 10px 32px rgba(234, 88, 12, 0.12);
  --gradient-primary: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
}
