/*
 * 文本对比 / Diff 样式
 * ============================================================================
 * 版权所有 (C) 西安尊云信息科技有限公司，并保留所有权利。
 * 网站地址: http://www.zunyunkeji.com
 * ----------------------------------------------------------------------------
 * 许可声明：未经许可不得将本软件的整体或任何部分用于商业用途及再发布。
 * ============================================================================
 * Author: 缘境 (yvsm@zunyunkeji.com) QQ:316430983 微信：yvsm316
 */

.td-toolbar{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}
.td-check{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:12px;
    color:#666;
    cursor:pointer;
    user-select:none;
}
.td-check input{margin:0;}

.td-inputs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-bottom:12px;
}
.td-pane-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
}
.td-meta{font-size:12px;color:#999;white-space:nowrap;}
.td-area{min-height:260px;}

.td-result-wrap{margin-bottom:4px;}
.td-status{margin:0 0 10px;font-size:12px;line-height:1.6;color:#888;}
.td-status.is-ok{color:#16baaa;}
.td-status.is-err{color:#ff5722;}
.td-legend{display:flex;flex-wrap:wrap;gap:8px;}
.td-leg{
    display:inline-flex;align-items:center;height:22px;padding:0 8px;
    font-size:11px;border:1px solid #eee;background:#fff;color:#666;
}
.td-leg--del{background:#fde8e4;border-color:#f5c6bc;color:#9a3412;}
.td-leg--add{background:#e6f6ef;border-color:#b7e4cf;color:#166534;}
.td-leg--same{background:#f7f8fa;color:#888;}

.td-metrics{margin:0 0 12px;padding-top:10px;}
.td-diff{
    max-height:520px;
    overflow:auto;
    border:1px solid #eee;
    background:#fff;
    font-family:Consolas,Monaco,monospace;
    font-size:12px;
    line-height:1.65;
}
.td-row{
    display:grid;
    grid-template-columns:52px minmax(0,1fr);
    gap:0;
    border-bottom:1px solid #f5f5f5;
}
.td-row:last-child{border-bottom:0;}
.td-num{
    padding:2px 8px;
    text-align:right;
    color:#aaa;
    background:#fafafa;
    border-right:1px solid #f0f0f0;
    user-select:none;
    white-space:nowrap;
}
.td-code{
    padding:2px 10px;
    white-space:pre-wrap;
    word-break:break-word;
    color:#333;
}
.td-row.is-del{background:#fff5f3;}
.td-row.is-del .td-num{background:#fde8e4;color:#9a3412;}
.td-row.is-del .td-code{color:#9a3412;}
.td-row.is-add{background:#f3fbf7;}
.td-row.is-add .td-num{background:#e6f6ef;color:#166534;}
.td-row.is-add .td-code{color:#166534;}
.td-row.is-same .td-code{color:#555;}
.td-prefix{display:inline-block;width:1.2em;font-weight:700;}
.td-empty{
    padding:28px 16px;
    text-align:center;
    color:#999;
    font-size:13px;
}

@media (max-width:960px){
    .td-inputs{grid-template-columns:1fr;}
    .td-toolbar .of-actions{width:100%;}
}
