/* XFG_V1_DESIGN_TOKENS_20261105: the one source of colours, type sizes, spacing, radii and shadows.
   Loaded before styles.css / pos.css on every page. Only this file holds colour values per theme:
   brand colours change with the theme; danger, warning, success and info mean the same in every theme.
   Breakpoints: 760px (phone) and 1100px (narrow desktop); media queries cannot read variables, so they are written as numbers. */
:root {
  /* Neutrals: 4 greys and 2 backgrounds */
  --ds-ink: #1f2933;
  --ds-ink-soft: #3e4a54;
  --ds-muted: #5a6670;
  --ds-line: #d5dbe0;
  --ds-line-strong: #bcc5cc;
  --ds-surface: #ffffff;
  --ds-surface-soft: #f6f7f8;
  --ds-white: #ffffff;

  /* Meaning colours: the same in every theme */
  --ds-danger: #b42318;
  --ds-danger-soft: #fdecea;
  --ds-danger-line: #f3b8b2;
  --ds-warning: #a8480f;
  --ds-warning-soft: #fdf0e5;
  --ds-warning-line: #f2c9a5;
  --ds-success: #18794e;
  --ds-success-soft: #e6f4ec;
  --ds-success-line: #a9d8bf;
  --ds-info: #2a5f8f;
  --ds-info-soft: #e8f0f7;
  --ds-info-line: #b6cfe3;

  /* Charts: series 1 follows the theme, the others stay apart from it */
  --ds-chart-1: var(--ds-primary);
  --ds-chart-2: #2a7f9e;
  --ds-chart-3: #c98a1b;
  --ds-chart-4: #7b5ea7;
  --ds-chart-5: #c2572f;
  --ds-chart-6: #4f8a5b;

  /* Type */
  --ds-font: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --ds-fs-tag: 11px;
  --ds-fs-note: 13px;
  --ds-fs-table: 13px;
  --ds-fs-body: 14px;
  --ds-fs-card: 16px;
  --ds-fs-page: 20px;
  --ds-fs-figure: 24px;

  /* Spacing */
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 24px;
  --ds-space-6: 32px;

  /* Radii */
  --ds-radius-sm: 6px;
  --ds-radius-md: 10px;
  --ds-radius-lg: 12px;
  --ds-radius-pill: 999px;

  /* Shadows */
  --ds-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --ds-shadow-md: 0 6px 18px rgba(15, 23, 42, .08);
  --ds-shadow-lg: 0 16px 38px rgba(15, 23, 42, .14);

  /* Control heights */
  --ds-control: 36px;
  --ds-control-inline: 32px;
  --ds-control-phone: 40px;

  /* Default theme (forest) */
  --ds-primary: #1b6b55;
  --ds-primary-strong: #114d3e;
  --ds-primary-soft: #e5f0eb;
  --ds-primary-line: #a9cdbf;
  --ds-on-primary: #ffffff;
  --ds-canvas: #f3f6f4;
  --ds-sidebar: #12352b;
  --ds-sidebar-strong: #0c261f;
  --ds-sidebar-text: #eef5f2;
  --ds-sidebar-muted: #b7cdc5;
  --ds-sidebar-active: #1f5545;
  --ds-sidebar-accent: #7fd1b5;
}
html[data-theme="ocean"] {
  --ds-primary: #1f5f8b;
  --ds-primary-strong: #174a6e;
  --ds-primary-soft: #e4eff6;
  --ds-primary-line: #a9c8de;
  --ds-canvas: #f2f6f9;
  --ds-sidebar: #123149;
  --ds-sidebar-strong: #0c2334;
  --ds-sidebar-text: #eef4f9;
  --ds-sidebar-muted: #b4c9da;
  --ds-sidebar-active: #1d4a6b;
  --ds-sidebar-accent: #7fc0e6;
}
html[data-theme="graphite"] {
  --ds-primary: #3f4c55;
  --ds-primary-strong: #2c363d;
  --ds-primary-soft: #e9ecee;
  --ds-primary-line: #bcc5cb;
  --ds-canvas: #f3f4f5;
  --ds-sidebar: #232b31;
  --ds-sidebar-strong: #181e22;
  --ds-sidebar-text: #f0f2f4;
  --ds-sidebar-muted: #bcc4ca;
  --ds-sidebar-active: #39444c;
  --ds-sidebar-accent: #aab7c0;
  --ds-sidebar-selected-bg: #4a5862;
  --ds-sidebar-selected-text: #ffffff;
}
html[data-theme="wine"] {
  --ds-primary: #8a2f45;
  --ds-primary-strong: #6d2336;
  --ds-primary-soft: #f5e6ea;
  --ds-primary-line: #dcb2bd;
  --ds-canvas: #f7f3f4;
  --ds-sidebar: #3d1620;
  --ds-sidebar-strong: #2c0f17;
  --ds-sidebar-text: #f8eef1;
  --ds-sidebar-muted: #dcbcc5;
  --ds-sidebar-active: #5c2534;
  --ds-sidebar-accent: #e59aae;
}
html[data-theme="amber"] {
  --ds-primary: #8f5400;
  --ds-primary-strong: #6f4100;
  --ds-primary-soft: #fbefdc;
  --ds-primary-line: #e4c595;
  --ds-canvas: #f8f5ef;
  --ds-sidebar: #3b2708;
  --ds-sidebar-strong: #2a1c05;
  --ds-sidebar-text: #f9f2e6;
  --ds-sidebar-muted: #dcc9a8;
  --ds-sidebar-active: #5a3d10;
  --ds-sidebar-accent: #e8b562;
}

