/* Stone Surgeons CRM — Sonner toasts in the CRM's look (Nov 22 2026, v144; toasts.js + vendor/sonner-2.0.8.js).
   Sonner brings its own styles; these put it on the CRM's tokens so light and dark follow the app: the flat card
   (surface, thin border, one shadow), the CRM's font, a coloured icon per kind, errors on the red tint. No blur. */
html [data-sonner-toaster][data-sonner-theme] {
  font-family: var(--body, inherit);
  --border-radius: var(--radius-lg, 10px);
  --normal-bg: var(--surface, #fff);
  --normal-bg-hover: var(--surface-2, #f1f3f6);
  --normal-border: var(--border, #e2e6eb);
  --normal-border-hover: var(--border-strong, #c9d0d8);
  --normal-text: var(--text, #141a21);
  --error-bg: var(--danger-bg, #fbe9e8);
  --error-border: var(--danger-line, #efbdb9);
  --error-text: var(--danger, #9e221c);
}
html [data-sonner-toaster] [data-sonner-toast][data-styled="true"] {
  font-size: 14px; padding: 13px 16px; gap: 8px; box-shadow: var(--shadow-2, 0 8px 24px rgba(16, 24, 40, .12));
}
html [data-sonner-toaster] [data-sonner-toast][data-styled="true"] [data-title] { font-weight: 500; line-height: 1.4; }
html [data-sonner-toaster] [data-sonner-toast][data-styled="true"] [data-description] { color: var(--text-2, #4a5562); }
html [data-sonner-toaster] [data-sonner-toast][data-type="success"] [data-icon] { color: var(--success, #14643f); }
html [data-sonner-toaster] [data-sonner-toast][data-type="warning"] [data-icon] { color: var(--warning, #8a5a00); }
html [data-sonner-toaster] [data-sonner-toast][data-type="info"] [data-icon] { color: var(--info, #155a9c); }
html [data-sonner-toaster] [data-sonner-toast][data-type="error"] [data-icon] { color: var(--danger, #9e221c); }
html [data-sonner-toaster] [data-sonner-toast].toast-deleted [data-icon] { color: var(--danger, #9e221c); }
html [data-sonner-toaster] [data-sonner-toast][data-styled="true"] [data-button] {
  height: 30px; padding: 0 12px; font: 600 13px/1 var(--body, inherit); border-radius: var(--radius, 6px);
  background: var(--text, #141a21); color: var(--surface, #fff);
}
html [data-sonner-toaster] [data-sonner-toast][data-styled="true"] [data-button]:hover { opacity: .88; }

/* room for what sits at the bottom of the screen (the same spots the old toast moved to) */
body:has(.loc-pill) [data-sonner-toaster] { --offset-bottom: 60px !important; --mobile-offset-bottom: 60px !important; }
body.bulk-on [data-sonner-toaster] {
  --offset-bottom: calc(108px + env(safe-area-inset-bottom)) !important; --mobile-offset-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
}
body:has(.upd-bar) [data-sonner-toaster] {
  --offset-bottom: calc(76px + env(safe-area-inset-bottom)) !important; --mobile-offset-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
}
.map-fs-layer [data-sonner-toaster] {
  --offset-bottom: calc(110px + env(safe-area-inset-bottom)) !important; --mobile-offset-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
}

/* NumberFlow (numbers.js): the rolling digits in tiles, KPIs and counts. The page's own text stays next to them, out of
   sight (.nf-sr), for screen readers, copy and the tests. */
number-flow { font-variant-numeric: tabular-nums; --number-flow-mask-height: .18em; }
.nf-sr { display: inline-block; width: 1px; height: 1px; margin: 0 -1px 0 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; vertical-align: top; }
