.cc-arrange-handle {
  position: absolute;
  top: 6px;
  inset-inline-start: 6px;
  z-index: 6;
  display: none;
  width: 22px;
  height: 26px;
  border: 1px solid rgba(20, 63, 92, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(15, 47, 69, 0.18);
  cursor: grab;
  touch-action: none;
}

.cc-arrange-handle::before {
  content: '';
  position: absolute;
  inset: 5px 4px;
  border-radius: 3px;
  background: repeating-linear-gradient(180deg, rgba(20, 63, 92, 0.55) 0 2px, transparent 2px 6px);
}

.cc-arrange-handle:active {
  cursor: grabbing;
}

.cc-arrange-handle:focus-visible {
  outline: 3px solid rgba(20, 63, 92, 0.35);
  outline-offset: 2px;
}

.is-arranging .cc-arrange-handle {
  display: block;
}

[data-arrange-id] {
  position: relative;
}

[data-arrange-id].is-dragging {
  opacity: 0.5;
}

[data-arrange-id].is-drop-before::before,
[data-arrange-id].is-drop-after::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  z-index: 8;
  height: 4px;
  border-radius: 999px;
  background: var(--brand, #143f5c);
  box-shadow: 0 0 0 3px rgba(20, 63, 92, 0.16);
  pointer-events: none;
}

[data-arrange-id].is-drop-before::before {
  top: -3px;
}

[data-arrange-id].is-drop-after::after {
  bottom: -3px;
}

.is-arranging [data-arrange-id] {
  outline: 1px dashed rgba(20, 63, 92, 0.38);
  outline-offset: 3px;
}

.is-arranging .adm-form-section,
.is-arranging .acc-print-block,
.is-arranging .document-sheet > section,
.is-arranging .document-docx-section {
  padding-inline-start: max(28px, var(--arrange-gutter, 12px));
}

.acc-arrange-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line, #e2e4e5);
  border-radius: 12px;
  background: rgba(20, 63, 92, 0.04);
}

.acc-arrange-toolbar .acc-arrange-hint {
  margin-inline-start: auto;
  color: var(--muted, #5c7383);
  font-size: 0.7rem;
}

.acc-arrange-toolbar .btn.is-active {
  background: rgba(20, 63, 92, 0.1);
  border-color: rgba(20, 63, 92, 0.45);
}

@media print {
  .cc-arrange-handle,
  .acc-arrange-toolbar,
  .document-arrange-bar {
    display: none !important;
  }

  [data-arrange-id] {
    outline: none !important;
  }

  .is-arranging [data-arrange-id] {
    outline: none !important;
    padding-inline-start: 0 !important;
  }
}
