﻿.multi-panel-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    height: auto;
}

.panel {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    background: #fff;
    min-width: 250px;
    flex: 1 1 30%;
    transition: width 0.3s ease, min-width 0.3s ease;
    overflow: hidden; /* Keep this to clip content properly */
}

    .panel.collapsed {
        min-width: 40px;
        width: 40px;
        flex: 0 0 40px;
    }

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 5px 10px;
    border-bottom: 1px solid #ddd;
    font-weight: 500;
    flex-shrink: 0;
}

.collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.panel > *:not(.panel-header) {
    flex-grow: 1;
    overflow: visible; /* Allow content to display naturally */
    width: 100%;
}

.three-panel-grid {
    display: grid;
    grid-template-columns: minmax(220px, 22%) 1fr minmax(260px, 20%);
    height: 100vh; /* REQUIRED */
    max-height: 100vh;
    overflow: hidden; /* prevent outer scroll */
}

/* All panels */
.tree-panel > *,
.detail-panel > *,
.docs-panel > * {
    min-height: 0;
}

.panel-scroll {
    height: 100%;
    overflow-y: auto;
    min-height: 0;
}

/* Optional separators */
.tree-panel {
    border-right: 1px solid #e0e0e0;
}

.docs-panel {
    border-left: 1px solid #e0e0e0;
}

/* Optional padding */
.detail-panel {
    padding: 0 12px;
}

/* Optional separators */
.tree-panel {
    border-right: 1px solid #e0e0e0;
}

.docs-panel {
    border-left: 1px solid #e0e0e0;
}

/* Optional padding */
.detail-panel {
    padding: 0 12px;
}

/* Optional separators */
.tree-panel {
    border-right: 1px solid #e0e0e0;
}

.docs-panel {
    border-left: 1px solid #e0e0e0;
}

/* Optional padding */
.detail-panel {
    padding: 0 12px;
}


.resizer {
    width: 5px; /* thin draggable line */
    cursor: col-resize;
    background-color: rgba(0,0,0,0.1);
    z-index: 1;
}


