/**
 * Tree View Spacing Fixes for JSONEditor
 * Fixes line spacing and overlap issues for multiline nodes
 * More targeted approach to avoid excessive spacing between nodes
 */

/* Fix multiline text overlap without changing base spacing */
.jsoneditor .value:not(.empty) {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
}

/* Ensure proper line height for multiline content only */
.jsoneditor .value:not(.empty):not(.url) {
    line-height: 1.3 !important;
}

/* Fix table row height for multiline content */
.jsoneditor div.tree table.tree tr {
    height: auto !important;
}

/* Fix button alignment in tree */
.jsoneditor div.tree button {
    vertical-align: top !important;
}

/* Fix key-value alignment by removing float and ensuring proper alignment */
.jsoneditor .field,
.jsoneditor .value {
    float: none !important;
    display: inline-block !important;
    vertical-align: top !important;
    line-height: 1.4 !important;
}

/* Ensure consistent spacing between key, colon, and value */
.jsoneditor .separator {
    padding: 2px 4px !important;
    vertical-align: top !important;
    display: inline-block !important;
    line-height: 1.4 !important;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .jsoneditor .value:not(.empty) {
        line-height: 1.2 !important;
    }
} 