/* Shopicore island tokens. Custom properties only: this file is included on
   Desk and on the website (login). No element rules, so print HTML that picks
   up web CSS does not gain island layout.

   Dark values sit on html[data-theme="dark"]. frappe.ui.set_theme writes the
   resolved theme there (v16.52 theme_switcher.js). data-theme-mode may stay
   "automatic".

   Canvas mixes are starting points. Browser measurement updates the percentages
   and records the computed colors below.
   Measured on hq.localhost Desk, Frappe v16.52, 2026-10-26.
   Light: canvas color(srgb 0.891 0.891 0.891) ≈ #e3e3e3, surface #ffffff, contrast 1.28:1.
   Dark: canvas color(srgb 0.254 0.254 0.254) ≈ #414141, surface #171717, contrast 1.76:1.
   Both clear the 1.2:1 floor. --bg-color and --card-bg are the same color in each theme.

   Float panels (Link list, MultiSelectList, dropdown menus, calendar) cannot
   use that same surface: on a query report they open over the island and
   disappear into it. Dark elevation-3 is the first step above both the island
   and --control-bg. On the page head that fill is only one step below the
   canvas, so the dark shadow is heavier than --shadow-lg.
*/

:root {
  --sc-island-radius: 12px;
  --sc-island-gap: 4px;
  /* Inside an island, not the gap between them. Sides stay 15px.
     The block inset is shorter: 15px above and below a 28px field made
     the filter and the page-size bar a tall empty band. */
  --sc-island-pad: 15px;
  --sc-island-pad-block: 8px;
  --sc-island-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  --sc-island-border: 1px solid var(--outline-gray-1, rgba(15, 23, 42, 0.12));
  --sc-island-surface: var(--card-bg, #ffffff);
  --sc-island-canvas: color-mix(in srgb, var(--bg-color, #f4f5f7) 88%, #171717);
  --sc-float-bg: var(--surface-base, #ffffff);
  --sc-float-border-color: var(--outline-gray-3, #c7c7c7);
  --sc-float-shadow: var(--shadow-lg, 0 8px 24px rgba(15, 23, 42, 0.12));
}

html[data-theme="dark"] {
  --sc-island-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --sc-island-border: 1px solid var(--outline-gray-1, rgba(255, 255, 255, 0.14));
  --sc-island-surface: var(--card-bg, #1f1f1f);
  --sc-island-canvas: color-mix(in srgb, var(--bg-color, #171717) 82%, #ffffff);
  --sc-float-bg: var(--surface-elevation-3, #383838);
  --sc-float-border-color: var(--outline-gray-4, #575757);
  --sc-float-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

