/* =====================================================================
   WsPlanGrid — enterprise planning worksheet (v2).
   Split frozen-pane grid: pinned identity columns (left) + scrolling
   months (right), a draggable splitter between. Refined financial
   instrument: hairline gridlines, tabular numerals, tinted group bands,
   hatched locked periods. Cohesive with the v2 light theme tokens.
   ===================================================================== */

/* User-resizable column widths (drag handles in the grid headers; bcPgCols in
   budget.js overrides these on <html> and persists to localStorage). Defined on
   :root — NOT on .pg — so the JS overrides aren't shadowed. */
:root {
    --pg-col-cat: 200px;              /* category / structure column (minimum share) */
    --pg-col-tot: 130px;              /* Totals column */
    --pg-col-month: 112px;            /* every month column */
}

.pg {
    --pg-row-h: 32px;
    --pg-head-h: 34px;
    --pg-line: #EAEEF3;               /* hairline gridline */
    --pg-line-strong: #DCE2EA;
    --pg-num: 'JetBrains Mono', ui-monospace, monospace;

    display: flex;
    align-items: stretch;
    width: 100%;
    height: calc(100vh - 250px);
    min-height: 420px;
    background: var(--bc-surface);
    border: 1px solid var(--bc-border);
    border-radius: 0;                 /* flat edges — no rounded corners */
    overflow: hidden;
    font-family: var(--bc-font-ui);
}

/* ---- panes ---- */
.pg-left { flex: 0 0 auto; min-width: 336px; max-width: 82%; position: relative; background: var(--bc-surface); }
.pg-right { flex: 1 1 auto; min-width: 220px; position: relative; }
/* Left pane scrolls horizontally when its columns outgrow it (vertical scroll stays
   slaved to the right pane). border-box so the JS scrollbar-height padding grows its
   scroll range, not its outer height. */
.pg-left-scroll { height: 100%; overflow-x: auto; overflow-y: hidden; box-sizing: border-box; }
.pg-right-scroll { height: 100%; overflow: auto; }
/* subtle "there's more →" fade on the right pane's left edge, hinting the frozen seam */
.pg-right::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; z-index: 5; pointer-events: none;
    background: linear-gradient(90deg, rgba(11, 15, 30, .06), transparent); }

/* ---- splitter ---- */
.pg-splitter { flex: 0 0 6px; cursor: col-resize; position: relative; z-index: 8; background: transparent; }
.pg-splitter::before { content: ""; position: absolute; inset: 0; border-left: 1px solid var(--pg-line-strong); }
.pg-splitter-grip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 4px; height: 34px;
    border-radius: 3px; background: var(--bc-border-hover); opacity: 0; transition: opacity .14s; }
.pg-splitter:hover .pg-splitter-grip, .pg-splitter.dragging .pg-splitter-grip { opacity: 1; }
.pg-splitter:hover::before, .pg-splitter.dragging::before { border-left-color: var(--bc-primary); }
body.pg-resizing, body.pg-resizing * { cursor: col-resize !important; user-select: none !important; }

/* ---- tables ---- */
.pg-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; }
/* The left table fills the pane, but never shrinks below the user's chosen column
   widths (56px = checkbox + grip cols) — past that the pane scrolls horizontally.
   The category col carries no width of its own, so IT soaks up any extra space. */
.pg-ltable { width: 100%; min-width: calc(56px + var(--pg-col-cat) + var(--pg-col-tot)); }
.pg.ro .pg-ltable { min-width: calc(var(--pg-col-cat) + var(--pg-col-tot)); }
.pg-rtable { width: max-content; min-width: 100%; }
.pg-table th, .pg-table td { padding: 0; box-sizing: border-box; }

/* ---- column resize handles (header right edges; bcPgCols drives them) ---- */
.pg-resize-handle { position: absolute; top: 0; right: -4px; width: 9px; height: 100%; cursor: col-resize; z-index: 7; }
.pg-resize-handle::after { content: ""; position: absolute; left: 3px; top: 22%; height: 56%; width: 2px;
    border-radius: 2px; background: transparent; transition: background .12s; }
.pg-resize-handle:hover::after, .pg-resize-handle.dragging::after { background: var(--bc-primary); }

