/* More dropdown — the tab-nav overflow menu (ISH-580)
 *
 * The `More ˅` button that sits last in a page's .tabs-nav, plus the menu of secondary tabs it
 * opens. Extracted verbatim from broker.html's <style> block, which owned the only copy until
 * sales-pipeline-detail.html needed the same control; both pages now link this file instead of
 * carrying a copy each. Unlike .tabs-nav/.tab-btn — which this repo deliberately duplicates
 * per page (see the comment above .fin-card in sales-pipeline-detail.html) — this component is
 * shared, because the two copies would otherwise have to be kept in step by hand and a drift
 * shows up as a menu that renders but never opens.
 *
 * Open state is a class on the menu (.is-open), toggled by the host's tab wiring.
 *
 * ⚠️ my-implementations.html and operations-hub.html reuse these same class names for their
 * "create process" action menu, and toggle it with the `hidden` attribute over a `display: block`
 * base instead. That is the inverted default of the rules below, so those two pages must keep
 * their own inline copies — linking this file there would leave their menu permanently open.
 * Reconciling the two mechanisms means changing that markup, which is not this component's job.
 *
 * Hosts: broker.html, sales-pipeline-detail.html.
 * Required custom properties: --border, --radius, --page-bg, --red, --text-secondary.
 */

.more-dropdown-container {
  position: relative;
  display: inline-block;
}

.more-dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  min-width: 160px;
  text-align: left;
  padding: 0.25rem 0;
  margin-top: 2px;
}

.more-dropdown-menu.is-open {
  display: block;
}

.more-dropdown-item {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.more-dropdown-item:hover {
  background: var(--page-bg);
  color: var(--red);
}

.more-dropdown-item.is-selected {
  color: var(--red);
  font-weight: 600;
  background: rgba(166, 38, 38, 0.05);
}
