/**
 * For the correct positioning of the placeholder element, the dnd-list and
 * it's children must have position: relative
 */
ul[dnd-list].simple-dnd-list,
ul[dnd-list].simple-dnd-list > li {
    position: relative;
}

/**
 * The dnd-list should always have a min-height,
 * otherwise you can't drop to it once it's empty
 */
ul[dnd-list].simple-dnd-list {
    min-height: 42px;
    padding-left: 0px;
    list-style-type: none;
}

/**
 * The dndDraggingSource class will be applied to
 * the source element of a drag operation. It makes
 * sense to hide it to give the user the feeling
 * that he's actually moving it.
 */
ul[dnd-list].simple-dnd-list .dndDraggingSource {
    display: none;
}

/**
 * An element with .dndPlaceholder class will be
 * added to the dnd-list while the user is dragging
 * over it.
 */
ul[dnd-list].simple-dnd-list .dndPlaceholder {
    display: block;
    background-color: #ddd;
    min-height: 20px;
}

/**
 * The dnd-lists's child elements currently MUST have
 * position: relative. Otherwise we can not determine
 * whether the mouse pointer is in the upper or lower
 * half of the element we are dragging over. In other
 * browsers we can use event.offsetY for this.
 */
ul[dnd-list].simple-dnd-list li {
    background-color: #fff;
    border: 1px solid #ddd;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    display: block;
    padding: 4px 10px;
    margin-bottom: -1px;
}

/**
 * Show selected elements in green
 */
ul[dnd-list].simple-dnd-list li.selected {
    background-color: #dff0d8;
    color: #3c763d;
}

/**
 * Handle positioning
 */
.simple-dnd-list .handle {
    cursor: move;
    position: absolute;
    top: 18px;
}

.simple-dnd-list .name {
    margin-left: 20px;
}
