@crisp-ui-kit/crisp 0.54.8 → 0.54.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/board.css +32 -8
  2. package/dist/board.layered.css +32 -8
  3. package/dist/cjs/components/contextmenu/contextmenu.js +2 -2
  4. package/dist/cjs/components/contextmenu/contextmenu.recipe.js +24 -0
  5. package/dist/cjs/components/datatable/datatable.js +593 -51
  6. package/dist/cjs/components/datatable/datatable.recipe.js +67 -3
  7. package/dist/cjs/components/dialog/dialog.js +65 -1
  8. package/dist/cjs/components/tabletoolbar/tabletoolbar.chrome.js +37 -2
  9. package/dist/cjs/components/tabletoolbar/tabletoolbar.js +218 -39
  10. package/dist/cjs/components/tabletoolbar/tabletoolbar.recipe.js +48 -1
  11. package/dist/cjs/components/text/text.recipe.js +17 -7
  12. package/dist/cjs/product/board/board.js +62 -28
  13. package/dist/cjs/product/board/board.recipe.js +42 -2
  14. package/dist/cjs/product/comments/comments.js +11 -2
  15. package/dist/cjs/product/comments/comments.recipe.js +14 -4
  16. package/dist/cjs/product/recordstable/recordstable.js +1 -17
  17. package/dist/cjs/product/savedviews/savedviews.js +55 -24
  18. package/dist/cjs/product/savedviews/savedviews.recipe.js +27 -0
  19. package/dist/comments.css +14 -4
  20. package/dist/comments.layered.css +14 -4
  21. package/dist/contextmenu.css +24 -0
  22. package/dist/contextmenu.layered.css +24 -0
  23. package/dist/datatable.css +106 -77
  24. package/dist/datatable.layered.css +106 -77
  25. package/dist/esm/components/contextmenu/contextmenu.js +2 -2
  26. package/dist/esm/components/contextmenu/contextmenu.recipe.js +24 -0
  27. package/dist/esm/components/datatable/datatable.js +593 -52
  28. package/dist/esm/components/datatable/datatable.recipe.js +68 -4
  29. package/dist/esm/components/dialog/dialog.js +65 -1
  30. package/dist/esm/components/tabletoolbar/tabletoolbar.chrome.js +37 -2
  31. package/dist/esm/components/tabletoolbar/tabletoolbar.js +219 -40
  32. package/dist/esm/components/tabletoolbar/tabletoolbar.recipe.js +50 -3
  33. package/dist/esm/components/text/text.recipe.js +17 -7
  34. package/dist/esm/product/board/board.js +63 -29
  35. package/dist/esm/product/board/board.recipe.js +42 -2
  36. package/dist/esm/product/comments/comments.js +12 -3
  37. package/dist/esm/product/comments/comments.recipe.js +14 -4
  38. package/dist/esm/product/recordstable/recordstable.js +2 -18
  39. package/dist/esm/product/savedviews/savedviews.js +57 -26
  40. package/dist/esm/product/savedviews/savedviews.recipe.js +27 -0
  41. package/dist/recordstable.css +33 -31
  42. package/dist/recordstable.layered.css +33 -31
  43. package/dist/savedviews.css +27 -0
  44. package/dist/savedviews.layered.css +27 -0
  45. package/dist/styles.css +282 -125
  46. package/dist/styles.layered.css +282 -125
  47. package/dist/tabletoolbar.css +45 -4
  48. package/dist/tabletoolbar.layered.css +45 -4
  49. package/dist/text.css +1 -1
  50. package/dist/text.layered.css +1 -1
  51. package/dist/types/components/contextmenu/contextmenu.d.ts +8 -1
  52. package/dist/types/components/datatable/datatable.d.ts +98 -2
  53. package/dist/types/components/tabletoolbar/tabletoolbar.d.ts +72 -2
  54. package/dist/types/components/text/text.recipe.d.ts +1 -1
  55. package/dist/types/product/board/board.d.ts +48 -2
  56. package/dist/types/product/comments/comments.d.ts +6 -1
  57. package/dist/types/product/recordstable/recordstable.d.ts +0 -1
  58. package/dist/types/product/savedviews/savedviews.d.ts +45 -8
  59. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -560,6 +560,30 @@
560
560
  .crisp-contextmenu-item--danger:hover { background: color-mix(in srgb, var(--crisp-bg-danger) 10%, transparent); }
561
561
  .crisp-contextmenu-shortcut { margin-inline-start: auto; padding-inline-start: var(--crisp-space-3); color: var(--crisp-fg-muted); font-size: var(--crisp-text-sm); }
562
562
  .crisp-contextmenu-sep { height: 1px; margin: var(--crisp-space-1) 0; border: none; background: var(--crisp-border-subtle); }
563
+ /* crisp/#598: Attio's OWN cell-level context menu, measured live on
564
+ app.attio.com/techpartners/companies (right-click a data cell) --
565
+ theme-INDEPENDENT dark chrome, not this app's dark THEME (every
566
+ geometry value above -- 12px/8px radius, 4px/8px padding, 32px item
567
+ height, item gap included below -- already matched what was
568
+ measured here; only the colour pair differs, so only colours are
569
+ overridden). Same "#101112 / #eeeff1" dark-pill ink Tooltip
570
+ already hardcodes for the identical reason (that surface is ALSO
571
+ theme-independent). */
572
+ .crisp-contextmenu-content[data-variant="dark"] { background: #101112; box-shadow: none; }
573
+ .crisp-contextmenu-content[data-variant="dark"] .crisp-contextmenu-item { gap: var(--crisp-space-1-5); color: #eeeff1; }
574
+ .crisp-contextmenu-content[data-variant="dark"] .crisp-contextmenu-item svg { color: #898a8d; }
575
+ /* Plain-item hover re-measured live on the same cell menu (right-click
576
+ "Description" on app.attio.com/techpartners/companies, hover the
577
+ "Copy" row): getComputedStyle on the row is rgba(255,255,255,0.1),
578
+ not the 0.08 this used to guess at. The danger row's own hover
579
+ (hovering "Clear value") still didn't get re-measured -- that one
580
+ remains the derived red-on-black translation below, flagged on
581
+ crisp#598 for someone to confirm live. */
582
+ .crisp-contextmenu-content[data-variant="dark"] .crisp-contextmenu-item:hover { background: rgba(255,255,255,0.1); }
583
+ .crisp-contextmenu-content[data-variant="dark"] .crisp-contextmenu-item--danger { color: #ff5454; }
584
+ .crisp-contextmenu-content[data-variant="dark"] .crisp-contextmenu-item--danger svg { color: #ff5454; }
585
+ .crisp-contextmenu-content[data-variant="dark"] .crisp-contextmenu-item--danger:hover { background: rgba(255,84,84,0.12); }
586
+ .crisp-contextmenu-content[data-variant="dark"] .crisp-contextmenu-sep { background: rgba(255,255,255,0.1); }
563
587
 
564
588
  .crisp-contextmenu {
565
589
  display: contents; font-family: var(--crisp-font-sans);
@@ -584,61 +608,71 @@
584
608
  & .crisp-datatable-count { margin-inline-start: auto; font-size: var(--crisp-text-md); color: var(--crisp-fg-muted); }
585
609
  /* announced, never drawn */
586
610
  & .crisp-datatable-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
587
- /* The header cell has no padding of its own -- the button owns the full cell so the whole header is clickable (its own inset is 12px). Mirrors the summary-row fix. `& .crisp-table th`, not bare `& th` (found while re-checking #691's
611
+ /* crisp/#645: visually-hidden-but-focusable, not visually-hidden-and- inert like .crisp-datatable-live above -- same clip-rect shape, this one just needs to actually hold DOM focus so a native copy/paste event has something to fire on (see its own comment in datatable.tsx). resize: none keeps a stray native textarea handle from ever being drawable, even though it's clipped to 1px anyway. */
612
+ & .crisp-datatable-clipboard-proxy {
613
+ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
614
+ overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
615
+ resize: none;
616
+ }
617
+ /* single active cell (crisp/#645 follow-up -- this had no styling of its
618
+ own at all before, a gap against Golden Rule 0: RecordsTable's own measured value, .crisp-recordstable-td[data-selected], brought across unchanged now that a visible anchor actually matters for the Shift+Click range below). */
619
+ & td[data-selected] { outline: 2px solid var(--crisp-bg-brand-solid); outline-offset: -2px; border-radius: var(--crisp-radius-sm); z-index: 3; }
620
+ /* crisp/#645, G-101: a Shift+Click range -- reuses the row-selection tint formula already used twice below (tbody tr[data-selected] td) for the same reason a selected group of rows gets one: a selected GROUP of cells is the same kind of state, just cell-scoped instead of row-scoped. Not independently re-measured against Attio's own range
621
+ highlight (out of scope this slice -- flagged on crisp#645). */
622
+ & td[data-in-range] { background: color-mix(in srgb, var(--crisp-bg-brand-solid) 10%, var(--crisp-bg-surface));
623
+ } /* The header cell has no padding of its own -- the button owns the full cell so the whole header is clickable (its own inset is 12px). Mirrors the summary-row fix. `& .crisp-table th`, not bare `& th` (found while re-checking #691's
588
624
  own fix live): DataTable's root nests `Table`'s own wrapper, whose
589
- `table.recipe.ts` carries `& th, & td { padding: 0 12px }` at the
590
- SAME specificity (.crisp-table th vs .crisp-datatable th, both one
591
- class + one element) -- a bare `& th` here only won by source
592
- order, which flipped the moment table.recipe.ts's own CSS file happened to land after datatable's in the build (alphabetical:
593
- datatable < table), silently reinstating 12px on every header cell
594
- in the whole product and making every interactive column's button double it to 24px. Scoping through `.crisp-table` adds a second class to the selector (0,2,1 beats 0,1,1) so this can never lose a specificity tie to source order again. */
625
+ `table.recipe.ts` carries `& th, & td { padding: 0 12px }
626
+ ` at the SAME specificity (.crisp-table th vs .crisp-datatable th, both one class + one element) -- a bare `& th` here only won by source order, which flipped the moment table.recipe.ts's own CSS file
627
+ happened to land after datatable's in the build (alphabetical: datatable < table), silently reinstating 12px on every header cell in the whole product and making every interactive column's button
628
+ double it to 24px. Scoping through `.crisp-table` adds a second
629
+ class to the selector (0,2,1 beats 0,1,1) so this can never lose a
630
+ specificity tie to source order again. */
595
631
  & .crisp-table th { padding: 0; }
596
- /* Same wrapper trap as AUTHORING.md Lesson 40 (ColumnCalc's summary trigger):
597
- Menu wraps its trigger in a flex div that sizes to its content, so a
598
- long header grew past the column instead of filling it -- with nothing
599
- left to squeeze, the label's own ellipsis CSS (below) had no properly -sized box to truncate against, and the th's own overflow hard-clipped
600
- it with no "...". Fill the wrapper, scoped to th so Menu's default (correct everywhere else) is untouched. */
632
+ /* Same wrapper trap as AUTHORING.md Lesson 40 (ColumnCalc's summary trigger): Menu wraps its trigger in a flex div that sizes to its content, so a long header grew past the column instead of filling it -- with nothing left to squeeze, the label's own ellipsis CSS (below) had no properly
633
+ -sized box to truncate against, and the th's own overflow hard-clipped it with no "...". Fill the wrapper, scoped to th so Menu's default
634
+ (correct everywhere else) is untouched. */
601
635
  & th .crisp-menu { width: 100%; height: 100%; }
602
636
  & .crisp-datatable-th-inner { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; min-width: 0; height: 100%; }
603
637
  & .crisp-datatable-th-inner > svg { flex-shrink: 0; color: var(--crisp-fg-muted); }
604
- /* crisp/#605 follow-up: a header with neither a Menu nor a sort button (the primary/entity column's now-inert path, or any column with no
605
- columnMenu/sortable at all) renders .crisp-datatable-th-inner as a
606
- DIRECT child of th instead of nested inside a button -- and loses
607
- the button's own 12px inset, drifting left of the td's 12px base
608
- inset. Measured live on Attio's own Companies grid: the header label and the cell's own text land at the exact same x (335px from the
609
- viewport, both 40px from the column's left edge) via two different padding+icon+gap combinations -- Attio does not leave the inert primary header flush left either. The `>` combinator targets only the button-less case: Menu's own wrapper (`.crisp-menu`) and the
610
- plain sort `button` both put >=1 more level between `th` and this
611
- span, so their own 12px (already on the button) isn't doubled. */
638
+ /* crisp/#605 follow-up: a header with neither a Menu nor a sort button
639
+ (the primary/entity column's now-inert path, or any column with no columnMenu/sortable at all) renders .crisp-datatable-th-inner as a DIRECT child of th instead of nested inside a button -- and loses the button's own 12px inset, drifting left of the td's 12px base inset. Measured live on Attio's own Companies grid: the header label
640
+ and the cell's own text land at the exact same x (335px from the viewport, both 40px from the column's left edge) via two different
641
+ padding+icon+gap combinations -- Attio does not leave the inert
642
+ primary header flush left either. The `>` combinator targets only
643
+ the button-less case: Menu's own wrapper (`.crisp-menu`) and the plain sort `button` both put >=1 more level between `th` and this span, so their own 12px (already on the button) isn't doubled. */
612
644
  & th > .crisp-datatable-th-inner { box-sizing: border-box; padding: 0 var(--crisp-space-3); }
613
- /* The summary cell has NO padding of its own -- the calculation trigger owns the whole 246x37 area so a click anywhere in the cell opens the menu. Zero the cell's inset and let ColumnCalc supply the 12px. */
645
+ /* The summary cell has NO padding of its own -- the calculation trigger
646
+ owns the whole 246x37 area so a click anywhere in the cell opens the
647
+ menu. Zero the cell's inset and let ColumnCalc supply the 12px. */
614
648
  & tfoot td { padding: 0; }
615
- /* Group heading row -- a view is grouped under a subtle label with the
616
- bucket's count beside it. */
617
- & .crisp-datatable-viewsettings { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: var(--crisp-size-row); margin: 0; padding: 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-md); background: transparent; color: var(--crisp-fg-muted); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); white-space: nowrap; cursor: pointer; transition: background-color .12s, color .12s; }
649
+ /* Group heading row -- a view is grouped under a subtle label with the bucket's count beside it. */
650
+ & .crisp-datatable-viewsettings { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: var(--crisp-size-row); margin: 0; padding: 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-md); background: transparent; color: var(--crisp-fg-muted); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); white-space: nowrap; cursor: pointer; transition: background-color .12s, color .12s; }
618
651
  & .crisp-datatable-viewsettings:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); color: var(--crisp-fg-primary); }
