/* Get help button + menu (ui/get-help.mjs), in the app's top bar beside the
   account chip. Values are the NexiAxs tokens (styles.css :root). The menu is
   position:fixed and placed by fit() on every open, clamped inside the window. */

.nxs-help-slot { margin-left: auto; display: flex; align-items: center; }

.nxs-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.nxs-help-btn svg { color: var(--muted); flex: none; }
.nxs-help-btn:hover, .nxs-help-btn[aria-expanded="true"] { border-color: var(--border-strong); background: var(--chip-bg); }
.nxs-help-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* A narrow window keeps the icon and drops the words (aria-label stays). */
@media (max-width: 640px) { .nxs-help-btn { padding: 0 9px; } .nxs-help-btn > span { display: none; } }

.nxs-help-menu {
  position: fixed;
  z-index: 60;
  box-sizing: border-box;
  min-width: 220px;
  max-width: calc(100vw - 16px);
  overflow-y: auto;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
}
.nxs-help-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
}
/* An entry that acts in the page (the supplier console) is a button: same look. */
button.nxs-help-item { width: 100%; border: 0; background: none; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.nxs-help-item svg { color: var(--muted); flex: none; }
.nxs-help-item:hover, .nxs-help-item:focus-visible { background: var(--chip-bg); outline: 0; text-decoration: none; }
.nxs-help-ext { margin-left: auto; color: #94a3b8; font-size: 12px; }

/* On a phone the "SIMULATED SUPPLIERS" badge no longer has the whole bar to
   itself: it shortens with an ellipsis instead of running under the button. */
@media (max-width: 480px) {
  .topbar-left .env-badge { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
