/* Asenay look for the Asenay copies of the editions (WhatsApp, CRM, Till, Sales, Products, Scanner).
   The editions are built from the Zemen code, which draws a red-dark bar and aubergine accents.
   This file is added to the Asenay builds only, after the app's own stylesheet; the Zemen source and
   zemen.asenayai.com are not touched. Same values as asenay-ui.css: Asenay blue, navy bar, light
   page, white cards. The selectors carry one class more than the app's, so they win in any order. */

/* Inter (SIL Open Font License, asenay-fonts/OFL.txt), served by Asenay itself. The heaviest face
   covers 650-1000, so an app asking for 800 or 900 gets Inter Bold, the weight the Asenay apps top out at. */
@font-face{font-family:"Asenay Inter";font-style:normal;font-display:swap;font-weight:100 449;src:url(asenay-fonts/inter-latin-ext-400-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Asenay Inter";font-style:normal;font-display:swap;font-weight:100 449;src:url(asenay-fonts/inter-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Asenay Inter";font-style:normal;font-display:swap;font-weight:450 549;src:url(asenay-fonts/inter-latin-ext-500-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Asenay Inter";font-style:normal;font-display:swap;font-weight:450 549;src:url(asenay-fonts/inter-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Asenay Inter";font-style:normal;font-display:swap;font-weight:550 649;src:url(asenay-fonts/inter-latin-ext-600-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Asenay Inter";font-style:normal;font-display:swap;font-weight:550 649;src:url(asenay-fonts/inter-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Asenay Inter";font-style:normal;font-display:swap;font-weight:650 1000;src:url(asenay-fonts/inter-latin-ext-700-normal.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Asenay Inter";font-style:normal;font-display:swap;font-weight:650 1000;src:url(asenay-fonts/inter-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root.theme-zemen[data-theme] {
  /* the bar and its menus: Asenay navy instead of dark red */
  --chrome-from: #0b1324;
  --chrome-to: #0b1324;
  --chrome-bar: #0b1324;
  --chrome-text: #ffffff;
  --chrome-text-muted: #cbd5e1;
  --chrome-accent: #8db8ff;
  --chrome-active: #ffffff;
  --chrome-border: rgba(255, 255, 255, .08);
  --chrome-border-top: rgba(255, 255, 255, .08);
  --chrome-border-hover: rgba(141, 184, 255, .45);
  --chrome-fill: #005be0;
  --chrome-fill-soft: rgba(0, 91, 224, .22);
  --chrome-fill-strong: rgba(0, 91, 224, .32);
  --chrome-line: rgba(141, 184, 255, .22);
  --chrome-line-strong: rgba(141, 184, 255, .4);
  --chrome-well: rgba(255, 255, 255, .06);
  --chrome-bar-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 10px 26px -16px rgba(11, 19, 36, .55);
  --chrome-well-shadow: none;
  --chrome-avatar-shadow: none;
  --chrome-on-accent: #ffffff;
  --body-glow: transparent;
}

:root.theme-zemen[data-theme="light"] {
  --bg-base: #f4f6fa;
  --bg-top: #f4f6fa;
  --bg-sidebar: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafd;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --border-accent: rgba(0, 91, 224, .35);

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #5b6474;
  --text-placeholder: #6b7280;

  --accent-gold: #005be0;
  --accent-orange: #005be0;
  --accent-purple: #005be0;
  --accent-blue: #0048b3;
  --on-accent: #ffffff;
  --on-accent-gold: #ffffff;
  --accent-red: #c8201f;

  --primary: #005be0;
  --primary-hover: #0048b3;
  --on-primary: #ffffff;
  --danger-solid: #c8201f;
  --info-solid: #005be0;
  --focus-ring: #005be0;

  --table-head-bg: #f8fafc;
  --table-head-text: #374151;
  --table-head-rule: #e5e7eb;
  --row-hover-bg: #f5f8ff;
  --row-selected-bg: #e8f0ff;
  --select-bg: #e8f0ff;
  --select-bg-strong: #dbe7ff;
  --select-border: rgba(0, 91, 224, .3);
  --select-text: #111827;
  --select-mark: #005be0;
  --input-border: #d1d5db;
  --input-focus-border: #005be0;
  --input-focus-glow: rgba(0, 91, 224, .18);

  --card-bg: #ffffff;
  --card-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -18px rgba(16, 24, 40, .35);

  --dash-bg: #f4f6fa;
  --dash-card: #ffffff;
}

/* Corners and type as in the other Asenay apps (the Zemen theme uses Odoo's 4 px). */
:root.theme-zemen[data-theme] { --radius-sm: 8px; --radius-xs: 6px; }
html.theme-zemen body { font-family: "Asenay Inter", Inter, "Segoe UI", system-ui, -apple-system, sans-serif; }
.theme-zemen .card { border-radius: 14px; }
.theme-zemen .btn, .theme-zemen .btn-primary, .theme-zemen .btn-secondary { border-radius: 10px; }
.theme-zemen .oo-navbar__menu a.active { background: #005be0; color: #ffffff; }

/* The 3D stage behind the sign-in page and the /home launcher: Asenay navy with a blue glow and grid
   instead of the red one. */
:root.theme-zemen[data-theme] {
  --stage-launcher: radial-gradient(280px 280px at 50% 44%, rgba(141, 184, 255, .45), rgba(0, 91, 224, .22) 46%, transparent 72%),
                    radial-gradient(1200px 840px at 50% 44%, rgba(0, 91, 224, .18), transparent 62%),
                    radial-gradient(150% 135% at 50% 44%, #0f1b33 0%, #0b1324 45%, #05080f 100%);
  --stage-auth:     radial-gradient(300px 300px at 50% 46%, rgba(141, 184, 255, .45), rgba(0, 91, 224, .22) 46%, transparent 72%),
                    radial-gradient(1200px 860px at 50% 46%, rgba(0, 91, 224, .18), transparent 62%),
                    radial-gradient(150% 135% at 50% 46%, #0f1b33 0%, #0b1324 45%, #05080f 100%);
  --stage-grid: rgba(61, 134, 255, .45);
  --stage-grid-auth: rgba(61, 134, 255, .4);
  --stage-rays: rgba(110, 162, 255, .1);
  --stage-rays-auth: rgba(110, 162, 255, .11);
  --tile-bg: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 24%), linear-gradient(180deg, #13203b 0%, #0b1324 100%);
  --tile-border: rgba(141, 184, 255, .26);
  --tile-border-top: rgba(190, 214, 255, .45);
  --tile-border-hover: rgba(141, 184, 255, .6);
  --tile-border-top-hover: rgba(190, 214, 255, .6);
  --tile-shadow-hover: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -24px 38px rgba(0, 0, 0, .5), 0 42px 70px rgba(0, 0, 0, .72), 0 0 42px rgba(0, 91, 224, .25);
  --tile-focus: rgba(141, 184, 255, .65);
  --brandmark-glow: rgba(61, 134, 255, .3);
  --brandmark-fill: linear-gradient(180deg, #ffffff 0%, #d6e4ff 52%, #6ea2ff 100%);
  --auth-glow-1: rgba(61, 134, 255, .5);
  --auth-glow-2: rgba(0, 72, 179, .5);
  --auth-grid: rgba(110, 162, 255, .09);
  --auth-card-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -22px 40px rgba(0, 0, 0, .35), 0 3px 8px rgba(0, 0, 0, .5),
                      0 46px 90px -14px rgba(0, 0, 0, .9), 0 0 70px rgba(0, 91, 224, .2);
}