/* ---- headers (two-row, sticky) ---- */
.pg-head-1 th, .pg-head-2 th { position: sticky; z-index: 6; background: var(--bc-surface-muted); }
.pg-head-1 th { top: 0; height: var(--pg-head-h); }
.pg-head-2 th { top: var(--pg-head-h); height: 26px; }
/* column titles + Budget sub-header are centered */
.pg-h { font-size: 10.5px; font-weight: 600; letter-spacing: .01em; color: var(--bc-text-2);
    padding: 0 12px; border-bottom: 1px solid var(--pg-line); text-align: center; white-space: nowrap; }
.pg-h.r { text-align: center; }
.pg-tothead { color: var(--bc-text); font-weight: 700; }
.pg-sub { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em;
    color: var(--bc-text-faint); padding: 0 12px; border-bottom: 1px solid var(--pg-line-strong); text-align: center; }
.pg-sub.r { text-align: center; }
.pg-head-1 th, .pg-head-2 th { border-right: 1px solid var(--pg-line); }

/* month header — centered title */
.pg-mh { height: var(--pg-head-h); font-size: 10.5px; font-weight: 600; color: var(--bc-text-2);
    text-align: center; padding: 0 12px; border-bottom: 1px solid var(--pg-line); border-right: 1px solid var(--pg-line);
    white-space: nowrap; font-variant-numeric: tabular-nums; }
.pg-mh:first-child { border-left: 1px solid var(--pg-line); }

