#formEditorContent {
    position: relative;
    width: 100%;
    height: 800px;
    padding-top: 5px;
}
.formEditorArea {
    width: 100%;
    height: 100%;
    background-color: #fff;
    box-sizing: border-box;
    overflow: auto;
    position: relative;
    user-select: none;
}

#formEditorButtons,
.formEditorProperties {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#panelButtons {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f0f0f0;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 50;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.fe-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #000;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
}

#panelProperties {
    position: absolute;
    top: 5px;
    right: 0;
    margin: 10px;
    width: 17%;
    background-color: #f0f0f0;
    padding: 5px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 50;
    border: 1px solid #ccc;
    border-radius: 4px;
    height: -webkit-fill-available;
    min-width: 160px;
    padding-top: 15px;
    overflow-y: auto;
    word-break: break-all;
}

.panelHeader {
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.formEditorProperties {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* окно действий с элементами */
#formEditorActions {
    display: none;
position: absolute;
background-color: #f0f0f0;
border: 1px solid #ccc;
border-radius: 4px;
padding: 5px;
box-sizing: border-box;
z-index: 50;
    position: fixed;
}

.formEditorActionPanel {
display: flex;
flex-direction: column;
gap: 5px;
}

.formEditorAction {
text-align: center;
border: 1px solid #000;
border-radius: 3px;
padding: 3px;
cursor: pointer;
background-color: #fff;
}

.image-chooser {
    position: absolute;
    z-index: 50;
    background: #fff;
    border: 1px solid #ccc;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.image-chooser button {
    cursor: pointer;
}


#formMainPanel {
    position: relative;
    background: #f0f0f0;
}

#menuToggle {
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    padding: 4px;
    cursor: pointer;
    width: 32px;
}

#menuPanel {
    border-radius: 4px;
    position: absolute;
    top: 45px;
    left: 10px;
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    z-index: 9;
}

#menuPanel button {
    padding: 4px;
    cursor: pointer;
    margin-bottom: 4px;
    display: block;
}

#menuPanel label {
    display: block;
    margin-top: 5px;
}

#gridInput {
    width: 60px;
}