619
652
  & .crisp-datatable-group-label { padding: var(--crisp-space-1-5) var(--crisp-space-2) var(--crisp-space-1); font-size: var(--crisp-text-sm); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-muted); }
620
- & .crisp-datatable-group { height: var(--crisp-size-menuRow); padding: 0 var(--crisp-space-3); background: var(--crisp-bg-subtle); border-bottom: 1px solid var(--crisp-border-subtle); font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
653
+ & .crisp-datatable-group { height: var(--crisp-size-menuRow); padding: 0 var(--crisp-space-3); background: var(--crisp-bg-subtle); border-bottom: 1px solid var(--crisp-border-subtle); font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
621
654
  & .crisp-datatable-group-count { margin-inline-start: var(--crisp-space-1-5); color: var(--crisp-fg-muted); font-variant-numeric: tabular-nums; }
622
655
  & .crisp-datatable-th-rename { width: 100%; min-width: 0; height: var(--crisp-size-row); margin: 0; padding: 0 var(--crisp-space-1); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-bg-brand-solid); font-family: inherit; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); outline: none; }
623
656
  & .crisp-datatable-th-rename:focus { box-shadow: inset 0 0 0 1px var(--crisp-bg-brand-solid); }
624
657
  & .crisp-datatable-th-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
625
- /* #465: 12px per the comment above (and Attio's measured header cell
626
- padding: 0 12px) -- was still c.space["2"] (8px), drifted from its
627
- own documented value. */
658
+ /* #465: 12px per the comment above (and Attio's measured header cell padding: 0 12px) -- was still c.space["2"] (8px), drifted from its own documented value. */
628
659
  & .crisp-datatable-sort { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0 var(--crisp-space-3); border: none; background: none; font: inherit; letter-spacing: inherit; color: inherit; text-align: start; cursor: pointer; }
629
- /* A right-aligned column's header keeps its field-icon + label packed at the START, matching its own values only in that the VALUES right-align -- Attio's own right-aligned header (measured live: "Twitter follower
630
- count") keeps the icon+label left and only the trailing column-menu
631
- icon sits pinned to the right edge, independent of the label's width (#406, reversing #393's own justify-content: flex-end here). The
632
- chevron's own margin-inline-start: auto below already pins IT to the end of a flex-start row with no override needed -- that's what pins
633
- the trailing icon on Attio too. */
660
+ /* A right-aligned column's header keeps its field-icon + label packed at
661
+ the START, matching its own values only in that the VALUES right-align
662
+ -- Attio's own right-aligned header (measured live: "Twitter follower
663
+ count") keeps the icon+label left and only the trailing column-menu icon sits pinned to the right edge, independent of the label's width
664
+ (#406, reversing #393's own justify-content: flex-end here). The chevron's own margin-inline-start: auto below already pins IT to the
665
+ end of a flex-start row with no override needed -- that's what pins the trailing icon on Attio too. */
634
666
  & .crisp-datatable-chevron { margin-inline-start: auto; flex-shrink: 0; color: var(--crisp-fg-muted); opacity: 0; transition: opacity .12s; }
635
667
  & .crisp-datatable-sort:hover .crisp-datatable-chevron { opacity: 0.6; }
636
668
  & .crisp-datatable-sort[data-sorted] .crisp-datatable-chevron { opacity: 1; color: var(--crisp-fg-primary); }
637
669
  /* sticky first column(s) + horizontal scroll shadow — RecordsTable's feel */
638
670
  & th[data-sticky], & td[data-sticky] { position: sticky; z-index: 1; background: var(--crisp-bg-surface); }
639
- & th[data-sticky] { z-index: 3; }
640
- /* #554: a footer sticky-column cell sits in the bottom-sticky row (table.recipe.ts's
641
- `tfoot td { z-index: 2 }`), which `td[data-sticky]`'s own higher-specificity `z-index: 1` would otherwise undercut -- keep it level with the row it's in. */
671
+ & th[data-sticky] { z-index: 3;
672
+ } /* #554: a footer sticky-column cell sits in the bottom-sticky row (table.recipe.ts's
673
+ `tfoot td { z-index: 2 }
674
+ `), which `td[data-sticky]`'s own higher-specificity
675
+ `z-index: 1` would otherwise undercut -- keep it level with the row it's in. */
642
676
  & tfoot td[data-sticky] { z-index: 2; }
643
677
  & tbody tr[data-selected] td[data-sticky] { background: color-mix(in srgb, var(--crisp-bg-brand-solid) 10%, var(--crisp-bg-surface)); }
644
678
  & tbody tr:hover td[data-sticky] { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, var(--crisp-bg-surface)); }
@@ -655,64 +689,84 @@
655
689
  & tbody tr[data-selected] td { background: color-mix(in srgb, var(--crisp-bg-brand-solid) 10%, var(--crisp-bg-surface)); }
656
690
  & tbody tr[data-selected]:hover td { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, color-mix(in srgb, var(--crisp-bg-brand-solid) 10%, var(--crisp-bg-surface))); }
657
691
  & .crisp-datatable-editable:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, var(--crisp-bg-surface)); cursor: text; }