/* ---- generic cells ---- */
.pg-table td { border-bottom: 1px solid var(--pg-line); border-right: 1px solid var(--pg-line); height: var(--pg-row-h); }
.pg-cat.l, .pg-etype.l, .pg-desc.l { text-align: left; }
.pg-num { font-family: var(--pg-num); font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.r { text-align: right; }
.l { text-align: left; }

/* right-pane month cell frame — right padding so band values don't touch the divider.
   Specificity must beat `.pg-table td { padding:0 }` (0,2,1), hence `.pg-table td.pg-mcell`. */
.pg-table td.pg-mcell { text-align: right; border-right: 1px solid var(--pg-line); padding-right: 12px; }
.pg-table td.pg-mcell:first-child { border-left: 1px solid var(--pg-line); }
/* inputs / read-only spans fill the cell and carry their own padding, so drop the td gutter */
.pg-table td.pg-mcell:has(.pg-cell), .pg-table td.pg-mcell:has(.pg-ro) { padding-right: 0; }

/* ---- selection column + grip ---- */
.pg-chk { text-align: center; vertical-align: middle; border-right: 1px solid var(--pg-line); }
.pg-chk input { width: 13px; height: 13px; accent-color: var(--bc-primary); cursor: pointer; margin: 0; vertical-align: middle; }
.pg-grip { text-align: center; vertical-align: middle; color: var(--bc-text-faint); cursor: grab; }
.pg-grip:hover { color: var(--bc-text-muted); }
.pg-grip:active { cursor: grabbing; }

/* ---- band rows (Plan Total, groups) ---- */
.pg-band td { height: var(--pg-row-h); border-bottom: 1px solid var(--pg-line-strong); }
.pg-band-plan td { background: #F3F5F8; font-weight: 700; border-bottom: 1px solid var(--pg-line-strong); }
.pg-band-plan .pg-band-name { color: var(--bc-text); font-size: 12px; font-weight: 700; letter-spacing: -.01em; }
/* type band gets a soft tint of its own colour so type rows read distinctly from sub rows */
.pg-band-group td { background: color-mix(in srgb, var(--pg-accent, #94A3B8) 9%, var(--bc-surface)); }
.pg-band-group .pg-band-name { color: var(--bc-text); font-size: 11.5px; font-weight: 650; }
.pg-band .pg-tot, .pg-band .pg-mcell { color: var(--bc-text); font-weight: 700; font-size: 11.5px; }
.pg-band-plan .pg-tot, .pg-band-plan .pg-mcell.strong { font-size: 12px; }

/* group accent bar on the category cell */
.pg-band-group .pg-cat { box-shadow: inset 3px 0 0 var(--pg-accent, transparent); }

/* twist (collapse chevron) */
.pg-twist { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border: 0;
    background: transparent; color: var(--bc-text-muted); cursor: pointer; border-radius: 4px; padding: 0;
    transition: transform .15s, background .12s; flex-shrink: 0; }
.pg-twist svg { transition: transform .15s; }
.pg-twist:not(.open) svg { transform: rotate(-90deg); }
.pg-twist:hover { background: var(--bc-chip-bg); color: var(--bc-text); }

.pg-col-cat { min-width: 150px; }
.pg-table td.pg-cat { padding: 0 12px; vertical-align: middle; }
.pg-group-indent { display: inline-flex; align-items: center; gap: 7px; padding-left: 14px; }
.pg-group-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.pg-band-plan .pg-cat { display: flex; align-items: center; gap: 7px; }

/* ---- leaf rows ---- */
.pg-row { transition: background .1s; }
/* items vs sub-items: each nesting level gets its own backing so the hierarchy reads
   at a glance — top-level items stay white, sub-items step through a slate ramp, and
   a parent that rolls up sub-items sits on the strongest tint (its own mini-band).
   :where() keeps the depth modifiers at (0,2,1) specificity so the hover/selection
   rules below still win. */
.pg-row.sub td { background: #F5F8FC; }                   /* sub-item, depth 1 */
.pg-row.sub:where(.sub-d2) td { background: #EFF3FA; }    /* depth 2 */
.pg-row.sub:where(.sub-d3) td { background: #E9EFF7; }    /* depth 3+ */
.pg-row.haskids td { background: #E7EDF5; }               /* item with sub-items (rollup) */
.pg-row:hover td { background: var(--bc-primary-wash); }
.pg-row.sel td { background: var(--bc-primary-tint); }
.pg-row.sel:hover td { background: #DBF5EC; }
.pg-row.pg-drop-before td { box-shadow: inset 0 2px 0 var(--bc-primary); }
.pg-row.pg-drop-after td { box-shadow: inset 0 -2px 0 var(--bc-primary); }
.pg-row.pg-dragging td { opacity: .45; }

.pg-leaf-indent { display: flex; align-items: center; padding-left: 34px; }
/* sub-item rows are indented per depth via an inline padding-left */
.pg-name { width: 100%; background: transparent; border: 1px solid transparent; border-radius: 5px;
    font-family: var(--bc-font-ui); font-size: 11.5px; font-weight: 500; color: var(--bc-text); padding: 4px 6px; }
.pg-name:hover { border-color: var(--bc-border); background: var(--bc-surface); }
.pg-name:focus { border-color: var(--bc-primary); background: var(--bc-surface); outline: none; box-shadow: 0 0 0 2px var(--bc-primary-ring); }
/* read-only (parent rollup) name — plain text, no input affordance */
.pg-name.ro { display: inline-block; padding: 4px 6px; border: 1px solid transparent; color: var(--bc-text); }
/* clickable child-node link on rollup rows */
.pg-childlink { display: inline-flex; align-items: center; gap: 3px; background: transparent; border: 1px solid transparent; border-radius: 5px; font-family: var(--bc-font-ui); font-size: 11.5px; font-weight: 600; color: var(--bc-text); cursor: pointer; text-align: left; }
.pg-childlink .pg-childlink-arrow { color: var(--bc-text-faint); opacity: 0; transition: opacity .12s, transform .12s; margin-left: -1px; }
.pg-childlink:hover { color: var(--bc-primary-strong); background: var(--bc-primary-wash); border-color: var(--bc-primary-line); }
.pg-childlink:hover .pg-childlink-arrow { opacity: 1; transform: translateX(1px); color: var(--bc-primary); }
/* template-governed line — name locked to node-type settings */
.pg-name.locked { display: inline-flex; align-items: center; gap: 5px; width: 100%; padding: 4px 6px; border: 1px solid transparent; color: var(--bc-text); cursor: default; }
.pg-lock { color: var(--bc-text-faint); flex-shrink: 0; }
.pg.ro .pg-leaf-indent { padding-left: 22px; }
/* flat (Totals) view: no group band above, so rows sit at the base indent */
.pg .pg-leaf-indent.flat { padding-left: 12px; }
/* untyped (unbanded) lines: no group band to align under, so drop the 34px reserve —
   14px keeps just enough room for the sub-item arrow / ↳ glyph to hang back into */
.pg .pg-leaf-indent.unbanded { padding-left: 14px; }

/* sub-item expand arrow (on a line that has sub-lines) */
.pg-subarrow { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--bc-text-muted); cursor: pointer; border-radius: 4px; flex-shrink: 0; margin-right: 2px; margin-left: -18px; padding: 0; transition: transform .15s, background .12s; }
.pg-subarrow svg { transition: transform .15s; }
.pg-subarrow.open { transform: rotate(90deg); }
.pg-subarrow:hover { background: var(--bc-chip-bg); color: var(--bc-text); }
/* sub-item glyph (on the sub-line row itself) */
.pg-sub-glyph { color: var(--bc-text-faint); font-size: 11px; flex-shrink: 0; margin-right: 5px; margin-left: -14px; }
/* add-sub button — appears on hover of a top-level line's name cell */
.pg-addsub { width: 19px; height: 19px; border-radius: 5px; border: 1px solid var(--bc-border); background: var(--bc-surface); color: var(--bc-text-muted); cursor: pointer; font-size: 13px; line-height: 1; display: none; align-items: center; justify-content: center; margin-left: 4px; flex-shrink: 0; }
.pg-cat:hover .pg-addsub { display: inline-flex; }
.pg-addsub:hover { border-color: var(--bc-primary); color: var(--bc-primary-strong); }
/* edit-row (pencil) button — appears on hover beside the add-sub button */
.pg-editrow { width: 19px; height: 19px; border-radius: 5px; border: 1px solid var(--bc-border); background: var(--bc-surface); color: var(--bc-text-muted); cursor: pointer; display: none; align-items: center; justify-content: center; margin-left: 3px; flex-shrink: 0; padding: 0; }
.pg-cat:hover .pg-editrow { display: inline-flex; }
.pg-editrow:hover { border-color: var(--bc-primary); color: var(--bc-primary-strong); }

/* structure (By Structure) tree rows.
   The left (labels) and right (months) panes are separate tables whose rows must line up 1:1.
   A wrapping name would make a left row taller than its right twin and desync the panes, so every
   name stays on ONE line with an ellipsis (full text is in the row's title tooltip). */
.pgs-indent { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; }
/* structure rows use a tighter cell gutter than the plan grid — the per-depth indent
   already spends horizontal room, so keep the base gutter small for long names */
.pg .pg-row.pgs-branch > .pg-cat, .pg .pg-row.pgs-leaf > .pg-cat { padding: 0 8px 0 6px; }
.pgs-leaf-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--bc-text-faint); flex-shrink: 0; margin-left: 4px; margin-right: 1px; }
.pgs-name { font-size: 11.5px; font-weight: 600; min-width: 0; }
/* clickable node name in the By-Structure tree */
.pgs-link { display: inline-flex; align-items: center; gap: 3px; min-width: 0; background: transparent; border: 1px solid transparent; border-radius: 5px; padding: 2px 3px; font-family: var(--bc-font-ui); cursor: pointer; }
/* the name text itself: single line, clipped with an ellipsis (full name is in the title tooltip) */
.pgs-name-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pgs-link .pgs-link-arrow { color: var(--bc-text-faint); opacity: 0; transition: opacity .12s, transform .12s; flex-shrink: 0; }
.pgs-link:hover { background: var(--bc-primary-wash); border-color: var(--bc-primary-line); }
.pgs-link:hover .pgs-link-arrow { opacity: 1; transform: translateX(1px); }
.pgs-type { font-family: var(--pg-num); font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--bc-text-faint); padding: 1px 4px; border-radius: 5px; background: var(--bc-chip-bg); flex-shrink: 0; white-space: nowrap; }

/* synthetic section subtotal rows (Total Revenue / Total Cost at the company level) */
.pgs-section { padding: 2px 5px; font-weight: 750; letter-spacing: -.01em; white-space: nowrap; }

/* fast expand/collapse depth presets in the Structure header: 1 / 2 / 3 / All */
.pgs-structh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pgs-lvls { display: inline-flex; gap: 3px; }
.pgs-lvl-btn { height: 20px; min-width: 22px; padding: 0 6px; border: 1px solid var(--bc-border); border-radius: 5px;
    background: var(--bc-surface); color: var(--bc-text-muted); font-family: var(--bc-font-ui); font-size: 9.5px;
    font-weight: 650; letter-spacing: .02em; cursor: pointer; transition: color .12s, border-color .12s, background .12s; }
.pgs-lvl-btn:hover { border-color: var(--bc-primary); color: var(--bc-primary-strong); background: var(--bc-primary-wash); }
.pgs-lvl-btn.on { border-color: var(--bc-primary); color: var(--bc-primary-strong); background: var(--bc-primary-tint); }

/* Hard-lock every structure-grid row to one line so the frozen left pane and scrolling right pane
   stay in lockstep — a taller left row (from long labels) would otherwise drift the panes apart. */
.pg .pg-row.pgs-branch > td, .pg .pg-row.pgs-leaf > td { height: var(--pg-row-h); max-height: var(--pg-row-h); overflow: hidden; }
.pg .pg-row.pgs-branch .pg-cat, .pg .pg-row.pgs-leaf .pg-cat { overflow: hidden; }

/* =====================================================================
   Depth-differentiated hierarchy (By-Structure / Company grand total).
   Each level reads distinctly: masters sit on a tinted slate band with a
   solid accent rail; children step to a lighter tint + thinner rail;
   grandchildren fade to near-white with a hairline guide. A cross-pane
   hover/selection highlight (driven by bcPlanGrid.attachHover) lets the
   planner track exactly which row — and its whole branch — they're on.
   ===================================================================== */
/* each level carries its OWN hue (not just a lighter shade) so the eye can jump
   straight to a tier: parent = blue, child = mint, grandchild+ = cream */
.pg .pg-row.pgs-lvl0 > td { background: #E0EAF9; }                 /* parent      — blue  */
.pg .pg-row.pgs-lvl1 > td { background: #E4F3EB; }                 /* child       — mint  */
.pg .pg-row.pgs-lvl2 > td { background: #FBF6E8; }                 /* grandchild+ — cream */
/* a hairline between a group and the next master band sharpens the tiers */
.pg .pg-row.pgs-lvl0 > td { border-top: 1px solid #C7D7EF; }

/* left-edge rail on the frozen pane's first cell, hue-matched per depth */
.pg-left .pg-row.pgs-lvl0 > td:first-child { box-shadow: inset 4px 0 0 #3D6FBE; }
.pg-left .pg-row.pgs-lvl1 > td:first-child { box-shadow: inset 3px 0 0 #34A26F; }
.pg-left .pg-row.pgs-lvl2 > td:first-child { box-shadow: inset 2px 0 0 #D3A94C; }

/* name weight/size steps down so the canopy reads first */
.pg-row.pgs-lvl0 .pgs-name { font-size: 12.5px; font-weight: 700; letter-spacing: -.01em; }
.pg-row.pgs-lvl1 .pgs-name { font-size: 11.5px; font-weight: 600; }
.pg-row.pgs-lvl2 .pgs-name { font-size: 11px;   font-weight: 500; }
.pg-row.pgs-lvl0 .pgs-type { background: #CFE0F6; color: #2F5595; }
.pg-row.pgs-lvl1 .pgs-type { background: #D3ECDF; color: #237450; }
.pg-row.pgs-lvl2 .pgs-type { background: #F3E8C9; color: #8A6D1F; }

/* totals inherit the same emphasis ramp */
.pg-row.pgs-lvl0 .pg-tot { font-weight: 700; }
.pg-row.pgs-lvl1 .pg-tot { font-weight: 600; }
.pg-row.pgs-lvl2 .pg-tot { font-weight: 500; }

/* connector guide on grandchild rows — a faint elbow so deep nesting reads */
.pg-row.pgs-lvl2 .pgs-leaf-dot { background: #C79E3F; }

/* ---- highlight: the row (and its twin in the other pane) under focus ---- */
.pg .pg-row.pgs-hover > td {
    background: color-mix(in srgb, var(--bc-primary) 17%, var(--bc-surface));
    transition: background .12s ease;
}
.pg-left .pg-row.pgs-hover > td:first-child {
    box-shadow: inset 5px 0 0 var(--bc-primary);
}
.pg .pg-row.pgs-hover .pgs-name { color: var(--bc-primary-strong); }
.pg .pg-row.pgs-hover .pgs-link-arrow { opacity: 1; transform: translateX(1px); }

/* selected node — a persistent, stronger highlight that survives mouse-out */
.pg .pg-row.pgs-sel > td {
    background: color-mix(in srgb, var(--bc-primary) 18%, var(--bc-surface));
}
.pg-left .pg-row.pgs-sel > td:first-child { box-shadow: inset 4px 0 0 var(--bc-primary); }
.pg .pg-row.pgs-sel .pgs-name { color: var(--bc-primary-strong); font-weight: 700; }
.pg .pg-row.pgs-sel.pgs-hover > td { background: color-mix(in srgb, var(--bc-primary) 22%, var(--bc-surface)); }

/* branch echo — every descendant of the hovered/selected row lights up in a softer
   shade of the same highlight, so picking a parent visibly picks its whole subtree */
.pg .pg-row.pgs-hover-br > td {
    background: color-mix(in srgb, var(--bc-primary) 9%, var(--bc-surface));
    transition: background .12s ease;
}
.pg-left .pg-row.pgs-hover-br > td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--bc-primary) 55%, transparent); }
.pg .pg-row.pgs-sel-br > td { background: color-mix(in srgb, var(--bc-primary) 10%, var(--bc-surface)); }
.pg-left .pg-row.pgs-sel-br > td:first-child { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--bc-primary) 55%, transparent); }
.pg .pg-row.pgs-sel-br.pgs-hover-br > td { background: color-mix(in srgb, var(--bc-primary) 14%, var(--bc-surface)); }

/* totals (derived, read-only) */
.pg-table td.pg-tot { padding: 0 14px 0 12px; vertical-align: middle; text-align: right; color: var(--bc-text); font-size: 11.5px; font-weight: 500; }
.pg-tot.strong { font-weight: 700; }

/* ---- month value cells ---- */
.pg-mcell { vertical-align: middle; }
.pg-cell { width: 100%; height: 100%; background: transparent; border: 1px solid transparent; border-radius: 4px;
    text-align: right; font-family: var(--pg-num); font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: -.3px;
    color: var(--bc-text); padding: 0 6px; box-sizing: border-box; }
.pg-cell::placeholder { color: #C4CDD8; }
.pg-cell:hover { border-color: var(--bc-border); background: var(--bc-surface); }
.pg-cell:focus { border-color: var(--bc-primary); background: var(--bc-surface); color: var(--bc-text); outline: none; box-shadow: 0 0 0 2px var(--bc-primary-ring); }
/* read-only values carry the same full-strength ink as editable cells — only LOCKED
   (closed-period) cells dim, via the override in the locked section below */
.pg-ro { display: block; padding: 0 6px; font-size: 11px; letter-spacing: -.3px; color: var(--bc-text); }

/* ---- locked / closed periods: diagonal hatch, read-only ---- */
.pg-mh.locked, .pg-sub.locked {
    color: var(--bc-text-faint);
    background:
        repeating-linear-gradient(-45deg, transparent 0 5px, rgba(148, 163, 184, .13) 5px 6px),
        var(--bc-surface-muted);
}
.pg-mcell.locked {
    background:
        repeating-linear-gradient(-45deg, transparent 0 6px, rgba(148, 163, 184, .10) 6px 7px),
        #FBFCFD;
}
.pg-band .pg-mcell.locked { background:
        repeating-linear-gradient(-45deg, transparent 0 6px, rgba(148, 163, 184, .13) 6px 7px),
        #F1F3F6; }
.pg-mcell.locked .pg-ro { color: var(--bc-text-faint); }

/* ---- empty ---- */
.pg-emptyrow td { border-bottom: 1px solid var(--pg-line); }
.pg-empty-cell { color: var(--bc-text-faint); font-size: 12px; padding: 0 16px; font-style: italic; }

/* keep header cells above the left-fade and gridlines */
.pg-head-1 th, .pg-head-2 th { z-index: 6; }
