/*
 * jquery.nestable has no bundled stylesheet. These Bootstrap 5-compatible
 * rules replace the Nestable styles that were previously supplied by Ace.
 */
.dd,
.dd-list {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dd {
    max-width: 600px;
    line-height: 1.25;
}

.dd-list .dd-list {
    padding-left: 2rem;
}

.dd-collapsed .dd-list {
    display: none;
}

.dd-item,
.dd-placeholder,
.dd-empty {
    display: block;
    position: relative;
    min-height: 2.5rem;
    margin: 0;
    padding: 0;
}

.dd-handle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.5rem;
    margin: 0.375rem 0;
    padding: 0.625rem 0.75rem;
    color: var(--bs-secondary-color);
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    background-color: var(--bs-tertiary-bg);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    cursor: grab;
}

.dd-image {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

.dd-image > img {
    display: block;
    max-width: 100%;
    object-fit: contain;
}

.dd-image > i {
    font-size: 1.5rem;
    line-height: 1;
}

.dd-name {
    min-width: 0;
}

.dd-description {
    margin-left: auto;
}

.dd-name + .dd-status {
    margin-left: auto;
}

.dd-handle:hover {
    color: var(--bs-primary);
    background-color: var(--bs-secondary-bg);
    border-color: var(--bs-secondary-border-subtle);
}

.dd-item > button {
    position: relative;
    top: 4px;
    left: 1px;
    z-index: 1;
    float: left;
    width: 24px;
    height: 24px;
    margin: 5px 1px 5px 5px;
    padding: 0;
    overflow: hidden;
    color: var(--bs-secondary-color);
    font-size: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.dd-item > button::before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    content: "";
    background-color: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
}

.dd-item > button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 10px;
    content: "";
    background-color: currentColor;
    border-radius: 1px;
    transform: translate(-50%, -50%);
}

.dd-item > button[data-action="collapse"]::after {
    display: none;
}

.dd-placeholder,
.dd-empty {
    min-height: 2.75rem;
    margin: 0.375rem 0;
    background-color: var(--bs-secondary-bg);
    border: 2px dashed var(--bs-secondary-border-subtle);
    border-radius: var(--bs-border-radius);
}

.dd-empty {
    background-color: var(--bs-tertiary-bg);
    border-style: solid;
}

.dd-dragel {
    position: absolute;
    z-index: 1055;
    pointer-events: none;
    opacity: 0.85;
}

.dd-dragel > .dd-item > .dd-handle {
    color: var(--bs-primary);
    background-color: var(--bs-primary-bg-subtle);
    border-left: 2px solid var(--bs-primary);
    box-shadow: var(--bs-box-shadow-sm);
}
