/*
 * fliix Ops colours for Zammad's web interface (agents and customer portal).
 * Loaded after Zammad's own stylesheet by zammad/application.html.erb and
 * served by Caddy from /brand. It only overrides Zammad's CSS variables, so
 * layout and behaviour stay as shipped. Colours from the console
 * (fliix-ops-console resources/css/app.css): sidebar #06006F (light) and
 * #0A1C2B (dark), dark surfaces #00111A / #002332, accent Tailwind blue.
 * The mobile view (/mobile) has its own stylesheet and stays as shipped.
 */
:root {
  /* accent: buttons, links, active menu entry */
  --button-primary-background: #3b82f6;
  --button-primary-background-active: #2563eb;
  --text-link: #2563eb;
  --text-nav: #2563eb;
  --highlight: #3b82f6;
  --border-highlight: #3b82f6;
  --shadow-highlight: #bfdbfe;
  --text-muted-highlight: #dbeafe;
  --background-highlight: #dbeafe;
  --backdrop-clue-start: rgba(59, 130, 246, 0.1);
  --backdrop-clue-end: rgba(59, 130, 246, 0.9);

  /* navigation in the console's sidebar navy */
  --background-tertiary: #06006f;
  --background-quaternary: #04004f;
  --background-active: #06006f;
  --menu-icon: #8f8cc9;
  --menu-icon-secondary: #2a2680;
  --menu-switch-background: #020033;
  --menu-background-primary-hover: rgba(255, 255, 255, 0.08);
  --fullscreen-text-muted: #5753b0;

  /* surfaces in the console's slate */
  --background-primary: #f8fafc;
  --background-primary-alt: #f1f5f9;
  --background-article-customer: #e8eefc;
  --background-article-customer-meta: #f1f5fd;
  --border-article-customer: #d4ddf6;
  --border-article-customer-selected: #bccbf2;
  --tag-background: #e2e8f0;
  --tag-text: #475569;
}

[data-theme='dark'] {
  --button-primary-background: #3b82f6;
  --button-primary-background-active: #2563eb;
  --text-link: #60a5fa;
  --text-nav: #e2e8f0;
  --highlight: #3b82f6;
  --border-highlight: #3b82f6;
  --shadow-highlight: #1e3a8a;
  --background-highlight: #0f3352;

  /* the console's dark surfaces */
  --background-primary: #00111a;
  --background-primary-alt: #031923;
  --background-secondary: #002332;
  --background-secondary-hover: #001b27;
  --background-tertiary: #0a1c2b;
  --background-quaternary: #06131d;
  --background-quaternary-alt: #1b3646;
  --background-active: var(--highlight);
  --background-popover: #0d2f40;
  --background-article-meta: #062a3b;
  --background-article-customer: #0b3348;
  --background-article-customer-meta: #0a2e41;
  --border: #05202d;
  --border-alt: #0a2736;
  --border-article-customer: #123d52;
  --border-article-customer-selected: #1a4a62;
  --tag-background: #12384b;
  --menu-icon: #6f8494;
  --fullscreen-text-muted: #5b7383;
  --menu-switch-background: #020b11;
  --file-icon-color: #0a1c2b;
}

/* the uploaded logo is fliix blue; on dark the console's dark logo
   (brand/zammad-logo-dark.svg, copy of the console's
   public/fliix-ops-logo-dark.svg) is drawn in its place */
[data-theme='dark'] .company-logo {
  object-position: -99999px 0;
  background: url('/brand/zammad-logo-dark.svg?v=1') center / contain no-repeat;
}

