/* 指標表格樣式 */
.indicators-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    background-color: #fff;
}

.indicators-table th,
.indicators-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.indicators-table th {
    background-color: #f7f9fb;
    font-weight: 600;
    color: #37474f;
    position: sticky;
    top: 0;
    z-index: 10;
}

.indicators-table tr:hover {
    background-color: #f5f9ff;
}

.indicators-table .indicator-name {
    font-weight: 600;
    color: #000000;
}

.indicators-table .indicator-value {
    white-space: nowrap;
}

/* 狀態徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.status-badge.normal {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.above {
    background-color: #fff8e1;
    color: #f57f17;
}

.status-badge.below {
    background-color: #ffebee;
    color: #c62828;
}

.status-badge.na {
    background-color: #f5f5f5;
    color: #757575;
}

/* 趨勢樣式 */
.trend {
    display: inline-block;
    margin: 0 4px;
    font-weight: bold;
}

.trend.up {
    color: #2e7d32;
}

.trend.down {
    color: #c62828;
}

.trend.neutral {
    color: #616161;
}

.change {
    font-size: 0.85rem;
    color: #616161;
}

/* 高級指標頁面的類別按鈕和過濾功能樣式 */
.indicator-categories {
    margin-bottom: 25px;
}

.category-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    background-color: #f5f7fa;
    color: #37474f;
    border: 1px solid #cfd8dc;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: #e3f2fd;
    border-color: #bbdefb;
}

.category-btn.active {
    background-color: #1a5495;
    color: white;
    border-color: #1a5495;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 為高級指標表格添加額外的欄位樣式 */
#advanced-indicators-table .category {
    font-size: 0.85rem;
    color: #546e7a;
}

@media (max-width: 768px) {
    .category-toggle {
        justify-content: center;
    }
    
    #advanced-indicators-table td.category:before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 5px;
    }
} 