/* Los tokens de los diez modulos, en un solo sitio.
   Generado sacandolos de los `<style>` de cada shell CON SUS VALORES
   DE HOY: el objetivo es que la paleta viva en un lugar, no que los
   modulos se parezcan. Difieren a proposito.

   `inventory` no esta: sus colores salen de `empresa.color_primario`,
   que es la marca del cliente y cambia por empresa. */

[data-modulo="home"]{
  --sidebar-w: 240px;
  --nav-h: 56px;
}
[data-modulo="home"][data-theme="light"]{
  --shadow: 0 2px 10px rgba(0,0,0,.05);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.08);
}

[data-modulo="accounting"]{
  --sidebar-w: 240px;
  --nav-h: 58px;
}

[data-modulo="colegio"]{
  --sb: #0a1628;
  --sb2: #0f1d33;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --blue-dim: rgba(37,99,235,.12);
  --gold: #d97706;
  --gold-dim: rgba(217,119,6,.12);
  --bg: #f0f4f8;
  --card: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --warn: #d97706;
  --info: #0284c7;
  --success: #16a34a;
  --sidebar-w: 260px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}
[data-modulo="colegio"][data-theme="dark"]{
  --bg: #0f172a;
  --card: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --border: #334155;
}

[data-modulo="health"]{
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #0f172a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --primary: #0ea5e9;
  --primary-hover: #38bdf8;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;
  --sidebar-width: 260px;
}
[data-modulo="health"][data-theme="light"]{
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

[data-modulo="nomina"]{
  --sb: #0f0a2a;
  --sb2: #1a1245;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dim: rgba(99,102,241,.12);
  --gold: #eab308;
  --gold-dim: rgba(234,179,8,.12);
  --bg: #f8f9fc;
  --card: #fff;
  --text: #1e1b4b;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #dc2626;
  --warn: #d97706;
  --info: #0284c7;
  --sidebar-w: 260px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}
[data-modulo="nomina"][data-theme="dark"]{
  --bg: #0a0e1a;
  --card: #1a1f36;
  --text: #e8ecf8;
  --muted: #7b8aaa;
  --border: rgba(255,255,255,.10);
  --shadow: 0 2px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
}

[data-modulo="restaurant"]{
  --sb: #1a0c06;
  --sb2: #22130a;
  --amber: #b45309;
  --amber-light: #d97706;
  --amber-dim: rgba(180,83,9,.12);
  --orange: #ea580c;
  --orange-dim: rgba(234,88,12,.12);
  --bg: #f5f0ed;
  --card: #fff;
  --text: #1a1410;
  --muted: #78716c;
  --border: #e6dfd9;
  --danger: #dc2626;
  --warn: #d97706;
  --info: #0284c7;
  --sidebar-w: 240px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}
[data-modulo="restaurant"][data-theme="dark"]{
  --bg: #14100c;
  --card: #1e1813;
  --text: #ede8e3;
  --muted: #a89f97;
  --border: #332c25;
  --shadow: 0 2px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
}

[data-modulo="escuela"]{
  --sb: #061a0c;
  --sb2: #0a2213;
  --green: #16a34a;
  --green-light: #22c55e;
  --green-dim: rgba(22,163,74,.12);
  --gold: #d97706;
  --gold-dim: rgba(217,119,6,.12);
  --bg: #f0f5f1;
  --card: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --warn: #d97706;
  --info: #0284c7;
  --sidebar-w: 260px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
}
[data-modulo="escuela"][data-theme="dark"]{
  --bg: #0e1512;
  --card: #16201c;
  --text: #e6ede9;
  --muted: #9aa8a1;
  --border: #26332d;
  --shadow: 0 2px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.5);
}

[data-modulo="ecommerce"]{
  --bg: #05091a;
  --bg2: #080d1f;
  --card: #0e1428;
  --cyan: #00c8f0;
  --cyan-dim: rgba(0,200,240,.1);
  --blue: #1a6bff;
  --border: rgba(255,255,255,.07);
  --text: #e8ecf8;
  --muted: #6b7a9e;
  --sidebar-w: 240px;
  --nav-h: 58px;
}
[data-modulo="ecommerce"][data-theme="light"]{
  --bg: #eef2f7;
  --bg2: #f5f8fc;
  --card: #ffffff;
  --border: rgba(15,27,45,.10);
  --text: #0f1b2d;
  --muted: #5c6b86;
}
