.root {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.description {
    margin: 0;
    line-height: 1.5;
}

.searchHint {
    margin: -4px 0 0;
    font-size: 12px;
    line-height: 1.4;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light, var(--border, #f0f0f0));
}

.toolbarActions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 4px;
    margin-inline-start: -8px;
}

.counter {
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.4;
}

.search {
    width: 100%;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: min(52vh, 420px);
    overflow-y: auto;
    padding: 2px 4px 2px 0;
}

@media (max-width: 575px) {
    .list {
        max-height: min(60vh, 480px);
    }
}

.columnItem {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 6px 10px 6px 4px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;

    &:hover {
        background-color: var(--gray-100, #f5f5f5);
        border-color: var(--border-light, var(--border, #f0f0f0));
    }

    :global(.ant-checkbox-wrapper) {
        flex: 1;
        min-width: 0;
        align-items: center;
        line-height: 1.4;
    }

    :global(.ant-checkbox + span) {
        padding-inline-start: 8px;
    }
}

.locked {
    background-color: color-mix(in srgb, var(--gray-100, #f5f5f5) 80%, transparent);
    border-color: var(--border-light, var(--border, #f0f0f0));
}

.dragging {
    opacity: 0.92;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--text-primary, #111) 12%, transparent);
    border-color: var(--border, #d9d9d9);
    background: var(--surface, #fff);
    z-index: 2;
}

.dndDisabled {
    .dragHandle {
        opacity: 0.4;
        cursor: not-allowed;
    }
}

.dragHandle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: -6px 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted, #6b7280);
    cursor: grab;

    &:hover:not(:disabled) {
        color: var(--text-primary, #111);
        background: color-mix(in srgb, var(--text-primary, #111) 6%, transparent);
    }

    &:active:not(:disabled) {
        cursor: grabbing;
    }

    &:disabled {
        cursor: not-allowed;
    }
}

.emptySearch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 24px 8px;
    text-align: center;
}

.srOnly {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
