DOM mode: replace box-shadow with outline to avoid stacking with row border-b. Canvas mode: draw row border before selected cell overlay so selection uses uniform color on all four sides; clamp top edge to prevent canvas clipping.
DOM mode: replace box-shadow with outline to avoid stacking with row border-b. Canvas mode: draw row border before selected cell overlay so selection uses uniform color on all four sides; clamp top edge to prevent canvas clipping.