body {
    margin-top: 0px !important;
    padding-top: 0px !important;
    margin-bottom: 0px !important;
}

.kit-header {
    height: 32px;
    background-color: white;
    border-bottom: 1px solid #e8e8e8
}

.container {
    display: flex;
    justify-content: left;
    /* 水平居中 */
    /* align-items: center;     垂直居中，如果需要 */
    height: 32px;
    /* 高度设为视口高度，使元素完全居中 */
    /**gap: 10px;*/
}
#container {
    width: 100%;
    transition: all 0.3s ease;
}

/* 与 json-compare 一致：编辑区 46.8vh，toolbar 不计入高度 */
.main-three-part-grid-container .tool-form-text-diff #container.tool-container-fullscreen-layout:not(.fullscreen) {
    height: auto;
    display: flex;
    flex-direction: column;
}

.main-three-part-grid-container .tool-form-text-diff #container.tool-container-fullscreen-layout:not(.fullscreen) > iframe {
    border: none;
    width: 100%;
    height: 46.8vh;
    flex: 0 0 46.8vh;
    min-height: 46.8vh;
}

#container.tool-container-fullscreen-layout > iframe {
    border: none;
    min-height: 0;
}

.tool-form-text-diff.fullscreen #container {
    order: 2;
    flex: 1;
    min-height: 0;
    height: auto !important;
}

.tool-form-text-diff.fullscreen #container > iframe {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
}

.text-diff-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.tool-form-text-diff.fullscreen .text-diff-actions {
    order: 1;
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 8px;
}
  
.item {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 8px;
    padding-right: 8px;
    line-height: 28px;
    font-size: 14.2px;
    font-family: 'Courier New', Courier, monospace;
    font-family: 'Times New Roman', Times, serif;
    font-family: monospace;
    color: #383838;
    background-color: white;
}

.custom-a {
    text-decoration: none;
    color: #383838;
    font-size: .9rem;
}

.custom-a:hover {
    font-weight: bold;
    color: #282828;
}

/**去除左侧的框*/
/* .mergely-margin{ */
/* width:0px; */
/* opacity: 0; */
/* } */
.CodeMirror-gutters {
    padding-left: 20px;
    padding-right: 5px;
    border-right: 1px solid #ddd !important;
    background: #f6f6f6 !important;
}

.CodeMirror-linenumber {
    color: #999;
}

.CodeMirror-code {
    color: #444;
    font-size: 14px;
    line-height: 22px;
}


.merge-button {
    padding-top: 2px !important;
    color: white !important;
    font-weight: bold;
    /* background-color: black !important; */
    /* background-color: green !important; */
    /* background-color: #363636 !important; */
    background-color: black !important;
    /* border:1px; */
    /* background-size: 50%; */
    margin-left: -25px !important;
    margin-right: -0px !important;
    width: 16px;
    height: 16px;
    /* opacity: 1; */
    font-weight: bold;
    padding-top: 0px;
    padding-bottom: 0px;
    align-items: center;
    /* text-align: center; */
    padding-left: 4px !important;
    line-height: 15px !important;
    /* 垂直居中 */
    margin-top: 0px !important;
    /* margin-right: 0px !important; */
}

/**当前需要合并的文本的标识*/
.mergely.current.CodeMirror-linenumber {
    /* background-color: #5eb09a; */
    background-color: #888;
}

[id^="merge-lhs-"].merge-button {}

[id^="merge-lhs-"].merge-button::before {
    /* content: "="; */
    /* width:16px; */
    /* height:16px !important; */
}

/* #merge-lhs-*.merge-button::before{ */
/* content: "="; */
/* } */

.mergely.ch.d.lhs {
    /* background-color: rgba(255, 255, 255, 0); */
    /* font-weight: bold; */
    background-color: #f9cece;
    font-weight: bold;
}

.mergely.d.lhs {
    background-color: #f9cece;
    /* background-color: rgba(255, 255, 255, 0); */
    /* font-weight: bold; */
}


.mergely.ch.a.rhs {
    /* background-color: rgba(255, 255, 255, 0); */
    /* color:blue; */
    background-color: #bad8f9;
    color: blue;
    font-weight: bold;
}

.mergely.a.rhs {
    background-color: #bad8f9;
    /* background-color: rgba(255, 255, 255, 0); */
}

.mergely-column {
    font-size: 14px;
    line-height: 22px !important;
}

.mergely.c.lhs,
.mergely.c.rhs {
    background-color: #fff;
}

.common-container {
    margin-top: 2px;
    display: grid;
    grid-template-columns: 20px 1fr  1fr  20px;
    /* grid-template-columns: 10px 1fr  1fr  10px; */
    /* grid-template-columns: 20px 1fr 20px 1fr 20px 20px; */
}


/* wrapper 全屏 */
.wrapper-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999;
    background: #fff;
    box-sizing: border-box;
    overflow: auto;
    padding: 20px;
}

@media screen and (max-width: 768px) {
    .main-three-part-grid-container .tool-form-text-diff #container.tool-container-fullscreen-layout:not(.fullscreen) > iframe {
        height: auto;
        flex: 1 1 auto;
        min-height: 46.8vh;
    }
}

/* 全屏时 textarea 变大 */
.wrapper-fullscreen #myTextarea {
    height: calc(100vh - 80px);
    /* 留按钮空间 */
    font-size: 18px;
}