/* 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.

   Los colores de letra que no llegaban a 4,5:1 sobre su fondo se
   movieron lo justo, con el mismo tono (A-58). Lo vigila
   common/tests_contraste_tokens.py.

   `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: #2160eb;
  --blue-fondo: #2160eb;
  --blue-fondo-fin: #1249c4;
  --blue-light: #5291f7;
  --blue-dim: rgba(37,99,235,.12);
  --gold: #a85c05;
  --gold-dim: rgba(217,119,6,.12);
  --bg: #f0f4f8;
  --card: #fff;
  --text: #0f172a;
  --muted: #5e6d83;
  --border: #e2e8f0;
  --danger: #be1f1f;
  --danger-fondo: #d62323;
  --warn: #a55a05;
  --info: #0271ab;
  --info-fondo: #0275b1;
  --success: #117e39;
  --success-fondo: #11803a;
  --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;
  /* los de antes (el claro los oscurecio) y el aviso aclarado (A-58) */
  --blue: #6b95f1;
  --gold: #d97706;
  --warn: #e88006;
  --success: #18b351;
  --info: #02a2f3;
  --danger: #e97575;
}

[data-modulo="health"]{
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-sidebar: #0f172a;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --primary: #15adf1;
  --primary-fondo: #0a73a4;
  --primary-hover: #085f87;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #f37171;
  --info: #06b6d4;
  --sidebar-width: 260px;
  --violet: #c288f9;
  --orange: #fa8737;
}
[data-modulo="health"][data-theme="light"]{
  --bg: #f1f5f9;
  --bg-card: #ffffff;
  --bg-sidebar: #ffffff;
  --text: #1e293b;
  --text-muted: #627188;
  --border: #e2e8f0;
  /* oscurecidos hasta 4,5:1 sobre sus fondos (A-58) */
  --primary: #0a73a4;
  --success: #167e3d;
  --warning: #9a6206;
  --danger: #d21212;
  --info: #04778c;
  --violet: #840ff4;
  --orange: #a64604;
}

[data-modulo="nomina"]{
  --sb: #0f0a2a;
  --sb2: #1a1245;
  --primary: #5457f0;
  --primary-fondo: #5457f0;
  --primary-fondo-fin: #2e32ed;
  --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: #626875;
  --border: #e5e7eb;
  --danger: #d22222;
  --danger-fondo: #da2323;
  --warn: #d97706;
  --info: #0279b7;
  --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);
  --success: #107435;
}
[data-modulo="nomina"][data-theme="dark"]{
  --bg: #0a0e1a;
  --card: #1a1f36;
  --text: #e8ecf8;
  --muted: #929fb9;
  --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);
  /* los de antes, y el informativo aclarado para la letra (A-58) */
  --primary: #8386f4;
  --info: #028ed6;
  --danger: #e66565;
  --success: #18b351;
}

[data-modulo="restaurant"]{
  --sb: #1a0c06;
  --sb2: #22130a;
  --amber: #a14a09;
  --amber-fondo: #a94e09;
  --amber-fondo-fin: #893f07;
  --amber-light: #d97706;
  --amber-dim: rgba(180,83,9,.12);
  --orange: #a43e08;
  --orange-dim: rgba(234,88,12,.12);
  --bg: #f5f0ed;
  --card: #fff;
  --text: #1a1410;
  --muted: #6e6864;
  --border: #e6dfd9;
  --danger: #c42020;
  --warn: #925004;
  --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);
  --success: #0f6f32;
  --violet: #682bf3;
}
[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);
  /* el ambar de antes, y el rojo aclarado para la letra (A-58) */
  --amber: #e1680b;
  --danger: #e76d6d;
  --success: #17ae4f;
  --orange: #f46b24;
  --warn: #ea8006;
  --violet: #a27cf8;
}

[data-modulo="escuela"]{
  --sb: #061a0c;
  --sb2: #0a2213;
  --green: #117b38;
  --green-fondo: #117e39;
  --green-fondo-fin: #0d612c;
  --green-light: #22c55e;
  --green-dim: rgba(22,163,74,.12);
  --gold: #a55a05;
  --gold-dim: rgba(217,119,6,.12);
  --bg: #f0f5f1;
  --card: #fff;
  --text: #0f172a;
  --muted: #5a697e;
  --border: #e2e8f0;
  --danger: #cc2121;
  --danger-fondo: #cc2121;
  --warn: #a85c05;
  --info: #0272ad;
  --info-fondo: #0275b1;
  --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);
  --violet: #6a2ef3;
}
[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);
  /* los de antes: el tema claro los oscurecio para la letra (A-58) */
  --green: #18ab4e;
  --gold: #d97706;
  --warn: #d97706;
  --info: #0298e4;
  --danger: #e66767;
  --violet: #a581f8;
}

[data-modulo="ecommerce"]{
  --bg: #05091a;
  --bg2: #080d1f;
  --card: #0e1428;
  --cyan: #00c8f0;
  --cyan-fondo: #00c8f0;
  --cyan-dim: rgba(0,200,240,.1);
  --blue: #1a6bff;
  --border: rgba(255,255,255,.07);
  --text: #e8ecf8;
  --muted: #7785a6;
  --sidebar-w: 240px;
  --nav-h: 58px;
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #fb7185;
  --indigo: #8183f4;
  --violet: #b56ef8;
  --pink: #f472b6;
}
[data-modulo="ecommerce"][data-theme="light"]{
  --cyan: #006f85;
  --bg: #eef2f7;
  --bg2: #f5f8fc;
  --card: #ffffff;
  --border: rgba(15,27,45,.10);
  --text: #0f1b2d;
  --muted: #5c6b86;
  --success: #147337;
  --warn: #8c5a06;
  --danger: #c60622;
  --indigo: #3f43ee;
  --violet: #820bf3;
  --pink: #be0f6b;
}
