/* ========== 量化数值表格样式（已整理） ========== */

/* 1. 双栏布局容器 */
.quant-value-dual {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}

.quant-value-wrapper {
    flex: 1;
    min-width: 400px;
    background: #0e0e18;
    border-radius: 16px;
    overflow-x: auto;
    border: 1px solid #2c2c3e;
}

/* 2. 表格基础样式 */
.quant-value-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.5;
    background: #0e0e18;
    color: #3bc0fc;
}

.quant-value-table th,
.quant-value-table td {
    border: 1px solid #2c2c3e;
    padding: 6px 8px;
    vertical-align: middle;
    white-space: normal;
    word-break: break-word;
}

/* 3. 表头样式 */
.quant-value-table th {
    color: #ffaa66 !important;
    background: #232333;
    padding: 8px 10px;
    text-align: center;
}

.quant-value-table th.th-left {
    text-align: left;
}

/* 4. 单元格角色样式 */
.quant-value-table .group-cell {
    color: #9bff9b;
    text-align: left;
    background: #0e0e18;
    font-weight: bold;
}

.quant-value-table .param-key {
    color: #9bff9b;
    text-align: left;
}

.quant-value-table .current-value {
    color: #e0e0e0;
    text-align: center;
}

.na-value {
    color: #888888;
    text-align: center;
    font-style: italic;
}

/* 5. 组计 / 总分行样式（合并重复的 status 规则） */
.quant-value-table .group-summary-label,
.quant-value-table .total-summary-label {
    color: #ffaa66;
    background: #232333;
}

.quant-value-table .group-summary-cell,
.quant-value-table .total-summary-cell {
    background: #232333;
    text-align: center;
}

.quant-value-table .group-summary-cell .status-positive,
.quant-value-table .total-summary-cell .status-positive {
    color: #2ecc71;
}

.quant-value-table .group-summary-cell .status-negative,
.quant-value-table .total-summary-cell .status-negative {
    color: #e74c3c;
}

/* 得分正数单元格背景色（仅做空表格） */
.quant-value-table td.current-value.has-positive-bg {
    background-color: #024863;
}

/* 6. 表格标题样式 */
.quant-value-table caption {
    caption-side: top;
    background: #1e1e2c;
    padding: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffaa66;
    text-align: left;
    border-bottom: 1px solid #2c2c3e;
}

.quant-value-table caption .mode-red {
    color: #fa0000 !important;
}

/* 7. 列宽控制 */
.quant-value-table {
    width: 100%;
    table-layout: auto;   /* 改为 auto，让未指定宽度的列自动分配 */
}
.quant-value-table thead tr:nth-child(2) th:nth-child(1) { width: 10%; }
.quant-value-table thead tr:nth-child(2) th:nth-child(2) { width: 18%; }
.quant-value-table thead tr:nth-child(2) th:nth-child(3) { width: 26%; }


/* 8. 分隔线样式 */
.quant-value-table tr.separator-row td {
    border-top: 3px solid #fa591b;
    padding: 0;
    height: 3px;
    line-height: 0;
    font-size: 0;
}

.quant-value-table .table-title-row th {
    background: #1e1e2c;
    padding: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffaa66;
    text-align: left;
    border-bottom: 1px solid #2c2c3e;
}








/* ========== 冗余区域（已合并或保留，原规则不删除） ========== */
/* 冗余：原始重复的 .status-positive 块（已合并到上方，保留备用）
.quant-value-table .group-summary-cell .status-positive {
    color: #2ecc71;
}
.quant-value-table .total-summary-cell .status-positive {
    color: #2ecc71;
}
*/

/* 冗余：原始重复的 .status-negative 块（已合并到上方，保留备用）
.quant-value-table .group-summary-cell .status-negative {
    color: #e74c3c !important;
}
.quant-value-table .total-summary-cell .status-negative {
    color: #e74c3c !important;
}
*/

.quant-value-table .macro-value {
    color: #9bff9b;
    background: #232333;
    text-align: center !important;
}













