/**
 * 右側面板上下分割佈局
 * Author: Claude
 * Date: 2026-01-21
 */

.right-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--quote-panel-surface, #ffffff);
    overflow: visible;  /* 允許收合按鈕延伸到面板外 */
}

.right-panel.hidden {
    display: none;
}

/* 控制列 */
.right-panel .panel-controls {
    position: relative;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 16px;
    border-bottom: 1px solid var(--quote-table-border, #E8E5E0);
    background: var(--quote-table-header-bg, #FAF9F6);
    flex-shrink: 0;
}

/* 上半部：股票表格 */
.stock-table-panel-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 200px;
    border-bottom: 1px solid var(--quote-table-border, #E8E5E0);
}

/* 垂直分割器 */
.vertical-splitter {
    height: 6px;
    background: var(--quote-splitter-bg, #F5F3EE);
    cursor: row-resize;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
    transition: background 0.2s ease;
}

.vertical-splitter:hover {
    background: rgba(249, 115, 22, 0.15);
}

.vertical-splitter:active {
    background: rgba(249, 115, 22, 0.25);
}

/* 下半部：走勢圖 */
.chart-panel-bottom {
    flex: 1;
    overflow: hidden;
    min-height: 200px;
    background: var(--quote-panel-surface, #ffffff);
}

/* 拖曳中狀態 */
.right-panel.resizing {
    user-select: none;
}

.right-panel.resizing * {
    cursor: row-resize !important;
}