692
+ /* crisp/#758: AI-enriched column marker, ported from RecordsTable's own already-measured value -- a full-bleed #9b69ff (bgPurple) wash at 4%, composited OVER whatever row-state background the cell already has (hover, selected), which is why it's an ::after overlay and not a
693
+ plain background. */
694
+ & td[data-enriched]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: color-mix(in srgb, var(--crisp-bg-purple) 4%, transparent); }
658
695
  & .crisp-datatable-edit { width: 100%; height: 28px; margin: 0; padding: 0 var(--crisp-space-1-5); border: none; border-radius: var(--crisp-radius-sm); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-bg-brand-solid); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); outline: none; vertical-align: middle; }
659
696
  & .crisp-datatable-edit:focus { box-shadow: inset 0 0 0 1px var(--crisp-bg-brand-solid); }
660
- /* An async onEdit's in-flight state (#385) -- the field/picker dims and
661
- stops accepting input rather than disappearing, so the just-typed or
662
- just-chosen value stays visible while its commit is pending. Same
663
- treatment Input already gives its own disabled state. */
697
+ /* An async onEdit's in-flight state (#385) -- the field/picker dims and stops accepting input rather than disappearing, so the just-typed or just-chosen value stays visible while its commit is pending. Same treatment Input already gives its own disabled state. */
664
698
  & .crisp-datatable-edit:disabled { opacity: 0.5; cursor: not-allowed; }
665
699
  & .crisp-datatable-edit-pending { flex-shrink: 0; margin-inline-start: var(--crisp-space-1); color: var(--crisp-fg-muted); vertical-align: middle; }
666
- /* The rejection's message, beside the cell's own content -- a sibling in
667
- the TableCell, never nested inside a column's own render output, so a hover-only wrapper (a Tooltip, say) around a custom render can't hide
668
- it. Block-level: the row grows to fit it rather than floating over
669
- the row below, so it can never end up clipped by the scroll
670
- container's overflow the way a position:fixed escape would need guarding against. */
700
+ /* The rejection's message, beside the cell's own content -- a sibling in the TableCell, never nested inside a column's own render output, so a
701
+ hover-only wrapper (a Tooltip, say) around a custom render can't hide it. Block-level: the row grows to fit it rather than floating over the row below, so it can never end up clipped by the scroll container's overflow the way a position:fixed escape would need
702
+ guarding against. */
671
703
  & .crisp-datatable-edit-error { display: block; padding: var(--crisp-space-0-5) 0 0; font-size: var(--crisp-text-sm); color: var(--crisp-bg-danger); }
672
- /* editor: "select"/"switch" -- always live, no separate edit mode, so the cell IS the picker: same chromeless-fill treatment as RecordsTable's own --picker cells (measured there already; DataTable
673
- shares RecordsTable's grid, Golden Rule 0). */
704
+ /* editor: "select"/"switch" -- always live, no separate edit mode, so
705
+ the cell IS the picker: same chromeless-fill treatment as
706
+ RecordsTable's own --picker cells (measured there already; DataTable shares RecordsTable's grid, Golden Rule 0). */
674
707
  & .crisp-datatable-td--picker { padding: 0; }
675
708
  & .crisp-datatable-edit-picker { display: flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-tableRow); padding: 0 var(--crisp-space-2); }
676
709
  & .crisp-datatable-edit-picker .crisp-select-trigger { flex: 1; min-width: 0; height: 100%; min-height: 0; border-radius: 0; box-shadow: none; padding: 0; }
677
710
  & .crisp-datatable-td--picker .crisp-datatable-edit-error { padding-inline-start: var(--crisp-space-2); }
678
- /* reference picker: a leading 16px avatar per option, plus a trailing "Create X" row when the consumer supplies one (#449) -- same measured values as RecordsTable's own .crisp-recordstable-refoption*. */
711
+ /* reference picker: a leading 16px avatar per option, plus a trailing
712
+ "Create X" row when the consumer supplies one (#449) -- same measured
713
+ values as RecordsTable's own .crisp-recordstable-refoption*. */
679
714
  & .crisp-datatable-refoption { display: flex; align-items: center; gap: var(--crisp-space-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
680
715
  & .crisp-datatable-refoption-avatar { flex-shrink: 0; }
681
716
  & .crisp-datatable-refoption--create { color: var(--crisp-fg-muted); }
682
717
  & .crisp-datatable-empty { padding: var(--crisp-space-8) var(--crisp-space-3); text-align: center; color: var(--crisp-fg-muted); font-size: var(--crisp-text-lg); }
683
- /* #579: click-to-expand overlay for a truncated cell -- a read-only,
684
- full-value card, settled live as click (not Attio's usual hover-expand) and measured position: absolute, unlike this file's
685
- floating chrome (Menu/Select popovers) which portals and escapes the
686
- scroll container. Deliberately NOT the edit-error pattern above
687
- (grow the row, block-level, never clipped): a virtualized grid
688
- assumes a fixed row height for its scroll math (owned by the grid
689
- core, not this cell), so growing a row here would fight it. Anchored
690
- to the SAME column width the cell itself renders at (measured:
691
- Attio's own overlay came out only slightly wider than the triggering cell's clientWidth -- the overshoot is this padding),
692
- wrapping onto as many lines as the value needs; it CAN be clipped by
693
- `.crisp-table-scroll`'s own `overflow: auto` if it grows past the visible viewport, same as the edit-error comment above already notes for any position:absolute escape -- unmeasured against Attio for this exact case, flagged rather than guessed. */
718
+ /* #579: click-to-expand overlay for a truncated cell -- a read-only, full-value card, settled live as click (not Attio's usual
719
+ hover-expand) and measured position: absolute, unlike this file's floating chrome (Menu/Select popovers) which portals and escapes the scroll container. Deliberately NOT the edit-error pattern above (grow the row, block-level, never clipped): a virtualized grid assumes a fixed row height for its scroll math (owned by the grid core, not this cell), so growing a row here would fight it. Anchored to the SAME column width the cell itself renders at (measured: Attio's own overlay came out only slightly wider than the
720
+ triggering cell's clientWidth -- the overshoot is this padding), wrapping onto as many lines as the value needs; it CAN be clipped by `.crisp-table-scroll`'s own `overflow: auto` if it grows past the
721
+ visible viewport, same as the edit-error comment above already
722
+ notes for any position:absolute escape -- unmeasured against Attio
723
+ for this exact case, flagged rather than guessed. */
694
724
  & td[data-cell-expanded] { overflow: visible; z-index: 7; }
695
- & .crisp-datatable-cell-overlay { position: absolute; inset-inline-start: 0; top: 0; width: 100%; box-sizing: border-box; padding: var(--crisp-space-2) var(--crisp-space-3); background: var(--crisp-bg-surface); border: 1px solid var(--crisp-bg-brand-solid); border-radius: 4px; font-family: var(--crisp-font-sans); font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); white-space: normal; word-break: break-word; cursor: default; }
725
+ & .crisp-datatable-cell-overlay {
726
+ position: absolute; inset-inline-start: 0; top: 0; width: 100%; box-sizing: border-box;
727
+ padding: var(--crisp-space-2) var(--crisp-space-3); background: var(--crisp-bg-surface);
728
+ border: 1px solid var(--crisp-bg-brand-solid); border-radius: 4px;
729
+ font-family: var(--crisp-font-sans); font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium);
730
+ color: var(--crisp-fg-primary); white-space: normal; word-break: break-word; cursor: default;
731
+ }
696
732
  /* fixed layout so column widths (and resize) are exact — like RecordsTable */
697
733
  & table { table-layout: fixed; }
698
- /* read-only/computed column marker (#596) -- sits just inside the resize handle, same absolute-positioned-against-the-th approach the handle itself uses, since th has zero padding and the button/inner row fills the whole cell with no room left for a trailing sibling. */
734
+ /* read-only/computed column marker (#596) -- sits just inside the
735
+ resize handle, same absolute-positioned-against-the-th approach the
736
+ handle itself uses, since th has zero padding and the button/inner
737
+ row fills the whole cell with no room left for a trailing sibling. */
699
738
  & .crisp-datatable-readonly { position: absolute; top: 50%; inset-inline-end: 11px; transform: translateY(-50%); color: var(--crisp-fg-muted); pointer-events: none; z-index: 5; }
700
739
  /* column resize grip */
701
740
  & .crisp-datatable-resize { position: absolute; top: 0; inset-inline-end: -3px; width: 9px; height: 100%; cursor: col-resize; z-index: 6; touch-action: none; }
702
741
  & .crisp-datatable-resize::after { content: ""; position: absolute; top: 0; inset-inline-start: 3px; width: 2px; height: 100%; background: var(--crisp-bg-brand-solid); opacity: 0; transition: opacity .12s; }
703
742
  & .crisp-datatable-resize:hover::after, & .crisp-datatable-resize[data-resizing]::after { opacity: 1; }
743
+ /* crisp/#731 -- column drag-to-reorder. Measured live against Attio's own grid (the issue's own comment): the dragged header keeps full
744
+ opacity and the plain `pointer` cursor throughout (Attio draws no
745
+ ghost and no "grabbing" cursor of its own), so this adds nothing to
746
+ `[data-dragging]` itself -- the ONLY new paint is the drop-indicator
747
+ line, a 3px bar in the same measured brand blue the resize handle's own hover state (above) already uses, positioned on whichever edge of the hovered header the pointer is closer to. */
748
+ & th[data-dragging] { cursor: pointer; }
749
+ & th[data-drop-before]::before, & th[data-drop-after]::after { content: ""; position: absolute; top: 0; width: 3px; height: 100%; background: var(--crisp-bg-brand-solid); z-index: 6; pointer-events: none; }
750
+ & th[data-drop-before]::before { inset-inline-start: -1.5px; }
751
+ & th[data-drop-after]::after { inset-inline-end: -1.5px; }
704
752
  /* typed cells — entity (avatar + name), colour-coded tags, numbers, dates */
705
753
  & .crisp-datatable-entity { display: flex; align-items: center; gap: var(--crisp-space-1-5); min-width: 0; color: var(--crisp-fg-primary); font-weight: var(--crisp-weight-medium); }
