/* MD_FILE_VERSION: 1.0.003 | CHANGED: 2026-09-28 18-58-00 */
/* Copyright Information
 * =====================
 * Copyright (c) 2026, The Scripps Research Institute
 * Developed by Dr. Gennadii Grabovyi
 */

.md-structure-drag-source{
  cursor:grab;
}

.md-structure-drag-source:active,
.md-structure-dragging{
  cursor:grabbing;
}

.md-structure-dragging{
  opacity:.58;
}

#mainGrid.md-grid-cards .md-structure-drag-source.md-structure-copy-selected{
  background:var(--hl-selected) !important;
  outline:2px solid color-mix(in srgb, var(--accent) 68%, transparent);
  outline-offset:-2px;
}

.md-structure-drop-target{
  position:relative;
}

body.md-structure-drag-active .md-structure-drop-target:not(.md-ketcher-drop-overlay){
  outline:2px dashed color-mix(in srgb, var(--green, #168a43) 58%, transparent);
  outline-offset:-4px;
}

body.md-structure-drag-active .md-structure-drop-target:not(.md-ketcher-drop-overlay)::after{
  content:attr(data-md-structure-drop-label);
  position:absolute;
  inset:6px;
  z-index:12;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:8px;
  border-radius:8px;
  background:color-mix(in srgb, var(--panel, #fff) 90%, transparent);
  color:var(--text, #18202a);
  font-size:13px;
  font-weight:700;
  text-align:center;
  pointer-events:none;
  opacity:0;
  transition:opacity .12s ease;
}

body.md-structure-drag-active .md-structure-drop-target.md-structure-drop-over:not(.md-ketcher-drop-overlay)::after{
  opacity:1;
}

body.md-structure-drag-active .md-structure-drop-target.md-structure-drop-over:not(.md-ketcher-drop-overlay){
  outline-color:var(--green, #168a43);
  box-shadow:inset 0 0 0 3px color-mix(in srgb, var(--green, #168a43) 22%, transparent);
}

.md-ketcher-drop-host{
  position:relative !important;
}

.md-ketcher-drop-overlay{
  position:absolute;
  inset:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:center;
  border:3px dashed var(--green, #168a43);
  border-radius:8px;
  background:color-mix(in srgb, var(--panel, #fff) 82%, transparent);
  color:var(--green, #168a43);
  font-size:18px;
  font-weight:750;
  text-align:center;
  cursor:copy;
  opacity:0;
  pointer-events:none;
  transition:opacity .12s ease;
}

body.md-structure-drag-active .md-ketcher-drop-overlay{
  opacity:1;
  pointer-events:auto;
}

.md-ketcher-drop-overlay.md-structure-drop-over{
  background:color-mix(in srgb, var(--green, #168a43) 18%, var(--panel, #fff));
  box-shadow:inset 0 0 0 4px color-mix(in srgb, var(--green, #168a43) 20%, transparent);
}

@media (prefers-reduced-motion: reduce){
  body.md-structure-drag-active .md-structure-drop-target::after{
    transition:none;
  }
}
