/* cignyl-sftp 20260824 */
/* v2 Dropdown Menu */

.v2-theme .v2-dropdown-menu {
  --v2-dropdown-menu-width: 14rem;
  display: inline-block;
  position: relative;
}

.v2-theme .v2-dropdown-menu__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  border-radius: calc(var(--radius) - 2px);
  outline: none;
}

.v2-theme .v2-dropdown-menu__trigger:focus-visible {
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.v2-theme .v2-dropdown-menu--disabled-true .v2-dropdown-menu__trigger {
  opacity: 0.55;
  pointer-events: none;
}

.v2-theme .v2-dropdown-menu__content {
  position: fixed;
  left: 0;
  top: 0;
  z-index: var(--v2-layer-popover, 2147482500);

  width: var(--v2-dropdown-menu-width);
  max-width: calc(100vw - 16px);

  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 30px hsl(0 0% 0% / 0.20);

  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -2px, 0) scale(0.98);
  transform-origin: center;
  transition: opacity 120ms ease, transform 120ms ease;
}

.v2-theme .v2-dropdown-menu--width-auto .v2-dropdown-menu__content {
  width: auto;
}

.v2-theme .v2-dropdown-menu__content[data-state="open"] {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.v2-theme .v2-dropdown-menu__inner {
  padding: 0.25rem var(--v2-space-xsm);
  min-width: 8rem;
}

.v2-theme .v2-dropdown-menu__item {
  display: flex;
  align-items: center;
  gap: var(--v2-space-sm);
  padding: 0.25rem var(--v2-space-sm);
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: left;
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  user-select: none;
  outline: none;
}

.v2-theme .v2-dropdown-menu__item--variant-default {}

.v2-theme .v2-dropdown-menu__item--variant-secondary {
  color: hsl(var(--secondary));
}

.v2-theme .v2-dropdown-menu__item--variant-destructive {
  color: hsl(var(--destructive));
}

.v2-theme .v2-dropdown-menu__item--variant-success {
  color: hsl(var(--success));
}

.v2-theme .v2-dropdown-menu__item--variant-warning {
  color: hsl(var(--warning));
}

.v2-theme .v2-dropdown-menu__item--variant-info {
  color: hsl(var(--info));
}

.v2-theme .v2-dropdown-menu__item--variant-outline {
  border: 1px solid hsl(var(--border));
}

.v2-theme .v2-dropdown-menu__item--variant-ghost {}

.v2-theme .v2-dropdown-menu__item--variant-link {
  color: hsl(var(--primary));
}

.v2-theme .v2-dropdown-menu__item:hover:not(.v2-dropdown-menu__item--disabled) {
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.v2-theme .v2-dropdown-menu__item:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.v2-theme .v2-dropdown-menu__item--disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}

.v2-theme .v2-dropdown-menu__item-icon {
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

.v2-theme .v2-dropdown-menu__item-label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.v2-theme .v2-dropdown-menu__item-shortcut {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.v2-theme .v2-dropdown-menu__item--submenu {
  position: relative;
}

.v2-theme .v2-dropdown-menu__item-chevron {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.v2-theme .v2-dropdown-menu__submenu {
  position: absolute;
  left: 0;
  top: 0;
  z-index: calc(var(--v2-layer-popover, 2147482500) + 1);
  min-width: 10rem;
  max-width: calc(100vw - 16px);
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 10px 30px hsl(0 0% 0% / 0.20);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -1px, 0) scale(0.98);
  transform-origin: center;
  transition: opacity 120ms ease, transform 120ms ease;
}

.v2-theme .v2-dropdown-menu__submenu[data-v2-measuring="true"] {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
}

.v2-theme .v2-dropdown-menu__submenu[data-state="open"] {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.v2-theme .v2-dropdown-menu__label {
  padding: 0.375rem var(--v2-space-sm) 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  color: hsl(var(--muted-foreground));
  letter-spacing: 0.02em;
}

.v2-theme .v2-dropdown-menu__label:not(:first-child) {
  margin-top: 0.25rem;
}

.v2-theme .v2-dropdown-menu__separator {
  height: 1px;
  margin: 0.25rem 0;
  background: hsl(var(--border));
}

@media (prefers-reduced-motion: reduce) {
  .v2-theme .v2-dropdown-menu__content,
  .v2-theme .v2-dropdown-menu__submenu {
    transition: none !important;
  }
}