706
- & .crisp-datatable-entity-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
707
- & .crisp-datatable-entity:hover .crisp-datatable-entity-name { text-decoration: underline; }
754
+ /* crisp/#601, G-050: measured LIVE (getComputedStyle on the name text, plain hover vs rest) that Attio's underline is unconditional, not a
755
+ hover reveal -- identical at rest and on hover: text-decoration-color
756
+ is rgba(0,0,0,0.09), a 9% tint, not the name's own full-contrast text colour. The previous :hover-gated, full-contrast rule here was itself unmeasured and wrong in two ways at once. */
757
+ & .crisp-datatable-entity-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--crisp-fg-primary) 9%, transparent); }
708
758
  & button.crisp-datatable-entity-name--link { margin: 0; padding: 0; border: none; background: none; font: inherit; color: inherit; letter-spacing: inherit; text-align: start; cursor: pointer; max-width: 100%; }
759
+ /* crisp/#601, G-048: two 20px ghost icons, right-aligned in the primary column, revealed on ROW hover (the issue's own title says "row
760
+ hover", and a live check confirmed hovering well past the name --
761
+ not just the icons' own hit target -- still reveals them) or keyboard focus. Measured live: border-radius 6px, icon colour rgba(0,0,0,0.55) at rest, darkening to the full text colour with a rgba(0,0,0,0.04) background on the icon's OWN hover -- both
762
+ expressed as color-mix against fgPrimary so they stay correct in
763
+ dark mode instead of a literal black that would invert. */
764
+ & .crisp-datatable-entity-actions { display: flex; align-items: center; gap: var(--crisp-space-1-5); margin-inline-start: auto; flex-shrink: 0; opacity: 0; }
765
+ & tr:hover .crisp-datatable-entity-actions, & .crisp-datatable-entity-actions:focus-within { opacity: 1; }
766
+ & .crisp-datatable-entity-action { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0; padding: 0; border: none; border-radius: var(--crisp-radius-sm); background: none; font-family: inherit; color: color-mix(in srgb, var(--crisp-fg-primary) 55%, transparent); cursor: pointer; flex-shrink: 0; }
767
+ & .crisp-datatable-entity-action:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); color: var(--crisp-fg-primary); }
709
768
  & .crisp-datatable-avatar { width: var(--crisp-size-icon); height: var(--crisp-size-icon); border-radius: var(--crisp-radius-sm); flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; line-height: 1; font-weight: var(--crisp-weight-semibold); text-transform: uppercase; color: var(--crisp-fg-on-brand); background: var(--crisp-bg-brand-solid); }
710
- & .crisp-datatable-avatar[data-tone="success"] { background: var(--crisp-bg-success); }
711
- & .crisp-datatable-avatar[data-tone="warning"] { background: var(--crisp-bg-warning); }
712
- & .crisp-datatable-avatar[data-tone="danger"] { background: var(--crisp-bg-danger); }
713
- & .crisp-datatable-avatar[data-tone="purple"] { background: var(--crisp-bg-purple); }
714
- & .crisp-datatable-avatar[data-tone="cyan"] { background: var(--crisp-bg-cyan); }
715
- & .crisp-datatable-avatar[data-tone="orange"] { background: var(--crisp-bg-orange); }
769
+ & .crisp-datatable-avatar[data-tone="success"] { background: var(--crisp-bg-success); } & .crisp-datatable-avatar[data-tone="warning"] { background: var(--crisp-bg-warning); } & .crisp-datatable-avatar[data-tone="danger"] { background: var(--crisp-bg-danger); } & .crisp-datatable-avatar[data-tone="purple"] { background: var(--crisp-bg-purple); } & .crisp-datatable-avatar[data-tone="cyan"] { background: var(--crisp-bg-cyan); } & .crisp-datatable-avatar[data-tone="orange"] { background: var(--crisp-bg-orange); }
716
770
  & .crisp-datatable-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
717
771
  & .crisp-datatable-tags { display: flex; align-items: center; gap: var(--crisp-space-1); overflow: hidden; }
718
772
  & .crisp-datatable-tag { display: inline-flex; align-items: center; height: var(--crisp-size-chip); padding: 0 var(--crisp-space-1); border-radius: var(--crisp-radius-chip); font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); white-space: nowrap; background: color-mix(in srgb, var(--crisp-fg-primary) 6%, transparent); color: color-mix(in srgb, var(--crisp-fg-primary) 82%, transparent); }
@@ -725,20 +779,19 @@
725
779
  & .crisp-datatable-tag[data-tone="orange"] { background: color-mix(in srgb, var(--crisp-bg-orange) 16%, transparent); color: color-mix(in srgb, var(--crisp-bg-orange) 82%, var(--crisp-fg-primary)); }
726
780
  & .crisp-datatable-num { font-variant-numeric: tabular-nums; }
727
781
  & .crisp-datatable-muted { color: var(--crisp-fg-muted); }
728
- /* url/email cell types (#654) -- same measured values as RecordsTable's
729
- own .crisp-recordstable-link, which this mirrors: no underline at
730
- rest, underline on hover, own-colour text rather than a browser-blue
731
- link. */
782
+ /* url/email cell types (#654) -- same measured values as RecordsTable's own .crisp-recordstable-link, which this mirrors: no underline at rest, underline on hover, own-colour text rather than a browser-blue link. */
732
783
  & .crisp-datatable-link { color: var(--crisp-fg-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
733
784
  & .crisp-datatable-link:hover { text-decoration: underline; }
734
- /* row drag-to-reorder -- a Settings > Objects > Attributes screen measures
735
- a leading 20px grip column, a 16px grip icon, and the row's own hairline doubling as the drop indicator (it tints toward the brand colour as the active drop target). The affordance + geometry are measured; the drag MECHANISM is crisp's existing house idiom -- HTML5
736
- draggable + dataTransfer, the same one column reorder already uses
737
- (RecordsTable's reorderColumn) -- not a proprietary pointer-events implementation. */
785
+ /* row drag-to-reorder -- a Settings > Objects > Attributes screen measures a leading 20px grip column, a 16px grip icon, and the row's own
786
+ hairline doubling as the drop indicator (it tints toward the brand
787
+ colour as the active drop target). The affordance + geometry are
788
+ measured; the drag MECHANISM is crisp's existing house idiom -- HTML5 draggable + dataTransfer, the same one column reorder already uses (RecordsTable's reorderColumn) -- not a proprietary
789
+ pointer-events implementation. */
738
790
  & .crisp-datatable-col-grip { width: 20px; padding: 0; text-align: center; }
739
791
  & .crisp-datatable-grip { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: 0; border: none; border-radius: 0; background: none; font-family: inherit; color: var(--crisp-fg-muted); cursor: grab; }
740
792
  & .crisp-datatable-grip:active { cursor: grabbing; }
741
793
  & tbody tr[data-drop-target] td, & tbody tr[data-drop-target] th { box-shadow: inset 0 2px 0 0 var(--crisp-bg-brand-solid); transition: box-shadow .12s; }
794
+ [dir="rtl"] & [data-rtl-flip] { transform: scaleX(-1); }
742
795
  }
743
796
 
744
797
  @media (prefers-reduced-motion: reduce) {
@@ -1806,7 +1859,7 @@
1806
1859
  & .crisp-tabletoolbar-sort-learn { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); font-size: var(--crisp-text-lg); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); text-decoration: none; }
1807
1860
  & .crisp-tabletoolbar-sort-learn svg { flex-shrink: 0; }
1808
1861
  & .crisp-tabletoolbar-sort-learn:hover { color: var(--crisp-fg-primary); }
1809
- & .crisp-tabletoolbar-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); text-align: left; cursor: pointer; }
1862
+ & .crisp-tabletoolbar-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); text-align: left; text-decoration: none; cursor: pointer; }
1810
1863
  & .crisp-tabletoolbar-menu-item:hover { background: var(--crisp-bg-raised); }
1811
1864
  & .crisp-tabletoolbar-menu-item:disabled { opacity: 0.4; cursor: default; }
1812
1865
  & .crisp-tabletoolbar-menu-item:disabled:hover { background: none; }
@@ -1814,7 +1867,25 @@
1814
1867
  & .crisp-tabletoolbar-menu-item[data-on] svg { color: var(--crisp-bg-brand-solid); }
1815
1868
  & .crisp-tabletoolbar-menu-item .crisp-tabletoolbar-menu-check { margin-left: auto; }
1816
1869
  & .crisp-tabletoolbar-menu-input { height: var(--crisp-size-row); margin: var(--crisp-space-0-5); padding: 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-md); box-shadow: inset 0 0 0 1px var(--crisp-border-subtle); background: var(--crisp-bg-surface); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); outline: none; }
