.bim-tab {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: transparent;
    color: var(--bim-tab-text, #e6e6e6);
}

.bim-tab__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.bim-tab__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    /* 恢复原样式：上下4px，左右0 */
    padding: 4px 0;
    border: none;
    border-radius: 0; /* 恢复直角 */
    background: transparent;
    color: var(--bim-tab-text, #e6e6e6);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    border-bottom: 4px solid transparent;
}

.bim-tab__item:hover {
    color: var(--bim-tab-text, #e6e6e6);
    background-color: var(--bim-tab-hover-bg, rgba(255, 255, 255, 0.05));
    border-bottom-color: var(--bim-tab-hover-bg, rgba(255, 255, 255, 0.15));
}

/* Active 状态 */
.bim-tab__item.is-active {
    color: var(--bim-tab-text-active, #4da3ff);
    border-bottom-color: var(--bim-tab-text-active, #4da3ff);
}

.bim-tab__item.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bim-tab__icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bim-tab-icon, currentColor);
}

.bim-tab__icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.bim-tab__title {
    white-space: nowrap;
}

.bim-tab__content {
    flex: 1;
    display: flex;
    position: relative;
    min-height: 0; /* 防止撑开导致外层滚动 */
    overflow: hidden; /* 限制滚动只在内部面板 */
}

.bim-tab__panel {
    display: none;
    width: 100%;
    height: 100%;
    flex: 1;
}

.bim-tab__panel.is-active {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 构件树弹窗内的内容布局：tab+搜索固定，树区域滚动 */
.construct-tab__container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.construct-tab__panel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* 允许内部滚动 */
    overflow: hidden;
}

.construct-tab__panel-content .bim-tree {
    flex: 1;
}
