/* rd_stage3 styles */

#tab_3 .screening-import-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#tab_3 .screening-import-status {
    margin: 8px 0 0;
    color: #4d4d4d;
    line-height: 1.45;
}

#tab_3 .screening-import-factor-list {
    width: 100%;
    min-height: 92px;
    padding: 4px;
    border: 1px solid #a0a0a0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    background: #fff;
}

#tab_3 .screening-import-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(122, 142, 172, 0.35);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.84);
}

#tab_3 .screening-import-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

#tab_3 .screening-import-table th,
#tab_3 .screening-import-table td {
    padding: 7px 8px;
    border-bottom: 1px solid rgba(122, 142, 172, 0.25);
    font-size: 12px;
    text-align: left;
    vertical-align: top;
}

#tab_3 .screening-import-table th {
    background: rgba(0, 58, 64, 0.09);
    font-weight: 600;
    white-space: nowrap;
}

#tab_3 .screening-import-table tbody tr {
    cursor: pointer;
}

#tab_3 .screening-import-table tbody tr:hover {
    background: rgba(0, 81, 89, 0.08);
}

#tab_3 .screening-import-table tbody tr.is-selected {
    background: rgba(0, 81, 89, 0.15);
}

#tab_3 .screening-import-table-empty {
    color: #666666;
    font-style: italic;
}

#tab_3 .screening-import-details {
    min-height: 150px;
    resize: vertical;
    margin-top: 8px;
}

#tab_3 .rules-text {
    font-size: 12px;
    color: #4d4d4d;
    white-space: pre-wrap;
    margin-top: 5px;
    line-height: 1.4;
}

#tab_3 .stage3-result-box {
    min-height: 280px;
}

#tab_3 .stage3-effects-box {
    min-height: 280px;
}

#tab_3 .stage3-secondary-box {
    margin-top: 10px;
}

#tab_3 .stage3-secondary-box-text {
    flex: 2;
    display: flex;
    flex-direction: column;
}

#tab_3 .stage3-secondary-box-text textarea {
    flex: 1;
    min-height: 280px;
}

#tab_3 .stage3-secondary-box .stage3-secondary-heading {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #003A40;
}

#tab_3 .stage3-transfer-row {
    display: flex;
    gap: 10px 16px;
    align-items: center;
    flex-wrap: wrap;
}

#tab_3 #stage3_cumulative_effect {
    width: 90px;
}

#tab_3 #screening_import_sheet {
    min-width: 220px;
}

#tab_3 .stage3-transfer-status {
    margin-top: 8px;
    color: #2f855a;
    font-size: 12px;
}

#tab_3 .stage3-pareto-hidden {
    display: none;
}

#tab_3 .stage3-runs-grid-dual {
    grid-template-columns: 120px 1fr 1fr 1fr 1fr;
}

@media (max-width: 1100px) {
    #tab_3 .bottom-split {
        flex-direction: column;
    }

    #tab_3 .canvas-container {
        min-width: 100%;
    }
}
