:root {
    --z-index-behind: -1;
    --z-index-bar-lines: 1;
    --z-index-bar-wrapper: 1;
    --z-index-scale-chart: 2;
    --z-index-bar-links: 2;
    --z-index-bar-links-highlight: 3;
    /* Above the highlighted links, which are meant to cover the chart's content but not the
       controls on it: a link crossing a hovered bar must not swallow its link radio buttons. */
    --z-index-bar-radio: 4;
    /* Local to a focused cell or row block, which isolation makes a stacking context of its own: above
       every z-index the customizing gives a field there, a mask field's order, so the focus ring is
       never painted under the field it marks. */
    --z-index-grid-focus-ring: 100000;
    /* A focused row block among its siblings: the rails reach past its edges and must paint over
       the neighbouring rows, but stay under a drop target's indicator. */
    --z-index-grid-focus: 1;
    /* The frozen heading bands of a Configuration Matrix. They stack among the module's
       blocks - the grid carries no z-index of its own - so they sit above the bar layers
       a scale chart in the same module brings. */
    --z-index-matrix-band: 5;
    --z-index-matrix-corner: 6;
    --z-index-main-root: 100;
    --z-index-fixed-root: 200;
    --z-index-scrollbar: 100;
    --z-index-focus-field: 500;
    /* A focused cell, whose ring reaches past its edges: above every mask field's order, the
       z-index the customizing gives a field of a mask, but under an open editor's lift and the row
       actions. It stacks inside the main root, so the fixed roots and the scrollbar stay above. */
    --z-index-grid-focus-cell: calc(var(--z-index-focus-field) - 1);
    --z-index-docked-panel: 600;
    --z-index-overlay: 1000;
    --z-index-custom-dialog-container: 1300;
    --z-index-server-dialog: 1400;
    /* A confirm box answers the user's click, which may come from inside a server dialog. */
    --z-index-confirm-dialog: 1500;
    --z-index-tooltip-module: 1600;
    --z-index-listbox-module: 1800;
    --z-index-context-menu: 1900;
    --z-index-search-module: 2000;
    --z-index-tooltip: 2400;

    --z-index-top-element: 15000;
    --z-index-global-overlay-element: 20000; 
    --z-index-global-error: 999999;
}