html[data-theme="honey"] {
  --ds-primary: #b45309;
  --ds-primary-strong: #8f4207;
  --ds-primary-soft: #f4e5da;
  --ds-primary-line: #ece3cf;
  --ds-canvas: #fbf8f0;
  --ds-sidebar: #ffffff;
  --ds-sidebar-strong: #fbf8f0;
  --ds-sidebar-text: #2b2416;
  --ds-sidebar-muted: #6d6150;
  --ds-sidebar-active: #f4e5da;
  --ds-sidebar-accent: #b45309;
}
html[data-theme="lotus"] {
  --ds-primary: #8e5a6b;
  --ds-primary-strong: #6e4352;
  --ds-primary-soft: #f1e6ea;
  --ds-primary-line: #e6d6dc;
  --ds-canvas: #faf7f8;
  --ds-sidebar: #ffffff;
  --ds-sidebar-strong: #faf7f8;
  --ds-sidebar-text: #2e2328;
  --ds-sidebar-muted: #6b5c62;
  --ds-sidebar-active: #f1e6ea;
  --ds-sidebar-accent: #8e5a6b;
}
html[data-theme="sakura"] {
  --ds-primary: #c13b6a;
  --ds-primary-strong: #9c2c53;
  --ds-primary-soft: #fbe4ec;
  --ds-primary-line: #f3d3df;
  --ds-canvas: #fff7fa;
  --ds-sidebar: #ffffff;
  --ds-sidebar-strong: #fff7fa;
  --ds-sidebar-text: #2e1f25;
  --ds-sidebar-muted: #735a64;
  --ds-sidebar-active: #fbe4ec;
  --ds-sidebar-accent: #c13b6a;
}
/* Menu surfaces. Dark menus keep the overlays they had; the three white menus use their own colours. */
:root {
  --ds-sidebar-surface: var(--ds-sidebar-strong);
  --ds-sidebar-hover: color-mix(in srgb, var(--ds-sidebar-accent) 14%, transparent);
  --ds-sidebar-line: rgba(255, 255, 255, .12);
  --ds-sidebar-selected-bg: linear-gradient(90deg, color-mix(in srgb, var(--ds-sidebar-accent) 30%, transparent), color-mix(in srgb, var(--ds-sidebar-active) 18%, transparent));
  --ds-sidebar-selected-text: var(--ds-sidebar-text);
  --ds-sidebar-border: transparent;
  --ds-login-from: var(--ds-sidebar);
  --ds-primary-on-soft: var(--ds-primary);
}
html:is([data-theme="honey"], [data-theme="lotus"], [data-theme="sakura"]) {
  --ds-sidebar-surface: var(--ds-sidebar);
  --ds-sidebar-hover: var(--ds-sidebar-strong);
  --ds-sidebar-line: var(--ds-primary-line);
  --ds-sidebar-selected-bg: var(--ds-primary-soft);
  --ds-sidebar-selected-text: var(--ds-primary-strong);
  --ds-sidebar-border: var(--ds-primary-line);
  --ds-login-from: var(--ds-primary-strong);
  --ds-primary-on-soft: var(--ds-primary-strong);
}

/* Line icons: colour comes from the text, so they follow the theme. */
.ui-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* XFG_V1_UI_ROUND3_20261105: one border around the search box */
.search-panel input, .search-panel input[type="search"], .search-panel input:focus { border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent; }
/* XFG_V1_UI_ROUND3_PATCH_20261105: online stays green in every theme; POS prices, the cart count and the cart icons follow the theme. These rules live here because pos.css selectors are locked by a test. */
:root { --ds-online: #1f9d55; }
.sidebar-foot .cloud-status i { background: var(--ds-online); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ds-online) 18%, transparent); }
html .product-price, html .pos-product-candidate .pos-product-price { color: var(--ds-primary); }
html .cart-button b { background: var(--ds-primary); color: var(--ds-white); }
html :is(.cart-button, .cart-row-button) .ui-icon { color: var(--ds-primary); }
html :is(.round-button.add-product, .open-product-cart) { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: auto; min-width: 72px; height: 44px; padding: 0 10px; border-radius: 10px; font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (min-width: 761px) {
  html .product-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: 1fr; align-items: center; }
  html .product-row .product-actions { display: flex; grid-column: auto; gap: 6px; }
  html :is(.round-button.add-product, .open-product-cart) { min-width: 62px; padding: 0 8px; }
}
html .open-product-cart { min-width: 44px; width: 44px; padding: 0; }
@media (min-width: 761px) { html .open-product-cart { min-width: 44px; padding: 0; } }
#checkout-button.ui-cart-empty { opacity: .5; }
