/* ============================================================
   TUL  |  tul-ledger-menu-v1.css  -  the Registers' ledger menu (TUL_LEDGER_MENU, tul-ledger-menu-v1.js; Plan B P1,
   2026-11-05). One sheet for the menu wherever it is drawn: the Registers page and the ledger workspace in the
   Launchpad. The menu is its own scroll area (Plan B R3): its container gives it a height, and it scrolls apart from the
   grid. Tokens only (the family sheet, linked last); nothing under the 11px floor; 44px to touch on a phone, where the
   menu is ONE closed "Ledgers: <current>" disclosure. Print sets it aside.
   ============================================================ */
.rg-nav{flex:0 0 220px;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.rg-navlist{display:flex;flex-direction:column;gap:14px}
.rg-navbtn{display:none}
.rg-gh{margin:0 0 4px;padding:0 10px;font:600 12px/1.3 var(--fbody,Inter,Arial,sans-serif);color:var(--muted)}
.rg-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.rg-item{display:flex;align-items:center;gap:8px;min-height:38px;padding:0 10px;border-radius:var(--r-ctl,8px);border-left:2px solid transparent;
  color:var(--ink-2);text-decoration:none;font-size:13px}
.rg-keep{flex:0 0 auto;margin-left:auto;color:var(--muted);font-size:11px;font-weight:500}
/* the second pass (J): the keeper is one word for the whole group, so it shows on hover and on keyboard focus only (a
   screen reader always hears it) */
.rg-keep{opacity:0;transition:opacity var(--dur-1,.12s) var(--ease,ease)}
.rg-item:hover .rg-keep,.rg-item:focus-visible .rg-keep{opacity:1}
.rg-item:hover{background:var(--s1);color:var(--ink)}
.rg-item[aria-current="page"]{background:var(--s1);color:var(--ink);font-weight:600;border-left-color:var(--taupe)}
.rg-item:focus-visible,.rg-navbtn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* Release 1.181.0: the Registers home first; each ledger's and each group's needs-attention count in the status red */
.rg-home{font-weight:600;color:var(--ink)}
.rg-n{flex:0 0 auto;color:var(--bad);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.rg-chev{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;margin-left:auto;flex:0 0 16px}
@media (max-width:820px){
  .rg-nav{position:static;flex:0 0 auto;width:100%;overflow:visible}
  .rg-navbtn{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:0 14px;border:1px solid var(--line);border-radius:var(--r-ctl,8px);
    background:var(--s0);color:var(--ink);font-size:14px;font-weight:500;text-align:left;cursor:pointer}
  .rg-navbtn[aria-expanded="true"] .rg-chev{transform:rotate(180deg)}
  .rg-nav:not(.rg-navopen) .rg-navlist{display:none}
  .rg-navlist{margin-top:10px;flex-direction:row;flex-wrap:wrap;gap:8px 16px}
  .rg-grp{flex:1 1 140px}
  .rg-item{min-height:44px}
}
@media print{
  .rg-nav{display:none !important}
}