1817
- & .crisp-tabletoolbar-menu-sep { height: 1px; background: var(--crisp-border-subtle); margin: var(--crisp-space-0-5) 0; }
1870
+ & .crisp-tabletoolbar-menu-sep { height: 1px; border: none; background: var(--crisp-border-subtle); margin: var(--crisp-space-0-5) 0; }
1871
+ /* #592: the Filter field picker's nested-scope header (back control +
1872
+ search, once drilled into a nestedColumns column) and a search
1873
+ result's own breadcrumb row ("Team › Twitter follower count", surfaced by the SAME query matching a nested column). menu-back reuses the established 28px icon-only control pattern this file already uses twice (sort-remove, the kebab segment) rather than an independent measurement of Attio's own back arrow. The breadcrumb
1874
+ colours ARE measured live: the parent segment muted at the same
1875
+ exact color-mix 63% sort-learn above already uses, the
1876
+ separator chevron and leaf segment both full fgPrimary (the
1877
+ generic menu-item svg rule below defaults every icon to
1878
+ fgMuted, so the separator needs its own override to read
1879
+ correctly here). */
1880
+ & .crisp-tabletoolbar-menu-nesthead { display: flex; align-items: center; gap: var(--crisp-space-1); margin: var(--crisp-space-0-5); }
1881
+ & .crisp-tabletoolbar-menu-nesthead .crisp-tabletoolbar-menu-input { flex: 1; margin: 0; }
1882
+ & .crisp-tabletoolbar-menu-back { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; padding: 0; border: none; border-radius: var(--crisp-radius-md); background: none; color: var(--crisp-fg-muted); cursor: pointer; }
1883
+ & .crisp-tabletoolbar-menu-back:hover { background: var(--crisp-bg-raised); color: var(--crisp-fg-primary); }
1884
+ & .crisp-tabletoolbar-menu-item--expand { justify-content: space-between; }
1885
+ & .crisp-tabletoolbar-menu-item-path { display: inline-flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
1886
+ & .crisp-tabletoolbar-menu-item-path-parent { flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; max-width: 100px; color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
1887
+ & .crisp-tabletoolbar-menu-item-path-sep { flex-shrink: 0; color: var(--crisp-fg-primary); }
1888
+ & .crisp-tabletoolbar-menu-item-path > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
1818
1889
  & .crisp-tabletoolbar-menu--up { top: auto; bottom: calc(100% + var(--crisp-space-1)); transform-origin: bottom; }
1819
1890
  & .crisp-tabletoolbar-menu--right { left: auto; right: 0; }
1820
1891
  & .crisp-tabletoolbar-menu--fixed { position: fixed; top: auto; left: auto; z-index: 40; }
@@ -1835,21 +1906,44 @@
1835
1906
  & .crisp-tabletoolbar-count { font-size: var(--crisp-text-md); color: var(--crisp-fg-muted); }
1836
1907
  & .crisp-tabletoolbar-new { display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-row); padding: 0 var(--crisp-space-2-5); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-brand-solid); color: var(--crisp-fg-on-brand); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); cursor: pointer; transition: background-color .12s; }
1837
1908
  & .crisp-tabletoolbar-new:hover { background: var(--crisp-bg-brand-solid-pressed); }
1909
+
1838
1910
  & .crisp-tabletoolbar-fcond { display: inline-flex; align-items: center; height: var(--crisp-size-row); font-size: var(--crisp-text-md); color: var(--crisp-fg-primary); white-space: nowrap; }
1839
1911
  & .crisp-tabletoolbar-fcond-seg { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: 100%; margin: 0; padding: 0 var(--crisp-space-2); border: none; background: var(--crisp-bg-surface-muted); box-shadow: inset 0 0 0 1px var(--crisp-border-divider); font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; }
1840
1912
  & .crisp-tabletoolbar-fcond-seg svg { flex-shrink: 0; }
1841
- & .crisp-tabletoolbar-fcond[data-complete] .crisp-tabletoolbar-fcond-seg--field, & .crisp-tabletoolbar-fcond[data-complete] .crisp-tabletoolbar-fcond-seg--val { background: var(--crisp-bg-surface); }
1842
- & .crisp-tabletoolbar-fcond-seg--field { border-radius: var(--crisp-radius-md) 0 0 var(--crisp-radius-md); font-weight: var(--crisp-weight-medium); }
1913
+ & .crisp-tabletoolbar-fcond[data-complete] .crisp-tabletoolbar-fcond-seg--field,
1914
+ & .crisp-tabletoolbar-fcond[data-complete] .crisp-tabletoolbar-fcond-seg--val { background: var(--crisp-bg-surface); }
1915
+ & .crisp-tabletoolbar-fcond-seg--field { border-radius: var(--crisp-radius-md) 0 0 var(--crisp-radius-md); font-weight: var(--crisp-weight-medium); max-width: 200px; }
1843
1916
  & .crisp-tabletoolbar-fcond-seg--field svg { color: var(--crisp-fg-muted); }
1917
+ /* #592: a nested pick's field segment ("Team › Twitter follower
1918
+ count") — measured live: BOTH path segments the same colour (chip context only; the picker's own menu rows keep the parent muted, see
1919
+ tabletoolbar.chrome.ts), each independently truncated. Attio's own layout gives the leaf segment priority (it stays fully readable longer, the parent truncates first) via a two-part min-content measurement this reproduces qualitatively with a flex-shrink differential rather than byte-for-byte (the exact px split Attio computes is content-length-dependent, not a fixed value) — not independently re-verified at other path-segment lengths. */
1920
+ & .crisp-tabletoolbar-fcond-path { display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 178px; }
1921
+ & .crisp-tabletoolbar-fcond-path-seg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }
1922
+ & .crisp-tabletoolbar-fcond-path-seg:first-child { flex: 0 1 auto; }
1923
+ & .crisp-tabletoolbar-fcond-path-sep { flex-shrink: 0; color: inherit; }
1844
1924
  & .crisp-tabletoolbar-fcond-seg--op { background: var(--crisp-bg-surface); color: var(--crisp-fg-muted); }
1845
1925
  & .crisp-tabletoolbar-fcond-seg--val { font-weight: var(--crisp-weight-medium); max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
1846
1926
  & .crisp-tabletoolbar-fcond-seg--kebab { background: var(--crisp-bg-surface); justify-content: center; width: 28px; padding: 0; border-radius: 0 var(--crisp-radius-md) var(--crisp-radius-md) 0; color: var(--crisp-fg-muted); }
1847
1927
  & .crisp-tabletoolbar-fcond-seg--kebab:hover { color: var(--crisp-fg-primary); }
1928
+ /* #754: the sort row's own field trigger, replacing a plain Select
1929
+ with the same nested-drill-down popover Filter's field picker already has — reuses Select's own already-measured trigger chrome
1930
+ verbatim (its class is scoped under Select's own root class, so it can't be reused as a bare class name outside an actual Select tree;
1931
+ these values are copied, not re-measured). */
1932
+ & .crisp-tabletoolbar-sort-field-picker { position: relative; display: inline-flex; flex: 1; min-width: 0; }
1933
+ & .crisp-tabletoolbar-sort-field-trigger { box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); height: var(--crisp-size-menuRow); width: 100%; min-width: 0; margin: 0; padding: 0 var(--crisp-space-1-5) 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-md); background: transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--crisp-fg-primary) 7%, transparent); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); cursor: pointer; transition: background-color .12s ease, box-shadow .12s ease; }
1934
+ & .crisp-tabletoolbar-sort-field-trigger:hover { background: var(--crisp-bg-raised); }
1935
+ & .crisp-tabletoolbar-sort-field-trigger[aria-expanded="true"],
1936
+ & .crisp-tabletoolbar-sort-field-trigger:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--crisp-bg-brand-solid); background: var(--crisp-bg-surface); }
1937
+ & .crisp-tabletoolbar-sort-field-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
1938
+ & .crisp-tabletoolbar-sort-field-picker .crisp-tabletoolbar-menu { min-width: 200px; }
1848
1939
  & .crisp-tabletoolbar-menu--val { min-width: 134px; }
1849
1940
  & .crisp-tabletoolbar-datepop { width: 300px; }
1850
1941
  & .crisp-tabletoolbar-datepop-presets { display: flex; flex-wrap: wrap; gap: var(--crisp-space-1); margin-top: var(--crisp-space-2); padding: 0 var(--crisp-space-1); }
1851
1942
  & .crisp-tabletoolbar-datepop-preset { height: var(--crisp-size-chip); padding: 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-chip); background: var(--crisp-bg-raised); color: var(--crisp-fg-primary); font-family: inherit; font-size: var(--crisp-text-sm); cursor: pointer; }
1852
1943
  & .crisp-tabletoolbar-datepop-preset:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 8%, transparent); }
1944
+
1945
+ & .crisp-tabletoolbar-tool--raised { border: none; background: var(--crisp-bg-surface-muted); box-shadow: inset 0 0 0 1px var(--crisp-ring-neutral), 0 0 2px rgba(28,40,64,0.18), 0 1px 3px rgba(0,0,0,0.04); font-family: inherit; cursor: pointer; }
1946
+ [dir="rtl"] & [data-rtl-flip] { transform: scaleX(-1); }
1853
1947
  }
1854
1948
 
1855
1949
  @media (prefers-reduced-motion: reduce) {
@@ -1892,7 +1986,7 @@
1892
1986
  }
1893
1987
 
1894
1988
  .crisp-text {
1895
- display: inline;
1989
+ vertical-align: baseline;
1896
1990
  }
1897
1991
  .crisp-text--tone_default {
1898
1992
  color: var(--crisp-fg-primary);
@@ -2103,8 +2197,25 @@
2103
2197
  }
2104
2198
 
