/* The top bar: the daily work as links, the reports and the tables of records as two menus
   (static/ui/00-nav.js). The bar wraps rather than scrolls — a link out of sight is a link nobody finds. */
.nav { overflow: visible; flex-wrap: wrap; align-items: center; row-gap: 2px; }
.nav-group { position: relative; }
.nav-group-btn { padding: 8px 12px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--ink-2);
  font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer; }
.nav-group-btn:hover, .nav-group.open .nav-group-btn { background: var(--neutral-soft); }
.nav-group-btn.has-current { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-caret { font-size: 11px; }
.nav-menu { position: absolute; top: calc(100% + 4px); inset-inline-start: 0; z-index: 40; min-width: 200px; max-width: calc(100vw - 32px);
  display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.nav-menu.hidden { display: none; }
.nav-menu a { display: block; }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; gap: 6px; align-items: center; order: 2; }
  .nav { display: none; flex-direction: column; flex-wrap: nowrap; align-items: stretch; order: 5; flex-basis: 100%; margin: 0; padding: 4px 0 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav-group-btn { padding: 10px 10px 2px; pointer-events: none; font-size: 12px; color: var(--ink-3); width: 100%; text-align: start; }
  .nav-group-btn.has-current { background: none; }
  .nav-caret { display: none; }
  .nav-group .nav-menu, .nav-group .nav-menu.hidden { display: flex !important; position: static; border: 0; box-shadow: none; padding: 0 12px 0 12px; max-width: none; min-width: 0; }
}
