﻿.input-row {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.condition-btn-wrapper {
    padding: 0.8rem 0;
    position: relative;
    display: flex; 
    width: 100%;
    gap: 1rem;
}

.input-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

textarea {
    width: 100%;
    height: 60px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    resize: vertical;
    font-family: monospace;
    box-sizing: border-box;
    padding-right: 36px;
}

.clear-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f1f1f1;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    opacity: 0.7;
}

.clear-btn:hover {
    opacity: 1;
    background: #e0e0e0;
}

.btn-condition {
    padding: 3px 8px;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn-condition:hover {
    color: #333333;
    border-color: #333333;
}

#conditionPanel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    padding: 15px 30px 15px 15px;
    z-index: 102;
    width: 100%;
}

.panel-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-close:hover {
    color: #333;
}

.operator-row {
    max-height: 35rem;
    overflow-y: auto;
}

.operator-row,
.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.condition-btn {
    background-color: whitesmoke;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
}

.condition-btn:hover {
    color: var(--main-color);
    border-color: var(--main-color);
}

.btn-condition.active {
    color: var(--main-color);
    border-color: var(--main-color);
}

.factor-type-switch {
    display: flex;
    flex-wrap: wrap;
    /* margin-bottom: 10px; */
    padding: 1rem 0;
    gap: 5px;
}

.type-btn {
    padding: 5px;
    cursor: pointer;
    border-bottom: 1px solid #555;
}

.type-btn.active {
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color);
}

.fillter-fields {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 1rem;
}

.filter-item {
    display: flex;
    align-items: center;
}

.filter-item label {
    white-space: nowrap;
}

th.sortable.active-sort {
    color: red !important;
}

/* 回测 */

.form-group {
    margin-bottom: 10px;
}

.param-type {
    font-weight: 600;
    font-size: 14px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: normal;
    font-size: 14px;
}

.rise-input-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inline-inputs {
    display: flex;
    flex-wrap: wrap; 
    gap: 16px;
}

.input-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; 
    min-width: 0; 
}

.input-item label,
.input-item .unit {
    font-size: 14px;
    color: #555;
}

input[type="text"] {
    width: 180px;
    padding: 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

input[type="number"] {
    width: 50px;
    padding: 3px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}
input[type="number"]:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}
.strategy-tag {
    display: inline-block;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.filter-tip {
    width: 14px;
    height: 14px;
}