2105
2199
  .crisp-board {
2106
- display: flex; gap: var(--crisp-space-2); height: 100%; box-sizing: border-box; padding: var(--crisp-space-3); overflow-x: auto; align-items: flex-start; font-family: var(--crisp-font-sans);
2107
- & .crisp-board-col { display: flex; flex-direction: column; width: 268px; flex-shrink: 0; max-height: 100%; box-sizing: border-box; }
2200
+ display: flex; flex-direction: column; gap: var(--crisp-space-2); height: 100%; box-sizing: border-box; font-family: var(--crisp-font-sans); /* #718: the density toolbar's own row -- everything that used to be on
2201
+ the root (padding/overflow/the columns themselves) moves to
2202
+ .crisp-board-row below so this can sit above it, unscrolled. */
2203
+ & .crisp-board-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: var(--crisp-space-2); padding: 0 var(--crisp-space-3); flex-shrink: 0; }
2204
+ /* Measured live (Deals pipeline): a 54×28px group, 24×24px buttons,
2205
+ 2px padding/gap -- an 8px gap between the two groups comes from the
2206
+ toolbar's own `gap` above. */
2207
+ & .crisp-board-density { display: flex; align-items: center; gap: 2px; padding: 2px; border-radius: 10px; background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); }
2208
+ & .crisp-board-density button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: none; border-radius: 8px; background: none; color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); font-family: inherit; cursor: pointer; }
2209
+ & .crisp-board-density button[data-state="on"] { background: var(--crisp-bg-surface); color: var(--crisp-fg-primary); }
2210
+ & .crisp-board-row { display: flex; gap: var(--crisp-space-2); flex: 1; min-height: 0; box-sizing: border-box; padding: var(--crisp-space-3); overflow-x: auto; align-items: flex-start; }
2211
+ & .crisp-board-col { display: flex; flex-direction: column; width: 268px; flex-shrink: 0; max-height: 100%; box-sizing: border-box; transition: width 0.15s; }
2212
+ /* #718: a collapsed column is a 52px vertical rail -- header only (dot + count stacked above a vertical-rl title), body/footer hidden entirely. Measured live: 52px width, 8px 0 padding on the header, 14px/600 title text. */
2213
+ & .crisp-board-col[data-density="collapse"] { width: 52px; }
2214
+ & .crisp-board-col[data-density="collapse"] .crisp-board-col-header { flex-direction: column; align-items: center; height: auto; padding: var(--crisp-space-2) 0; gap: var(--crisp-space-1); }
2215
+ /* Measured stacking order (top to bottom): dot, count, THEN the vertical title -- reordered visually via `order`, not by changing the JSX/DOM order, which stays dot/title/count (reading order, unaffected by density). */
2216
+ & .crisp-board-col[data-density="collapse"] .crisp-board-col-title { order: 1; writing-mode: vertical-rl; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-semibold); }
2217
+ & .crisp-board-col[data-density="collapse"] .crisp-board-col-count { order: 0; }
2218
+ & .crisp-board-col[data-density="collapse"] .crisp-board-col-body, & .crisp-board-col[data-density="collapse"] .crisp-board-col-footer { display: none; }
2108
2219
  & .crisp-board-col-header { display: flex; align-items: center; gap: var(--crisp-space-2); height: 36px; padding: 0 var(--crisp-space-1); flex-shrink: 0; }
2109
2220
  & .crisp-board-col-dot { width: 12px; height: 12px; border-radius: var(--crisp-radius-full); flex-shrink: 0; }
2110
2221
  & .crisp-board-col-title { font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-semibold); color: var(--crisp-fg-primary); }
@@ -2119,23 +2230,30 @@
2119
2230
  & .crisp-board-newcard { display: flex; align-items: center; justify-content: center; gap: var(--crisp-space-1-5); height: 32px; flex-shrink: 0; border: none; border-radius: var(--crisp-radius-md); background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); color: var(--crisp-fg-muted); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); cursor: pointer; }
2120
2231
  & .crisp-board-newcard:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 7%, transparent); color: var(--crisp-fg-primary); }
2121
2232
  & .crisp-board-card { display: flex; flex-direction: column; gap: var(--crisp-space-2); box-sizing: border-box; padding: var(--crisp-space-2-5) var(--crisp-space-3); border-radius: var(--crisp-radius-xl); background: var(--crisp-bg-surface); box-shadow: inset 0 0 0 1px var(--crisp-border-subtle); cursor: grab; touch-action: none; }
2233
+ /* #718: a collapsed card is a single 40px row -- measured live and independent of `c.size.tableRow`/`tableHeader` (36/40px) even though it happens to match the latter; a plain literal, not a cross-reference to a token measured for a different surface. `renderCard`'s own second argument is what actually decides what a
2234
+ collapsed card SHOWS (Board never sees inside its opaque output);
2235
+ this only supplies the row-shaped box that content sits in. */
2236
+ & .crisp-board-card[data-density="collapse"] { flex-direction: row; align-items: center; height: 40px; padding: 0 var(--crisp-space-3); }
2122
2237
  & .crisp-board-card:active { cursor: grabbing; }
2123
2238
  & .crisp-board-card[data-dragging] { opacity: 0.4; }
2124
2239
  & .crisp-board-card:focus { outline: none; }
2125
2240
  & .crisp-board-card:focus-visible { outline: 2px solid var(--crisp-bg-brand-solid); outline-offset: 1px; }
2126
- /* #674: the pointer-events drag's own drag image -- the same card
2127
- surface above, just pinned to the pointer instead of the flex flow.
2128
- No shadow lift or scale: neither was measured against Attio, and this
2129
- is the same card, momentarily somewhere else, not a new look. */
2241
+ /* #674: the pointer-events drag's own drag image -- the same card surface above, just pinned to the pointer instead of the flex flow. No shadow lift or scale: neither was measured against Attio, and this is the same card, momentarily somewhere else, not a new look. */
2130
2242
  & .crisp-board-ghost { position: fixed; z-index: 1; pointer-events: none; cursor: grabbing; }
2131
- /* #604: a per-column calc footer, mirroring the table's own (measured live, Deals pipeline). Sits below the scrollable card body, not inside it or pinned to it -- Attio's own is position: static, not
2132
- sticky, so it's a plain flex-shrink:0 sibling here too. */
2243
+ /* #604: a per-column calc footer, mirroring the table's own (measured
2244
+ live, Deals pipeline). Sits below the scrollable card body, not
2245
+ inside it or pinned to it -- Attio's own is position: static, not sticky, so it's a plain flex-shrink:0 sibling here too. */
2133
2246
  & .crisp-board-col-footer { flex-shrink: 0; padding: var(--crisp-space-1) 0; }
2134
2247
  & .crisp-board-col-calc { display: flex; align-items: center; justify-content: center; gap: var(--crisp-space-1); width: 100%; height: 28px; padding: var(--crisp-space-1) var(--crisp-space-2); margin: 0; border: none; border-radius: var(--crisp-radius-md); background: none; font-family: inherit; font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-medium); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); cursor: pointer; }
2135
2248
  & .crisp-board-col-calc:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); }
2136
2249
  & .crisp-board-col-calc[data-empty] { opacity: 0.7; }
2137
2250
  & .crisp-board-col-calc-label { text-transform: capitalize; }
2138
2251
  & .crisp-board-col-calc-value { color: var(--crisp-fg-primary); font-variant-numeric: tabular-nums; }
2252
+ /* #718: "Add stage" -- measured live: 52×52px, transparent, a 1px
2253
+ dashed border (rgb(230,231,234), exactly `borderDropzone`/`line150`
2254
+ -- the same dashed-border colour ImportDialog's own dropzone already uses, not borderSubtle/line100, a close but different value), radius.xl (16px), a centered 16px "+". */
2255
+ & .crisp-board-addstage { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; flex-shrink: 0; border: 1px dashed var(--crisp-border-dropzone); border-radius: var(--crisp-radius-xl); background: none; color: var(--crisp-fg-primary); font-family: inherit; cursor: pointer; }
2256
+ & .crisp-board-addstage:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); }
2139
2257
  /* announced, never drawn */
2140
2258
  & .crisp-board-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
2141
2259
  }
@@ -2203,11 +2321,21 @@
2203
2321
 
2204
2322
  /* Row badge (CommentCountBadge) -- lives in its own class family so the
2205
2323
  grid lanes can drop it into a cell without pulling in the panel's
2206
- CSS. Persistent state: a 6px grey dot. Hover state: a 12px comment
2207
- icon + 12px count text, both at 55% ink, replacing the dot. */
2208
- .crisp-comments-badge { box-sizing: border-box; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: inline-flex; align-items: center; gap: var(--crisp-space-1); border: none; background: none; padding: 0; margin: 0; cursor: pointer; color: color-mix(in srgb, var(--crisp-fg-primary) 55%, transparent); }
2324
+ CSS. Re-measured live on a real commented row (crisp/#601
2325
+ supersession, right-aligned in a DataTable primary column): a 6px
2326
+ grey dot at rest (unchanged, already matched); on hover, the trigger
2327
+ button is auto-width with a 12px icon + 12px/500 count text,
2328
+ "padding: 2px 6px 2px 4px", radius 6px -- distinct from the preview
2329
+ button beside it, a fixed 20px square with a 16px icon, same radius.
2330
+ Both share the 55%-ink idle colour and darken on their OWN hover
2331
+ (color-mix 4%, the same formula DataTable's own #601 icons use). */
2332
+ .crisp-comments-badge { box-sizing: border-box; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); }
2209
2333
  .crisp-comments-badge-dot { box-sizing: border-box; width: 6px; height: 6px; border-radius: var(--crisp-radius-full); background: color-mix(in srgb, var(--crisp-fg-primary) 38%, transparent); }
2210
- .crisp-comments-badge-count { font-size: 12px; line-height: 16px; }
2334
+ .crisp-comments-badge-trigger { box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: 20px; margin: 0; padding: 2px var(--crisp-space-1-5) 2px var(--crisp-space-1); border: none; border-radius: var(--crisp-radius-sm); background: none; font-family: inherit; color: color-mix(in srgb, var(--crisp-fg-primary) 55%, transparent); cursor: pointer; }
2335
+ .crisp-comments-badge-trigger:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); color: var(--crisp-fg-primary); }
2336
+ .crisp-comments-badge-preview { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0; padding: 0; border: none; border-radius: var(--crisp-radius-sm); background: none; font-family: inherit; color: color-mix(in srgb, var(--crisp-fg-primary) 55%, transparent); cursor: pointer; flex-shrink: 0; }
2337
+ .crisp-comments-badge-preview:hover { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, transparent); color: var(--crisp-fg-primary); }
2338
+ .crisp-comments-badge-count { font-size: 12px; line-height: 16px; font-weight: var(--crisp-weight-medium); }
2211
2339
  [dir="rtl"] .crisp-comments-badge [data-rtl-flip] { transform: scaleX(-1); }
2212
2340
 
2213
2341
  .crisp-comments {
@@ -2870,7 +2998,7 @@
2870
2998
  & .crisp-recordstable-sort-learn { display: inline-flex; align-items: center; gap: var(--crisp-space-1-5); font-size: var(--crisp-text-lg); color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); text-decoration: none; }
2871
2999
  & .crisp-recordstable-sort-learn svg { flex-shrink: 0; }
2872
3000
  & .crisp-recordstable-sort-learn:hover { color: var(--crisp-fg-primary); }
