/* Shared action spacing. No changes to public colours, navigation or document printouts. */
@media screen {
 body :is(.staff-actions,.hero-actions,.anagrafica-actions,.ftm-row-actions,.ftm-panel-actions,.ftm-dashboard-actions,.ftinv-quick-actions,.ftg-actions,.ft-ai-admin-actions,.ft-ai-head-actions,.oq-row-actions,.oq-detail-actions,.oq-save-actions,.oq-calendar-row-actions,.oq-calendar-form-actions,.oq-v346-month-actions,.oq-v348-history-actions,.oq-v360-doc-actions,.wonderbox-row-actions,.ftdoc-row-actions,.form-actions,.ftm-form-actions,.ftdoc-savebar,.ftaps-head-actions,.ftaps-form-footer,.ft415-editor-footer,.ft412-filter-actions,.ft423-actions):not(.ftdoc-paper *) {
  display:flex!important; flex-wrap:wrap!important; align-items:center!important; justify-content:flex-start!important;
  gap:12px!important; row-gap:12px!important; column-gap:12px!important; min-width:0!important; max-width:100%!important; height:auto!important;
 }
 body :is(.staff-actions,.hero-actions,.anagrafica-actions,.ftm-row-actions,.ftm-panel-actions,.ftm-dashboard-actions,.ftinv-quick-actions,.ftg-actions,.ft-ai-admin-actions,.ft-ai-head-actions,.oq-row-actions,.oq-detail-actions,.oq-save-actions,.oq-calendar-row-actions,.oq-calendar-form-actions,.oq-v346-month-actions,.oq-v348-history-actions,.oq-v360-doc-actions,.wonderbox-row-actions,.ftdoc-row-actions,.form-actions,.ftm-form-actions,.ftdoc-savebar,.ftaps-head-actions,.ftaps-form-footer,.ft415-editor-footer,.ft412-filter-actions,.ft423-actions)>:is(a,button,input[type="submit"],input[type="button"],form):not(.ftdoc-paper *) {
  box-sizing:border-box!important; flex:0 1 auto!important; float:none!important; width:auto!important; min-width:0!important; max-width:100%!important; margin:0!important;
 }
 body :is(.ft423-actions,.staff-actions,.ftm-row-actions,.ftdoc-row-actions,.oq-row-actions,.hero-actions,.anagrafica-actions) :is(.btn,.button,button,input[type="submit"],input[type="button"],.ftaps-primary,.ftaps-secondary):not(.ftdoc-paper *) {
  display:inline-flex!important; align-items:center!important; justify-content:center!important; box-sizing:border-box!important;
  position:relative!important; inset:auto!important; min-height:44px!important; height:auto!important; max-width:100%!important; min-width:0!important;
  padding:10px 14px!important; line-height:1.45!important; white-space:normal!important; overflow-wrap:anywhere!important; word-break:normal!important; text-align:center; vertical-align:middle; transform:none!important;
 }
 /* Action-only forms keep nonce/hidden fields and submitter intact, but never grow like editors. */
 body :is(.ft423-action-form,.staff-actions>form,.ftm-row-actions>form,.ftdoc-row-actions>form,.oq-row-actions>form):not(.ftdoc-paper *) {
  display:inline-flex!important; flex:0 1 auto!important; align-items:center!important; flex-wrap:wrap!important; gap:12px!important;
  width:auto!important; min-width:0!important; max-width:100%!important; padding:0!important; margin:0!important; border:0!important; background:transparent!important; box-shadow:none!important;
 }
 body .ft423-action-form>:is(button,input[type="submit"],input[type="button"]) { width:auto!important; max-width:100%!important; margin:0!important; }
 body :is(.staff-actions,.ft423-actions,.ftm-row-actions)+:is(form,.staff-actions,.ft423-actions),
 body .ft423-action-form+:is(.ft423-action-form,.staff-actions,.ft423-actions) { margin-top:12px!important; }
 body .ft423-action-form:not(.ft423-actions>*):not(.staff-actions>*):not(.ftm-row-actions>*) { margin-block:8px!important; }
 body :is(.ft423-actions,.staff-actions)>[hidden],body .ft423-action-form>[type="hidden"] { display:none!important; }
 body.ftaps-app :is(.ftaps-content,.ftaps-modal) :is(.staff-actions,.ftm-row-actions,.ft423-actions,.oq-calendar-row-actions,.wonderbox-row-actions,.form-actions,.ftm-form-actions,.oq-calendar-form-actions,.ftdoc-savebar,.ftaps-form-footer,.ft415-editor-footer,.ft412-filter-actions,.ftaps-head-actions,.ftinv-quick-actions) { gap:12px!important; }
 body.ftaps-app :is(.ftaps-content,.ftaps-modal) :is(.staff-actions,.ftm-row-actions,.ft423-actions)>form { flex:0 1 auto!important; width:auto!important; }
 body.ftaps-app :is(.ftaps-content,.ftaps-modal) :is(.staff-actions,.ftm-row-actions,.ft423-actions) :is(a,button) { margin:0!important; overflow-wrap:anywhere!important; }
 body.ftaps-app .ftag-event>.staff-actions { margin-top:16px!important; }
 body.ftaps-app .ftag-event .staff-actions>form.ftag-editor { display:inline-flex!important; width:auto!important; grid-column:auto!important; padding:0!important; margin:0!important; }
 body.ftaps-app .ftag-event .staff-actions>form.ftag-editor>button { width:auto!important; background:#fff!important; background-image:none!important; color:#a4262c!important; border:1px solid #d7969a!important; box-shadow:none!important; }
 body.ftaps-app .ftag-event .staff-actions>form.ftag-editor>button:hover { background:#fff3f3!important; }
 @media(max-width:520px) {
  body.ftaps-app :is(.staff-actions,.ft423-actions,.ftm-row-actions)>:is(a,button,form) { flex:1 1 160px!important; }
  body.ftaps-app :is(.staff-actions,.ft423-actions,.ftm-row-actions)>form>:is(button,input[type="submit"]) { width:100%!important; }
 }
}
