/* Compact questionnaire editor. Scoped to avoid changing other screens. */
body #content .form-editor-compact{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
body #content .form-editor-compact .ro17-form-sections{position:static!important;padding:8px 12px!important}
body #content .form-editor-compact .ro17-form-sections>.ro17-panel-title{display:none!important}
body #content .form-editor-compact #formSectionNav label{display:flex;align-items:center;gap:12px;margin:0;font-size:13px}
body #content .form-editor-compact #formSectionFilter{width:auto;max-width:100%;min-height:40px;margin:0}
body #content .form-editor-compact .ro173-list-panel>.ro17-panel-title{padding:10px 12px!important;margin:0!important;gap:8px!important}
body #content .form-editor-compact .ro173-autosave{display:none!important}
body #content .form-editor-compact .ro17-panel-title h3{font-size:16px!important;margin:0!important}
body #content .form-editor-compact #formSectionHelp{font-size:12px!important;margin:4px 0 0!important}
body #content .form-editor-compact .ro173-field-head,
body #content .form-editor-compact .ro173-field-row{
 grid-template-columns:60px minmax(180px,1fr) 116px minmax(320px,auto) 36px!important;
 grid-template-areas:"pos label type flags actions"!important;
 gap:8px!important;align-items:center!important;min-height:0!important;padding:6px 12px!important;
}
body #content .form-editor-compact .ro173-field-head{font-size:11px!important;grid-template-areas:"pos label type options action"!important;padding-top:8px!important;padding-bottom:8px!important}
body #content .form-editor-compact .ro173-field-head>span:nth-child(3),
body #content .form-editor-compact .ro173-field-row>div:nth-child(3){display:none!important}
body #content .form-editor-compact .ro173-pos-cell{display:block!important;grid-area:pos!important}
body #content .form-editor-compact .ro173-pos-cell select{width:56px!important;min-width:56px!important;height:38px!important;min-height:38px!important;margin:0!important}
body #content .form-editor-compact .ro173-label-button{min-height:40px!important;padding:3px 0!important}
body #content .form-editor-compact .ro173-label-button b{font-size:13px!important;line-height:1.25!important;overflow-wrap:anywhere}
body #content .form-editor-compact .ro173-label-button small{display:block;font-size:11px!important;font-weight:400;opacity:.7;margin-top:2px}
body #content .form-editor-compact .ro173-type-cell{font-size:12px!important}
body #content .form-editor-compact .ro173-type-cell select{min-height:38px!important;height:38px!important;margin:0!important;padding:4px 6px!important;font-size:12px!important}
body #content .form-editor-compact .ro173-locked-value small{display:none!important}
body #content .form-editor-compact .ro173-field-flags{flex-wrap:wrap!important;gap:5px!important}
body #content .form-editor-compact .ro173-flag,body #content .form-editor-compact .ro173-values-btn{min-height:36px!important;font-size:12px!important;padding:4px 6px!important;gap:4px!important;margin:0!important;white-space:normal!important}
body #content .form-editor-compact .ro173-row-actions{padding:0!important}
body #content .form-editor-compact .ro173-row-actions .btn{width:32px!important;min-width:32px!important;height:36px!important;min-height:36px!important;padding:0!important}
.form-option-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;align-items:end;gap:8px;margin:8px 0}
.form-option-row label{min-width:0;margin:0;font-size:13px}
.form-option-row input{width:100%;min-width:0;margin-top:4px}
.form-option-row button{height:44px;padding:0}
@media(max-width:1100px){
 body #content .form-editor-compact .ro173-field-head{display:none!important}
 body #content .form-editor-compact .ro173-field-row{grid-template-columns:60px minmax(0,1fr) 116px 36px!important;grid-template-areas:"pos label type actions" ". flags flags flags"!important;gap:4px 8px!important}
}
@media(max-width:620px){
 body #content .form-editor-compact .ro173-field-row{grid-template-columns:84px minmax(0,1fr) 44px!important;grid-template-areas:"pos label actions" "type flags flags"!important;padding:8px!important;gap:6px!important}
 body #content .form-editor-compact .ro173-field-flags{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 body #content .form-editor-compact .ro173-flag,body #content .form-editor-compact .ro173-values-btn{min-height:44px!important;padding:3px 4px!important;font-size:12px!important;line-height:1.2!important}
 body #content .form-editor-compact .ro173-type-cell{align-self:start;overflow-wrap:anywhere;font-size:11px!important}
 body #content .form-editor-compact .ro173-type-cell select{width:100%;font-size:11px!important;min-height:44px!important}
 body #content .form-editor-compact .ro173-pos-cell select{min-height:44px!important}
 body #content .form-editor-compact .ro173-row-actions .btn{width:44px!important;min-width:44px!important;min-height:44px!important}
 body #content .form-editor-compact .ro173-list-panel>.ro17-panel-title{flex-wrap:wrap!important}
 body #content .form-editor-compact #formSectionNav label{flex-wrap:wrap;gap:6px}
 body #content .form-editor-compact #formSectionFilter{width:100%;min-height:44px}
 .form-option-row{grid-template-columns:minmax(0,1fr) 44px;gap:4px 8px;border-bottom:1px solid #8885;padding-bottom:10px}
 .form-option-row label{grid-column:1}.form-option-row button{grid-column:2;grid-row:1/3;align-self:center}
}