2873
- & .crisp-recordstable-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); text-align: left; cursor: pointer; }
3001
+ & .crisp-recordstable-menu-item { display: flex; align-items: center; gap: var(--crisp-space-1-5); width: 100%; height: var(--crisp-size-menuRow); margin: 0; padding: 0 var(--crisp-space-2); border: none; background: none; border-radius: var(--crisp-radius-md); font-family: inherit; font-size: var(--crisp-text-lg); line-height: 20px; font-weight: var(--crisp-weight-medium); color: var(--crisp-fg-primary); text-align: left; text-decoration: none; cursor: pointer; }
2874
3002
  & .crisp-recordstable-menu-item:hover { background: var(--crisp-bg-raised); }
2875
3003
  & .crisp-recordstable-menu-item:disabled { opacity: 0.4; cursor: default; }
2876
3004
  & .crisp-recordstable-menu-item:disabled:hover { background: none; }
@@ -2878,7 +3006,25 @@
2878
3006
  & .crisp-recordstable-menu-item[data-on] svg { color: var(--crisp-bg-brand-solid); }
2879
3007
  & .crisp-recordstable-menu-item .crisp-recordstable-menu-check { margin-left: auto; }
2880
3008
  & .crisp-recordstable-menu-input { height: var(--crisp-size-row); margin: var(--crisp-space-0-5); padding: 0 var(--crisp-space-2); border: none; border-radius: var(--crisp-radius-md); box-shadow: inset 0 0 0 1px var(--crisp-border-subtle); background: var(--crisp-bg-surface); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); outline: none; }
2881
- & .crisp-recordstable-menu-sep { height: 1px; background: var(--crisp-border-subtle); margin: var(--crisp-space-0-5) 0; }
3009
+ & .crisp-recordstable-menu-sep { height: 1px; border: none; background: var(--crisp-border-subtle); margin: var(--crisp-space-0-5) 0; }
3010
+ /* #592: the Filter field picker's nested-scope header (back control +
3011
+ search, once drilled into a nestedColumns column) and a search
3012
+ result's own breadcrumb row ("Team › Twitter follower count", surfaced by the SAME query matching a nested column). menu-back reuses the established 28px icon-only control pattern this file already uses twice (sort-remove, the kebab segment) rather than an independent measurement of Attio's own back arrow. The breadcrumb
3013
+ colours ARE measured live: the parent segment muted at the same
3014
+ exact color-mix 63% sort-learn above already uses, the
3015
+ separator chevron and leaf segment both full fgPrimary (the
3016
+ generic menu-item svg rule below defaults every icon to
3017
+ fgMuted, so the separator needs its own override to read
3018
+ correctly here). */
3019
+ & .crisp-recordstable-menu-nesthead { display: flex; align-items: center; gap: var(--crisp-space-1); margin: var(--crisp-space-0-5); }
3020
+ & .crisp-recordstable-menu-nesthead .crisp-recordstable-menu-input { flex: 1; margin: 0; }
3021
+ & .crisp-recordstable-menu-back { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; padding: 0; border: none; border-radius: var(--crisp-radius-md); background: none; color: var(--crisp-fg-muted); cursor: pointer; }
3022
+ & .crisp-recordstable-menu-back:hover { background: var(--crisp-bg-raised); color: var(--crisp-fg-primary); }
3023
+ & .crisp-recordstable-menu-item--expand { justify-content: space-between; }
3024
+ & .crisp-recordstable-menu-item-path { display: inline-flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; }
3025
+ & .crisp-recordstable-menu-item-path-parent { flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; max-width: 100px; color: color-mix(in srgb, var(--crisp-fg-primary) 63%, transparent); }
3026
+ & .crisp-recordstable-menu-item-path-sep { flex-shrink: 0; color: var(--crisp-fg-primary); }
3027
+ & .crisp-recordstable-menu-item-path > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
2882
3028
  & .crisp-recordstable-menu--up { top: auto; bottom: calc(100% + var(--crisp-space-1)); transform-origin: bottom; }
2883
3029
  & .crisp-recordstable-menu--right { left: auto; right: 0; }
2884
3030
  & .crisp-recordstable-menu--fixed { position: fixed; top: auto; left: auto; z-index: 40; }
@@ -2899,6 +3045,7 @@
2899
3045
  & .crisp-recordstable-count { font-size: var(--crisp-text-md); color: var(--crisp-fg-muted); }
2900
3046
  & .crisp-recordstable-new { display: inline-flex; align-items: center; gap: var(--crisp-space-1); height: var(--crisp-size-row); padding: 0 var(--crisp-space-2-5); border: none; border-radius: var(--crisp-radius-md); background: var(--crisp-bg-brand-solid); color: var(--crisp-fg-on-brand); font-family: inherit; font-size: var(--crisp-text-md); font-weight: var(--crisp-weight-medium); cursor: pointer; transition: background-color .12s; }
2901
3047
  & .crisp-recordstable-new:hover { background: var(--crisp-bg-brand-solid-pressed); }
3048
+
2902
3049
  /* scroll frame + table */
2903
3050
  & .crisp-recordstable-scroll { flex: 1; min-height: 0; overflow: auto; background: var(--crisp-bg-surface); border-top: 1px solid var(--crisp-border-subtle); scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--crisp-fg-primary) 22%, transparent) transparent; }
2904
3051
  & .crisp-recordstable-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
@@ -2916,16 +3063,20 @@
2916
3063
  & .crisp-recordstable-sort { flex-shrink: 0; opacity: 0.4; transition: opacity .12s; color: color-mix(in srgb, var(--crisp-fg-primary) 45%, transparent); }
2917
3064
  & .crisp-recordstable-th:hover .crisp-recordstable-sort, & .crisp-recordstable-th[data-sorted] .crisp-recordstable-sort { opacity: 1; }
2918
3065
  & .crisp-recordstable-th[data-sorted="desc"] .crisp-recordstable-sort svg { transform: rotate(180deg); }
3066
+
2919
3067
  /* column resize handle */
2920
3068
  & .crisp-recordstable-resize { position: absolute; top: 0; inset-inline-end: -3px; width: 9px; height: 100%; cursor: col-resize; z-index: 6; touch-action: none; }
2921
3069
  & .crisp-recordstable-resize::after { content: ""; position: absolute; top: 0; inset-inline-start: 3px; width: 2px; height: 100%; background: var(--crisp-bg-brand-solid); opacity: 0; transition: opacity .12s; }
2922
3070
  & .crisp-recordstable-resize:hover::after, & .crisp-recordstable-resize[data-resizing]::after { opacity: 1; }
3071
+
2923
3072
  /* add-column header */
2924
3073
  & .crisp-recordstable-addcol { min-width: 44px; }
2925
3074
  & .crisp-recordstable-addcol button { display: flex; align-items: center; justify-content: center; width: 44px; height: 100%; border: none; background: none; color: var(--crisp-fg-muted); cursor: pointer; }
2926
3075
  & .crisp-recordstable-addcol button:hover { background: var(--crisp-bg-raised); color: var(--crisp-fg-primary); }
2927
- /* cells */ /* font-weight is explicit because the first cell of each row is a th[scope=row] — the record's name is what the row IS — and a th
2928
- defaults to bold. Measured before the change and unchanged after: 400. */
3076
+
3077
+ /* cells */
3078
+ /* font-weight is explicit because the first cell of each row is a
3079
+ th[scope=row] — the record's name is what the row IS — and a th defaults to bold. Measured before the change and unchanged after: 400. */
2929
3080
  & .crisp-recordstable-td { font-size: var(--crisp-text-lg); font-weight: var(--crisp-weight-regular); color: var(--crisp-fg-primary); background: var(--crisp-bg-surface); cursor: default; }
2930
3081
  & .crisp-recordstable-td--editable { cursor: text; }
2931
3082
  /* keyboard/click cell selection (spreadsheet-style) */
@@ -2941,10 +3092,8 @@
2941
3092
  & .crisp-recordstable-td--picker .crisp-multiselect-chips .crisp-recordstable-tag { flex-shrink: 0; max-width: none; }
2942
3093
  & .crisp-recordstable-td--picker .crisp-multiselect-chevron { display: none; }
2943
3094
  & .crisp-recordstable-td--picker .crisp-multiselect-placeholder { color: var(--crisp-fg-muted); }
