body, html {
    margin: 0;
    height: 100%;
}
.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}
.top {
    flex: 1;
    overflow: auto;
}
.bottom {
    flex: 1;
    display: flex;
}
.left, .right {
    flex: 1;
    border: 1px solid #ccc;
    box-sizing: border-box;
    position: relative;
}
.tv-chart-container {
    position: absolute;
    width: 100%;
    height: 100%;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}
th, td {
    border: 1px solid #aaa;
    padding: 4px;
}
th {
    background-color: #eee;
}
td.pair-cell {
    cursor: pointer;
    color: blue;
}
td.pair-cell:hover {
    background-color: #d0ebff;
}

/* 凍結表格標題 */
th {
    position: sticky;
    top: 0;
    background-color: #fff; /* 設置背景色，避免凍結後標題區塊透明 */
    z-index: 1; /* 確保標題在其他內容上方 */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1); /* 增加陰影效果讓標題區分於內容 */
}

/* 可選：為標題添加些微的背景色 */
th {
    background-color: #f5f5f5;
}

.sort-icon {
    font-size: 0.8rem;
    color: #10b981; /* Tailwind 的 green-500 */
    margin-left: 5px;
}

