/* GR@FiCs Adx on the web - the menus: the MenuStrip / ToolStrip bars, their drop-downs and the context menus
   (DomMenus.kt, the browser twin of the desktop's SwingMenus). Every COLOUR is the strip's renderer's (GssMenuRenderer:
   MenuDropBackground, MenuText, MenuHover, MenuBorder ...) or the strip's own, and the sizes are the desktop's, measured
   from the fonts - both are set inline from the model. What stays the same is here. */

/* ---- the bar: FlowLayout(LEFT, 0, 0) - captions side by side, a row that does not fit wraps out of sight ---- */
.gss-menubar { position: absolute; box-sizing: border-box; margin: 0; padding: 0; overflow: hidden;
  display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center;
  user-select: none; -webkit-user-select: none; cursor: default; }
.gss-menu-caption { position: relative; flex: 0 0 auto; box-sizing: border-box; margin: 0; padding: 0; overflow: hidden;
  background-repeat: no-repeat; }
.gss-menu-caption > * { position: absolute; box-sizing: border-box; margin: 0; padding: 0; pointer-events: none; }
.gss-menu-caption-hl { display: none; }
.gss-menu-caption-text { white-space: pre; overflow: visible; }

/* ---- a drop-down / context menu: fixed on the page, above every window (theirs run to ~50,000,000) ----------- */
.gss-menu-popup { position: fixed; z-index: 2147483000; box-sizing: border-box; margin: 0; overflow: hidden;
  user-select: none; -webkit-user-select: none; cursor: default; outline: none;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif; text-align: left; }
.gss-menu-row { position: relative; box-sizing: border-box; margin: 0; padding: 0; overflow: hidden; cursor: default; }
.gss-menu-row > * { position: absolute; box-sizing: border-box; margin: 0; padding: 0; pointer-events: none; }

/* The pointer's band: inset 3 px from the sides and 1 px from the top and bottom, rounded; shown on the armed row. */
.gss-menu-hl { display: none; left: 3px; right: 3px; top: 1px; border-radius: 3px; }
.gss-menu-row.gss-menu-hot > .gss-menu-hl { display: block; }

.gss-menu-text, .gss-menu-shortcut { white-space: pre; overflow: visible; }
.gss-menu-shortcut { text-align: right; }
.gss-menu-check { border-radius: 2.5px; }
.gss-menu-check svg, .gss-menu-arrow svg { display: block; }
.gss-menu-arrow { width: 8px; height: 8px; }
canvas.gss-menu-image { display: block; }

/* ToolStripSeparator: a hairline past the image margin, 9 px of the list's colour round it. */
.gss-menu-sep { height: 9px; }
.gss-menu-sep-line { top: 4px; height: 1px; }
