.tools-info{margin-bottom:0px !important;}
.layui-tab-content {
    padding: 0.5rem 0.75rem 0.75rem 0.75rem;
}
textarea{
    resize: none !important;
}
.opts{
    margin-top: 0.5rem;
}
.diffwrap{
    margin-top: 0.5rem;
}
.diffcontainer{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 0.5rem;
}
.diffleft, .diffright{
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.diffhead{
    background: #f5f5f5;
    padding: 8px 12px;
    font-weight: bold;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
}
.difflines .row{
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 6px;
    align-items: stretch;
}
.difflines pre{
    margin: 0;
    padding: 6px 8px;
    background: #fafafa;
    border: 1px solid #eee;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 28px;
    line-height: 1.5;
}
.difflines .row.eq pre{
    background: #f9f9f9;
}
.difflines .row.add pre:last-child{
    background: #e8f5e9;
    border-color: #c8e6c9;
}
.difflines .row.del pre:first-child{
    background: #ffebee;
    border-color: #ffcdd2;
}
.difflines .row.chg pre{
    background: #fff8e1;
    border-color: #ffe0b2;
}
.difflines pre mark.cadd{
    background: #c8e6c9;
    color: #1b5e20;
}
.difflines pre mark.cdel{
    background: #ffcdd2;
    color: #b71c1c;
}
.diffmeta{
    margin: 8px 0;
    color: #888;
}
.diffmeta em{ margin-right: 12px; }
.diffmeta .meta-add{ color: #4CAF50; }
.diffmeta .meta-del{ color: #f44336; }
.diffmeta .meta-chg{ color: #ff9800; }
.txtpaddsetup{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.txtpaddsetup span { font-size: 14px;float: left;padding-bottom: 10px;}
.txtpaddsetup textarea{
    max-height: 500px;
    overflow: auto;    border: 1px solid #ddd;
}
.divbuts{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.divbuts span{
    display: inline-block;
    background: #409EFF;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}
.divbuts span:hover{
    background: #66b1ff;
}
.divbuts span.clear{ background: #f56c6c; }
.divbuts span.clear:hover{ background: #f78989; }
.divbuts span.swap{ background: #e6a23c; }
.divbuts span.swap:hover{ background: #ebb563; }
.divbuts span.huanhang{ background: #67c23a; }
.divbuts span.huanhang:hover{ background: #85ce61; }
.difflines .ln{
    background: #eef2f3;
    border: 1px solid #e2e8ea;
    color: #666;
    text-align: center;
    padding: 6px 4px;
    min-width: 40px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

@media screen and (max-width: 610px){
    .diffcontainer{ grid-template-columns: 1fr; }
    .difflines .row{ grid-template-columns: 40px 1fr; }
    .txtpaddsetup{ grid-template-columns: 1fr; }
} 

/* diffview (table.diff) styles */
.diffwrap{
    margin-top: 0.5rem;
    overflow: auto;
}
.diffwrap table.diff{
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #e0e0e0;
    background: #fff;
}
.diffwrap table.diff thead th{
  
    color: #666;
    font-weight: bold;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}
.diffwrap table.diff thead th.texttitle{
    text-align: left;
}
.diffwrap table.diff thead th:first-child{ width: 48px; }
.diffwrap table.diff tbody th{
    width: 48px;height: 35px;
    color: #666;font-weight: normal;
    border-right: 1px solid #e2e8ea;
    border-bottom: 1px solid #eee;
    text-align: right;
    padding: 6px 8px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.diffwrap table.diff tbody td{
    padding: 6px 8px;height: 35px;
    border-bottom: 1px solid #eee;
    white-space: pre-wrap;
    word-break: break-word;
    background: #fafafa;
}
.diffwrap table.diff tbody tr{
     height: 35px;
   
}

/* states */
.diffwrap table.diff tbody td.equal{ background: none;    color: #333; }
.diffwrap table.diff tbody td.insert{ background: #e8f5e9; border-left: 1px solid #c8e6c9; border-right: 1px solid #c8e6c9; }
.diffwrap table.diff tbody td.delete{ background: #ffebee; border-left: 1px solid #ffcdd2; border-right: 1px solid #ffcdd2; }
.diffwrap table.diff tbody td.replace{ background: #fff8e1; border-left: 1px solid #ffe0b2; border-right: 1px solid #ffe0b2; }
.diffwrap table.diff tbody td.skip{ background: #fafafa; color: #999; text-align: center; }

/* inline mode compatibility */
.diffwrap table.diff.inlinediff tbody th{ width: 48px; }

@media screen and (max-width: 610px){
    .diffwrap{ overflow-x: auto; }
    .diffwrap table.diff{ min-width: 720px; }
} 

.clearwb{color: #666;font-size: 12px;margin-left: 10px;}