.form-editor {
    height: calc(100vh - 306px);
    overflow: auto;
}

.form-editor .form-fieldset,
.form-editor .form-tab {
    padding: 15px;
    border-radius: .25rem;
}

.form-editor .form-tab {
    width: 100%;
    background: #F5F5F5;
    border: 2px solid #c1c1c1;
}

.form-editor .form-tab.notab,
.form-editor .form-fieldset.nofieldset {
    background: transparent;
}

.form-editor .form-tab.notab>.name,
.form-editor .form-fieldset.nofieldset>.name {
    display: none;
}

.form-editor .form-fieldset {
    width: 100%;
    background: white;
    border: 2px solid #c1c1c1;
}

.form-editor .form-row {
    border: 2px solid #c1c1c1;
    padding: .5rem;
    margin-bottom: 5px;
    border-radius: .25rem;
}

.form-editor .form-tab > .name {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.form-editor .form-fieldset > .name {
    font-size: 16px;
    margin-bottom: 15px;
}

.form-editor .form-tab + .form-tab {
    margin-top: 30px;
}

.form-editor .form-fieldset {
    margin-bottom: 15px;
}

.form-editor .field {
    margin-bottom: 15px;
}

.form-editor [required] {
    border-color: var(--bs-danger);
}

.form-editor label span {
    cursor: pointer;
}

.form-editor .add-block {
    cursor: pointer;
    margin: 15px 0;
    background: var(--bs-success);
    color: #fff;
    border-radius: .25rem;
    font-size: 16px;
    width: 34px;
    text-align: center;
    height: 34px;
    line-height: 34px;
}

.form-editor .delete-block {
    float: right;
    cursor: pointer;
    height: 34px;
    line-height: 34px;
    background: var(--bs-danger);
    border-radius: .25rem;
    color: #fff;
    width: 34px;
    text-align: center;
}

.form-editor .ui-sortable-helper {
    max-width: 300px;
}

.form-editor .move-field,
.form-editor .move-row,
.form-editor .move-fieldset,
.form-editor .move-tab {
    padding: .5rem;
    border-radius: .25rem;
    color: var(--bs-secondary);
    cursor: pointer;
    margin-right: 10px;
    transition: all 0.2s;
}

.form-editor .move-field:hover,
.form-editor .move-row:hover,
.form-editor .move-fieldset:hover,
.form-editor .move-tab:hover {
    background: var(--bs-secondary);
    color: white;
}

.form-selector {
    width: 300px;
}

.form-selector .add-field {
    width: 300px;
    padding: 15px 15px 0;
}

.form-selector .fields {
    width: 300px;
    padding: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    height: calc(100% - 55px);
}

.form-selector .field input,
.form-selector .field .form-text {
    display: none;
}

.form-editor .form-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.form-editor .fields {
    min-height: 26px;
}

.form-editor .form-content {
    background: white;
    scrollbar-width: thin;
}