/*
 * Virii8 Workspace Shell CSS module: v8-mac-dock-reorder-style
 * Extracted from shell-core.css during v1.6.122 modular shell refactor.
 * Load order is controlled by V8E_Module_WorkspaceShell::enqueue_embedded_shell_assets().
 */
/* ---- v8-mac-dock-reorder-style ---- */
.v8-platform-mac:not(.v8-device-phone) #v8-taskbar .v8-taskbar-icons {
    position: relative;
  }

  .v8-platform-mac:not(.v8-device-phone) #v8-taskbar .v8-taskbar-icon {
    touch-action: none;
  }

  .v8-platform-mac:not(.v8-device-phone) #v8-taskbar .v8-taskbar-icon.v8-dock-reorder-ready {
    cursor: grab;
  }

  .v8-platform-mac:not(.v8-device-phone) #v8-taskbar .v8-taskbar-icon.v8-dock-dragging {
    z-index: 4;
    cursor: grabbing;
    transition: none !important;
    box-shadow:
      0 18px 34px rgba(0,0,0,0.26),
      inset 0 1px 0 rgba(255,255,255,0.24);
  }

  .v8-platform-mac:not(.v8-device-phone) #v8-taskbar .v8-taskbar-icon.v8-dock-dragging::before,
  .v8-platform-mac:not(.v8-device-phone) #v8-taskbar .v8-taskbar-icon.v8-dock-dragging::after {
    opacity: 0 !important;
  }

  .v8-platform-mac:not(.v8-device-phone) #v8-taskbar .v8-taskbar-icon.v8-dock-placeholder {
    opacity: 0.45;
  }

  .v8-platform-mac:not(.v8-device-phone) #v8-taskbar .v8-taskbar-icon.v8-dock-unpinned {
    display: none !important;
  }

  @keyframes v8-dock-wiggle {
    0%, 100% {
      transform: translateY(calc(var(--v8-lift, 0px))) rotate(-1.35deg) scale(var(--v8-scale, 1));
    }
    50% {
      transform: translateY(calc(var(--v8-lift, 0px) - 1px)) rotate(1.35deg) scale(var(--v8-scale, 1));
    }
  }

  .v8-platform-mac:not(.v8-device-phone).v8-dock-reordering #v8-taskbar .v8-taskbar-icon:not(.v8-dock-dragging):not(.v8-dock-unpinned) {
    animation: v8-dock-wiggle 0.18s ease-in-out infinite alternate;
    transition:
      transform 0.16s ease,
      opacity 0.16s ease,
      background 0.16s ease,
      border-color 0.16s ease;
  }

  .v8-platform-mac:not(.v8-device-phone).v8-dock-reordering #v8-taskbar .v8-taskbar-icon:nth-child(2n):not(.v8-dock-dragging):not(.v8-dock-unpinned) {
    animation-delay: 0.04s;
  }

  .v8-platform-mac:not(.v8-device-phone).v8-dock-reordering #v8-taskbar .v8-taskbar-icon:nth-child(3n):not(.v8-dock-dragging):not(.v8-dock-unpinned) {
    animation-delay: 0.09s;
  }

  .v8-dock-context-menu {
    position: fixed;
    z-index: 100006;
    min-width: 230px;
    max-width: min(300px, calc(100vw - 20px));
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    border-radius: 16px;
    color: #fff;
    background: rgba(20, 24, 34, 0.92);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow:
      0 24px 48px rgba(0,0,0,0.36),
      inset 0 1px 0 rgba(255,255,255,0.12);
  }

  .v8-dock-context-menu.active {
    display: flex;
    animation: v8-fade-in 0.14s ease forwards;
  }

  .v8-dock-context-title {
    padding: 6px 10px 4px;
    color: rgba(255,255,255,0.62);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .v8-dock-context-divider {
    height: 1px;
    margin: 4px 0;
    background: rgba(255,255,255,0.08);
  }

  .v8-dock-context-item {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: none;
    border-radius: 11px;
    background: transparent;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    font: inherit;
    cursor: pointer;
  }

  .v8-dock-context-item:hover {
    background: rgba(255,255,255,0.1);
  }

  .v8-dock-context-item:disabled {
    opacity: 0.5;
    cursor: default;
  }

  .v8-dock-context-check {
    width: 16px;
    flex: 0 0 16px;
    text-align: center;
    color: rgba(255,255,255,0.96);
    font-weight: 800;
  }

  .v8-dock-context-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .v8-dock-context-meta {
    color: rgba(255,255,255,0.58);
    font-size: 0.76rem;
  }
