#encoderWindow{
    position:absolute;
    top:80px;
    left:920px;
    width:320px;
    max-height:calc(100vh - 100px);
    background:#2b3139;
    border:1px solid #56616d;
    display:none;
    z-index:99999;
    box-sizing:border-box;
}

#encoderHeader{
    height:30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 9px;
    background:#3d4650;
    color:white;
    cursor:move;
    font-size:13px;
}

#encoderClose{
    padding:2px 7px;
    height:24px;
}

#encoderContent{
    padding:8px;
    box-sizing:border-box;
}

.encGrid{
    display:grid;
    grid-template-columns:1fr 92px;
    gap:6px 7px;
}

.encField{
    min-width:0;
}

.encWide{
    grid-column:1 / -1;
}

#encoderContent label{
    display:block;
    margin:0 0 2px;
    color:#fff;
    font-size:11px;
    line-height:14px;
}

#encoderContent input[type=text],
#encoderContent input[type=password],
#encoderContent input[type=number]{
    width:100%;
    height:27px;
    box-sizing:border-box;
    padding:4px 6px;
    font-size:12px;
}

.encMeta{
    margin-top:7px;
    padding-top:6px;
    border-top:1px solid #48515a;
}

.encMetaTitle{
    color:#fff;
    font-size:11px;
    margin-bottom:4px;
}

.encMetaOptions{
    display:flex;
    gap:12px;
    align-items:center;
    margin-bottom:5px;
}

.encRadio{
    display:flex !important;
    align-items:center;
    gap:4px;
    margin:0 !important;
    white-space:nowrap;
}

.encRadio input{
    margin:0;
}

#customTitle{
    margin-top:0;
}

#btnSaveEncoder{
    width:100%;
    margin-top:7px;
    height:29px;
    font-weight:bold;
    font-size:12px;
    cursor:pointer;
}

#encoderSaveStatus{
    margin-top:4px;
    min-height:15px;
    height:15px;
    text-align:center;
    color:#79ff79;
    font-size:11px;
}

.encoderConnectionStatus{
    height:27px;
    margin-top:5px;
    padding:0 8px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    box-sizing:border-box;
    background:#22272d;
    border:1px solid #454d55;
    color:#c7cdd3;
    font-size:11px;
    border-radius:2px;
}

.encoderConnectionDot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#777;
    flex:0 0 7px;
}

.encoderConnectionStatus.connected{
    color:#79ff79;
    border-color:#386b4a;
}

.encoderConnectionStatus.connected .encoderConnectionDot{
    background:#31c46b;
    box-shadow:0 0 5px rgba(49,196,107,.55);
}

.encoderConnectionStatus.connecting{
    color:#ffd166;
    border-color:#6d5b31;
}

.encoderConnectionStatus.connecting .encoderConnectionDot{
    background:#e0ad35;
}

.encoderConnectionStatus.error{
    color:#ff7b7b;
    border-color:#6d3838;
}

.encoderConnectionStatus.error .encoderConnectionDot{
    background:#e05252;
}
