/* ============ 功率补偿计算页专属样式 ============ */
        /* 功率补偿页面布局 */
        .comp-row-first .section {
            height: auto;
            min-height: 200px;
        }
        .comp-row-second .section {
            height: 300px;
        }
        .comp-row-third .section {
            height: 320px;
            overflow: hidden;
        }
        /* 功率补偿计算区域自适应 */
        .comp-row-third .section:last-child {
            height: auto;
            min-height: 320px;
        }
        /* 机台历史数据表格 */
        #compDataTable table {
            width: 100%;
            border-collapse: collapse;
            font-size: 11px;
            table-layout: auto;
        }
        #compDataTable th, #compDataTable td {
            border: 1px solid #ddd;
            padding: 4px 6px;
            text-align: center;
            white-space: nowrap;
        }
        #compDataTable th {
            background-color: #3498db;
            color: white;
            position: sticky; top:0;
        }
        /* 数据选择列表表格 */
        #selectTable {
            width: 100%;
            border-collapse: collapse;
            font-size: 11px;
            table-layout: fixed;
        }
        #selectTable th, #selectTable td {
            border: 1px solid #ddd;
            padding: 3px 2px;
            text-align: center;
        }
        #selectTable th {
            background-color: #3498db;
            color: white;
            position: sticky; top:0;
        }
        .col-check { width: 5%; }
        .col-id { width: 10%; }
        .col-furnace { width: 8%; }
        .col-batch { width: 10%; }
        .col-date { width: 15%; }
        .col-delta { width: 13%; }
        .result-box {
            padding: 8px;
            background-color: #ecf0f1;
            border-radius: 6px;
            margin-top: 10px;
        }
        .result-item {
            margin: 8px 0;
            font-size: 13px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .result-item label {
            width: 100px;
            font-weight: bold;
            color: #2c3e50;
        }
        .result-item input {
            flex: 1;
            min-width: 100px;
        }
        .highlight {
            color: #e74c3c;
            font-weight: bold;
        }
        .highlight-green {
            color: #27ae60;
            font-weight: bold;
        }
        /* ============ 功率补偿计算区域 ============ */
        .calc-config {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
            flex-shrink: 0;
        }
        .calc-label {
            font-weight: bold;
            color: #2c3e50;
            white-space: nowrap;
        }
        .calc-config input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        .calc-config input:focus {
            outline: none;
            border-color: #3498db;
        }
        .calc-body {
            display: flex;
            gap: 16px;
            align-items: stretch;
            flex: 1;
            min-height: 180px;
        }
        .calc-column {
            flex: 1;
            display: flex;
            flex-direction: column;
            min-height: 0;
        }
        .calc-col-title {
            text-align: center;
            font-weight: bold;
            color: #2c3e50;
            padding: 6px 0;
            background: #ecf0f1;
            border-radius: 4px 4px 0 0;
            font-size: 13px;
        }
        .calc-textarea {
            flex: 1;
            min-height: 0;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 0 0 4px 4px;
            resize: vertical;
            font-family: monospace;
            font-size: 13px;
            line-height: 1.6;
            overflow-y: auto;
        }
        .calc-textarea::placeholder {
            color: #aaa;
            font-size: 13px;
            font-family: inherit;
            text-align: center;
            line-height: 1.8;
        }
        .calc-textarea:focus {
            outline: none;
            border-color: #3498db;
        }
        .calc-action {
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 100px;
        }
        .calc-action .btn {
            padding: 12px 20px;
        }
        /* 只读结果区：与初始值输入区共用 .calc-textarea 控件，仅以浅灰底色区分不可编辑 */
        .calc-textarea[readonly] {
            background-color: #f9f9f9;
            color: #27ae60;
            font-weight: bold;
            cursor: default;
        }
        #chart-container {
            width: 100%;
            flex: 1;
            height: auto;
            position: relative;
        }
        /* ============ 拟合曲线设置区域 ============ */
        .fit-top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            gap: 12px;
            flex-wrap: wrap;
        }
        .fit-type-group {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 13px;
        }
        .fit-type-label {
            font-weight: bold;
            color: #2c3e50;
            white-space: nowrap;
        }
        .fit-type-option {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            padding: 4px 8px;
            border-radius: 4px;
            transition: background-color 0.15s;
            user-select: none;
        }
        .fit-type-option:hover {
            background-color: #ecf0f1;
        }
        .fit-type-option input[type="radio"] {
            width: 14px;
            height: 14px;
            margin: 0;
            cursor: pointer;
            accent-color: #3498db;
        }
        .fit-type-option input[type="radio"]:checked + .fit-type-text {
            color: #3498db;
            font-weight: bold;
        }
        .fit-type-text {
            color: #2c3e50;
        }
        tr.excluded {
            background-color: #ffebee !important;
            color: #b71c1c;
        }
        #compDataTable tbody tr:hover {
            background-color: #d5e8f0;
        }
        #compDataTable tbody tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        #compDataTable tbody tr:nth-child(even):hover {
            background-color: #d5e8f0;
        }
        #selectTable tbody tr:hover {
            background-color: #d5e8f0;
        }
        #selectTable tbody tr:nth-child(even) {
            background-color: #f9f9f9;
        }
        #selectTable tbody tr:nth-child(even):hover {
            background-color: #d5e8f0;
        }
