html {
    overflow-x: hidden;
    touch-action: pan-y; 
}
.mdiv{
    display: flex;
}

.mlr{
    width:20rem;
    padding-left: 0.75rem;
}

.mlr>div{
    padding: 0.25rem;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.mlr>div:last-child{
    margin-bottom: 0;
}

.night .mlr>div{
    border:1px solid #444;
}

.mlf{
    width: calc(100% - 20rem);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
    background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    padding: 0.25rem;
}

.night .mlf{
    border: 1px solid #444;
    background-image: linear-gradient(45deg, #2d2d2d 25%, transparent 25%), linear-gradient(-45deg, #2d2d2d 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #2d2d2d 75%), linear-gradient(-45deg, transparent 75%, #2d2d2d 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.butdivbut{
    height: 1.8rem;
    line-height: 1.8rem;
    display: block;
    background-color: #06b672;
    border: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

@media screen and (max-width: 1290px){
    .mdiv {
        display:block;
    }
    .mlf {
        width:100%;
        height: 10rem;
    }
    .mlr {
        width: 100%;
        padding-left:0rem;
        margin-top: 0.75rem;
    }
}

/*****************************************************/

.btn-add {
    height: 1.8rem;
    line-height: 1.8rem;
    display: block;
    background-color: #06b672;
    text-align: center;
    color: #fff;
    cursor: pointer;
    width: 100%;
    border: 0;
}

.preview-box {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.night .preview-box{
    background: #232324;
    border: 1px solid #444;
}

.flex-item {
    padding: 0.4rem;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #0d47a1;
    font-size: 0.4rem;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    word-break: break-all;
    min-width: 0;
}

.night .flex-item{
    background: #181a1b;
    border: 1px solid #444;
    color: #eee;
}

.child-header{
    height: 38px;
    line-height: 38px;
    background-color: #fafafa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border:1px solid #eee;
    padding: 0 0.5rem;
    cursor: pointer;
}

.night .child-header{
    background-color: #232324;
    border: 1px solid #444;
}

#child-list-container .active .child-header{
    margin-bottom: 0.25rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.child-content{
    display: none;
    transition: height 0.3s ease-out;
}

.toggle-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    transition: transform 0.3s;
    transform: rotate(0deg);
}

.child-item.active .toggle-arrow {
    transform: rotate(90deg);
}

.btn-remove {
    background: transparent;
    border: 0;
    color: #FF9800;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

#child-list-container{

}

#child-list-container>div{
    margin-bottom: 0.25rem;
}

#child-list-container>div:last-child{
    margin-bottom: 0;
}

.child-controls>div:last-child{
    margin-bottom: 0;
}