2944
- /* reference picker: a leading 16px avatar per option, plus a trailing
2945
- "Create X" row when the consumer supplies one (#449) -- measured live
2946
- against Attio's own picker (16px circular avatar, 16px plain icon for the create row, both sitting in the option's existing 8px gap, no new
2947
- gap value invented). */
3095
+ /* reference picker: a leading 16px avatar per option, plus a trailing "Create X" row when the consumer supplies one (#449) -- measured live against Attio's own picker (16px circular avatar, 16px plain icon for
3096
+ the create row, both sitting in the option's existing 8px gap, no new gap value invented). */
2948
3097
  & .crisp-recordstable-refoption { display: flex; align-items: center; gap: var(--crisp-space-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
2949
3098
  & .crisp-recordstable-refoption-avatar { flex-shrink: 0; }
2950
3099
  & .crisp-recordstable-refoption--create { color: var(--crisp-fg-muted); }
@@ -2972,46 +3121,33 @@
2972
3121
  & tbody tr:hover .crisp-recordstable-open { opacity: 1; }
2973
3122
  & .crisp-recordstable-link { color: var(--crisp-fg-primary); text-decoration: none; overflow: hidden; text-overflow: ellipsis; }
2974
3123
  & .crisp-recordstable-link:hover { text-decoration: underline; }
2975
-
2976
3124
  /* inline edit input */
2977
3125
  & .crisp-recordstable-edit { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0 var(--crisp-space-2); border: none; outline: 2px solid var(--crisp-bg-brand-solid); outline-offset: -2px; border-radius: var(--crisp-radius-sm); background: var(--crisp-bg-surface); font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); z-index: 5; }
2978
3126
  & .crisp-recordstable-edit--num { text-align: end; font-variant-numeric: tabular-nums; }
2979
-
2980
3127
  /* selection / hover / sticky */
2981
3128
  & .crisp-recordstable-col-check { width: 40px; min-width: 40px; padding: 0; }
2982
3129
  & .crisp-recordstable-check-inner { display: flex; align-items: center; justify-content: center; height: 100%; }
2983
3130
  & .crisp-recordstable-col-check, & .crisp-recordstable-col-entity { position: sticky; z-index: 3; background: var(--crisp-bg-surface); }
2984
- /* The sticky pin is a LOGICAL offset: with physical `left` these columns
2985
- were not pinned at all under RTL -- scrolled, they left the viewport
2986
- entirely (measured: viewport 13..773, check column at x=1333). Nothing in
2987
- JS measures these, so converting them is safe; the two properties below
2988
- that have no logical form get an explicit RTL rule rather than being
2989
- left to point the wrong way. */
3131
+ /* The sticky pin is a LOGICAL offset: with physical `left` these columns were not pinned at all under RTL -- scrolled, they left the viewport entirely (measured: viewport 13..773, check column at x=1333). Nothing in JS measures these, so converting them is safe; the two properties below that have no logical form get an explicit RTL rule rather than being left to point the wrong way. */
2990
3132
  & .crisp-recordstable-col-check { inset-inline-start: 0; }
2991
3133
  & .crisp-recordstable-col-entity { inset-inline-start: 40px; clip-path: inset(0 -38px 0 0); transition: box-shadow .2s ease; }
2992
3134
  [dir="rtl"] & .crisp-recordstable-col-entity { clip-path: inset(0 0 0 -38px); }
2993
3135
  & thead .crisp-recordstable-col-check, & thead .crisp-recordstable-col-entity { z-index: 4; }
2994
3136
  /* soft shadow on the sticky column edge once the grid is scrolled horizontally */
2995
3137
  & .crisp-recordstable-scroll[data-scrolled] .crisp-recordstable-col-entity { box-shadow: 6px 0 16px 4px rgba(0,0,0,0.12); }
2996
- /* box-shadow has no logical form either: the bleed follows the scrolled
2997
- content, which is the opposite side under RTL. */
3138
+ /* box-shadow has no logical form either: the bleed follows the scrolled content, which is the opposite side under RTL. */
2998
3139
  [dir="rtl"] & .crisp-recordstable-scroll[data-scrolled] .crisp-recordstable-col-entity { box-shadow: -6px 0 16px 4px rgba(0,0,0,0.12); }
2999
- /* AI-enriched values carry a purple wash. Measured live:
3000
- a full-bleed overlay at #9b69ff 4% (== bgPurple), composited OVER
3001
- whatever row-state background the cell already has, which is why it
3002
- is an ::after and not a background. */
3140
+ /* AI-enriched values carry a purple wash. Measured live: a full-bleed overlay at #9b69ff 4% (== bgPurple), composited OVER whatever row-state background the cell already has, which is why it is an ::after and not a background. */
3003
3141
  & .crisp-recordstable-td[data-enriched]::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: color-mix(in srgb, var(--crisp-bg-purple) 4%, transparent); }
3004
3142
  & tbody tr:hover .crisp-recordstable-td { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, var(--crisp-bg-surface)); }
3005
3143
  & tbody tr[data-selected] .crisp-recordstable-td { background: color-mix(in srgb, var(--crisp-bg-brand-solid) 10%, var(--crisp-bg-surface)); }
3006
3144
  & tbody tr[data-selected]:hover .crisp-recordstable-td { background: color-mix(in srgb, var(--crisp-fg-primary) 4%, color-mix(in srgb, var(--crisp-bg-brand-solid) 10%, var(--crisp-bg-surface))); }
3007
3145
  & .crisp-recordstable-th:last-child, & .crisp-recordstable-td:last-child { border-inline-end: none; }
3008
-
3009
3146
  /* add-row footer */
3010
3147
  & .crisp-recordstable-addrow { display: flex; align-items: center; gap: var(--crisp-space-2); width: 100%; height: var(--crisp-size-tableRow); padding: 0 var(--crisp-space-2); border: none; border-top: 1px solid var(--crisp-border-subtle); background: var(--crisp-bg-surface); color: var(--crisp-fg-muted); font-family: inherit; font-size: var(--crisp-text-lg); cursor: pointer; }
3011
3148
  & .crisp-recordstable-addrow:hover { background: var(--crisp-bg-raised); color: var(--crisp-fg-primary); }
3012
3149
  /* zero-row empty state — centred in the body region (headers + summary stay) */
3013
3150
  & .crisp-recordstable-empty { display: flex; align-items: center; justify-content: center; min-height: 320px; padding: var(--crisp-space-8) var(--crisp-space-4); }
3014
-
3015
3151
  /* summary footer — per-column aggregation, sticky to the bottom */
3016
3152
  & .crisp-recordstable-sum { position: sticky; bottom: 0; z-index: 2; height: var(--crisp-size-tableRow); padding: 0; border-top: 1px solid var(--crisp-border-subtle); border-bottom: 1px solid var(--crisp-border-subtle); border-inline-end: 1px solid var(--crisp-border-subtle); background: var(--crisp-bg-surface); }
3017
3153
  & tfoot .crisp-recordstable-col-check, & tfoot .crisp-recordstable-col-entity { position: sticky; bottom: 0; z-index: 3; }
@@ -3024,18 +3160,12 @@
3024
3160
  & .crisp-recordstable-pin { flex-shrink: 0; margin-inline-start: var(--crisp-space-1); color: var(--crisp-bg-warning); fill: color-mix(in srgb, var(--crisp-bg-warning) 35%, transparent); }
3025
3161
  & .crisp-recordstable-sum-btn[data-empty] { opacity: 0; justify-content: flex-start; }
3026
3162
  & .crisp-recordstable-sum-btn[data-empty]:hover { opacity: 1; }
3027
-
3028
3163
  /* bulk action bar lives in its own component now — see components/bulkbar */
3029
3164
  & .crisp-recordstable-bulk-sep { width: 1px; height: 20px; margin: 0 var(--crisp-space-0-5); background: var(--crisp-border-subtle); }
3030
3165
  & .crisp-recordstable-bulk-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: none; border-radius: var(--crisp-radius-md); background: transparent; color: var(--crisp-fg-muted); cursor: pointer; }
3031
3166
  & .crisp-recordstable-bulk-close:hover { background: var(--crisp-bg-raised); color: var(--crisp-fg-primary); }
3032
-
3033
3167
  /* announced, never drawn */
3034
- & .crisp-recordstable-live {
3035
- position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
3036
- overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
3037
- }
3038
-
3168
+ & .crisp-recordstable-live { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
3039
3169
  [dir="rtl"] & [data-rtl-flip] { transform: scaleX(-1); }
3040
3170
  }
3041
3171
 
@@ -3131,6 +3261,21 @@
3131
3261
  .crisp-savedviews-panel[data-up] { transform-origin: bottom left; }
3132
3262
  .crisp-savedviews-panel { @starting-style { opacity: 0; transform: scale(0.97) translateY(-1px); } }
3133
3263
 
3264
+ /* #618 (P-007): the panel's own "Search views..." box — measured live:
3265
+ 32px tall, 6px/8px padding, NO border/background/leading icon of its
3266
+ own (unlike Select's own bordered searchable-input pill), 14px text.
3267
+ A hairline divider (borderSubtle, 1px, 3px top margin) separates it
3268
+ from the view list, matching the divider Attio's own kebab menu uses
3269
+ between its action items and the "Created by" footer below. */
3270
+ .crisp-savedviews-search {
3271
+ box-sizing: border-box; display: block; width: 100%; height: 32px; flex-shrink: 0;
3272
+ margin: 0; padding: var(--crisp-space-1-5) var(--crisp-space-2); border: none; background: none;
3273
+ font-family: inherit; font-size: var(--crisp-text-lg); color: var(--crisp-fg-primary); outline: none;
3274
+ }
3275
+ .crisp-savedviews-search::placeholder { color: var(--crisp-fg-muted); }
3276
+ .crisp-savedviews-search-sep { height: 1px; flex-shrink: 0; margin: 3px 0 0; background: var(--crisp-border-subtle); }
3277
+ .crisp-savedviews-empty { padding: var(--crisp-space-1-5) var(--crisp-space-2); font-size: var(--crisp-text-lg); color: var(--crisp-fg-muted); }
3278
+
3134
3279
  .crisp-savedviews-row {
3135
3280
  box-sizing: border-box; position: relative; display: flex; align-items: center; gap: var(--crisp-space-1-5);
3136
3281
  height: var(--crisp-size-menuRow); flex-shrink: 0; padding: var(--crisp-space-1-5) var(--crisp-space-2);
@@ -3162,6 +3307,18 @@
3162
3307
  .crisp-savedviews-row:focus-within .crisp-savedviews-kebab,
3163
3308
  .crisp-savedviews-kebab[data-open] { opacity: 1; }
3164
3309
  .crisp-savedviews-kebab:hover, .crisp-savedviews-kebab[data-open] { background: var(--crisp-bg-surface); color: var(--crisp-fg-primary); }
3310
+
3311
+ /* #618 (P-008): the kebab menu's own "Created by X" / date footer —
3312
+ measured live: 2 stacked lines, 6px/8px padding, 2px gap between
3313
+ them, 12px/500 text, BOTH lines the same color-mix 50% muted (a
3314
+ distinct value from the 63% mix #592's chip breadcrumb uses —
3315
+ independently measured, not assumed to match). */
3316
+ .crisp-savedviews-kebab-footer {
3317
+ display: flex; flex-direction: column; gap: 2px;
3318
+ padding: var(--crisp-space-1-5) var(--crisp-space-2);
3319
+ font-size: var(--crisp-text-sm); font-weight: var(--crisp-weight-medium);
3320
+ color: color-mix(in srgb, var(--crisp-fg-primary) 50%, transparent);
3321
+ }
3165
3322
 
3166
3323
  .crisp-savedviews {
3167
3324
  position: relative; display: inline-flex; font-family: var(--crisp-font-sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; /* Trigger fill measured rgb(246,247,247); bgRaised's light value is