/* VENDOR-COPY — do not edit here.
 * SOURCE: /Volumes/FileSync/AI/Claude/Projects/Site-Kit/widgets/quick-add/quick-add.css
 * COPIED: 2026-09-03.
 *
 * ONE ADAPTATION, the same subtraction sk-form.css and sk-modal.css carry:
 * every literal hue is replaced by the FHT token it stands for, through the
 * widget's own --sk-* override hooks, so nothing new is invented and all four
 * theme paths follow for free. The widget's default was a generic emergency
 * red; on this site the "+" is the house green (--accent) on --accent-ink,
 * which is the same pair every primary button already wears.
 * Geometry, structure and every class name are the widget's, untouched.
 * Fix bugs in Site-Kit and re-copy; never read across projects at runtime.
 */
/*
 * Quick-Add button stack. Default color is the site's "emergency"/primary
 * red — override --sk-red / --sk-red-hover per project to match the real
 * brand color (pull it from the live site's CSS, don't guess).
 */
.quick-add-stack {
  position: fixed;
  top: var(--sk-quickadd-top, 20px);
  right: var(--sk-quickadd-right, 20px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
/* Opt-in variant (pass stackClass: 'qa-header-rail' to mount()) for a
   caller whose header reserves a right-hand column for this pair at
   desktop widths — lays the two buttons out side by side so they fit a
   header-height band instead of floating below it. Falls back to the
   default column stack below 901px, where such a caller's header
   typically wraps to auto-height anyway. Every other consumer of this
   widget is unaffected — the base .quick-add-stack rule above is
   untouched. */
@media (min-width: 901px) {
  .quick-add-stack.qa-header-rail { flex-direction: row; align-items: center; }
}

.quick-add-wrap { position: relative; }

.quick-add-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--sk-red, var(--accent));
  color: var(--accent-ink);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  box-shadow: var(--lift);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}
.quick-add-btn:hover { background: var(--sk-red-hover, var(--navy)); transform: translateY(-1px); }
.quick-add-btn:active { transform: translateY(0); }

.quick-add-more { font-size: 20px; }

.quick-add-menu {
  /* Anchored to the button's top edge, not centered on it — a menu this
     tall (10+ items) centered on a button sitting near the top of the
     page pushed its top half off-screen ("cant see the top of the word
     Parts"). Growing downward from the button's own top keeps the whole
     menu on-page regardless of how close to the top the button sits. */
  position: absolute;
  top: 0;
  right: 54px;
  transform: translateX(6px);
  opacity: 0;
  pointer-events: none;
  background: var(--sk-menu-bg, var(--surface));
  border-radius: var(--radius);
  box-shadow: var(--lift);
  padding: 6px;
  min-width: 190px;
  max-width: 240px;
  /* The grouped "…" menu can run 15+ rows deep now — keep it inside the
     viewport and let it scroll rather than spill off the bottom edge. */
  max-height: min(70vh, 520px);
  overflow-y: auto;
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.quick-add-menu.open { opacity: 1; pointer-events: auto; transform: translateX(0); }

.quick-add-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--sk-menu-text, var(--ink));
  cursor: pointer;
  font-family: var(--sk-font, inherit);
}
.quick-add-menu-item:hover, .quick-add-menu-item:focus-visible { background: var(--sk-menu-hover, color-mix(in srgb, var(--accent) 12%, transparent)); }
.quick-add-menu-item:focus-visible { outline: 2px solid var(--sk-menu-focus, var(--navy)); outline-offset: -2px; }
.quick-add-menu-icon { flex: 0 0 auto; width: 18px; display: inline-flex; align-items: center; justify-content: center; color: var(--sk-menu-icon, inherit); }
.quick-add-ico { width: 17px; height: 17px; display: block; }
.quick-add-menu-divider { height: 1px; background: color-mix(in srgb, var(--ink) 10%, transparent); margin: 4px 2px; }
/* Small-caps section label inside the "…" menu (Money / Work / People /
   System) — inserted once per group by quick-add.js, not by the caller. */
.quick-add-menu-group {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sk-menu-muted, var(--muted));
  padding: 10px 10px 3px;
}
.quick-add-menu-group:first-child { padding-top: 4px; }

@media print { .quick-add-stack { display: none !important; } }
