/* ═══ A MENU ARRIVES, IT DOES NOT APPEAR ═══════════════════════════════════
   "also animation on drop downs" — 2026-09-14. Every menu in the app was a div
   with .hidden taken off it: on one frame nothing, the next frame a panel.

   ⚠ FROM ITS OWN CORNER. A menu that grows from the middle reads as a dialog;
   one that grows from the corner it hangs off reads as belonging to the button
   that opened it. transform-origin is set per menu, not globally, because they
   do not all hang the same way.
   ⚠ SHORT. 140ms with the app's arrival curve. A menu you are waiting for is a
   menu that is in the way — this is meant to be felt, not watched.
   These are closed by putting .hidden back. The way out is in smooth.css: 100 ms, office
   screens only, and pointer-events:none so a menu leaving can never catch a press.
   ═════════════════════════════════════════════════════════════════════════ */
@keyframes menuIn{
  from{opacity:0;transform:translateY(-5px) scale(.975)}
  to{opacity:1;transform:none}
}

/* the bar's own two: the account menu and the offices menu */
#appbars .tb-menu:not(.hidden){animation:menuIn .14s var(--ease-out);transform-origin:top right}

/* the module menus — Manage ▾ on Maintenance and on Deliveries. They are inline
   styled divs with no class of their own, so they are named by id. */
#maintManageMenu:not(.hidden),
#shipManageMenu:not(.hidden){animation:menuIn .14s var(--ease-out);transform-origin:top right}

/* the branch picker and anything else that hangs off the left of its button */
.tb-brmenu:not(.hidden){transform-origin:top left}

@media (prefers-reduced-motion:reduce){
  #appbars .tb-menu:not(.hidden),
  #maintManageMenu:not(.hidden),
  #shipManageMenu:not(.hidden){animation:none}
}
