.tree {
    background: white;
    border-radius: 8px;
    padding: 16px;
}

.tree-loading {
    padding: 20px;
    color: #777;
    text-align: center;
}

.tree-node {
    margin-top: 4px;
}

.tree-row {
    display: flex;
    align-items: center;
    min-height: 42px;
    gap: 8px;

    padding: 4px 8px;

    border: 1px solid #ddd;
    border-radius: 5px;
}

.tree-row:hover {
    background: #f7f7f7;
}

.tree-toggle {
    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.tree-toggle.empty {
    cursor: default;
}

.tree-name {
    flex: 1;
    min-width: 150px;
    font-weight: 500;
}

.tree-type {
    min-width: 140px;

    color: #777;
    font-size: 12px;
}

.tree-actions {
    display: flex;
    gap: 4px;
}

.tree-actions button {
    min-width: 30px;
    height: 28px;

    border: 1px solid #ccc;
    border-radius: 4px;

    background: white;
    cursor: pointer;
}

.tree-actions button:hover {
    background: #eee;
}

.tree-children {
    margin-left: 2em;
    padding-left: 8px;

    border-left: 1px solid #ccc;
}

.tree-children.collapsed {
    display: none;
}

.tree-name-input {
    flex: 1;
    min-width: 150px;

    padding: 6px 8px;

    border: 1px solid #aaa;
    border-radius: 4px;
}

.tree-type-input {
    min-width: 140px;

    padding: 6px;

    border: 1px solid #aaa;
    border-radius: 4px;
}

.new-node > .tree-row {
    background: #fafafa;
    border-style: dashed;
}