/* Area Staff: responsive records without cloning or relocating form controls. */
body.ftaps-app :is(.ftaps-content,.ftaps-main,.ft415-editor-body,.ft430-toolbar){min-width:0;box-sizing:border-box}
body.ftaps-app :is(.ftm-row-actions,.staff-actions,.form-actions,.ftm-form-actions,.ftaps-head-actions){display:flex;flex-wrap:wrap;align-items:center;gap:10px!important}
body.ftaps-app :is(.ftm-row-actions,.staff-actions,.form-actions,.ftm-form-actions,.ftaps-head-actions)>*{max-width:100%;min-width:0;margin:0!important}
body.ftaps-app :is(.ft415-dialog,.ft430-manager){max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;box-sizing:border-box}
@media screen and (max-width:1024px){
 body.ftaps-app .ftaps-topbar{height:auto!important;min-height:72px;flex-wrap:wrap;padding-block:10px!important}
 body.ftaps-app .ftaps-search{flex:1 1 180px;max-width:100%}
 body.ftaps-app :is(.ftaps-quick-grid,.ftaps-detail-grid,.ftaps-form-grid){grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important}
}
@media screen and (max-width:700px){
 body.ftaps-app .ftaps-content{padding-inline:10px!important}
 body.ftaps-app table.ft434-records{display:block!important;min-width:0!important;width:100%!important;max-width:100%!important;table-layout:auto!important;border:0!important}
 body.ftaps-app table.ft434-records>colgroup{display:none!important}
 /* Column names remain in the DOM for desktop, export and table semantics. */
 body.ftaps-app table.ft434-records>thead{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
 body.ftaps-app table.ft434-records>thead:focus-within{position:static!important;width:auto!important;height:auto!important;clip-path:none;white-space:normal}
 body.ftaps-app table.ft434-records>tbody{display:block!important;width:100%!important}
 body.ftaps-app table.ft434-records>tbody>tr.ft434-record{display:block!important;width:100%!important;box-sizing:border-box;border:1px solid #dbe3ed!important;border-radius:12px;margin:0 0 12px!important;padding:8px!important;background:#fff}
 body.ftaps-app table.ft434-records>tbody>tr[hidden],body.ftaps-app table.ft434-records>tbody>tr[style*="display: none"],body.ftaps-app table.ft434-records>tbody>tr[style*="display:none"]{display:none!important}
 body.ftaps-app table.ft434-records tr.ft434-record>td{display:block!important;box-sizing:border-box;width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:8px!important;border:0!important;border-bottom:1px solid #eef2f6!important;font-size:14px!important;line-height:1.5!important}
 body.ftaps-app table.ft434-records tr.ft434-record>td::before{content:attr(data-ft434-label)!important;display:block!important;position:static!important;width:auto!important;padding:0!important;margin-bottom:3px;color:#53657a;font-size:12px;font-weight:600;white-space:normal!important}
 body.ftaps-app table.ft434-records tr.ft434-record>td:last-child{border-bottom:0!important}
 body.ftaps-app table.ft434-records tr.ft434-record>td:is(.ft430-check-cell,.ft429-actions-cell){display:flex!important;align-items:center;justify-content:space-between;gap:12px;min-height:44px!important}
 body.ftaps-app table.ft434-records tr.ft434-record>td :is(p,small){white-space:normal!important;overflow-wrap:anywhere}
 body.ftaps-app :is(.ftaps-content,.ft415-dialog,.ftaps-modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){max-width:100%!important;min-width:0!important;box-sizing:border-box;font-size:16px!important}
 body.ftaps-app .ft415-editor-footer{flex-wrap:wrap;gap:10px!important}
 body.ftaps-app .ft430-toolbar{padding:10px;gap:8px}
 body.ftaps-app .ft430-toolbar .ft430-button{flex:1 1 130px;min-height:44px!important}
 body.ftaps-app :is(.ftm-row-actions,.staff-actions,.form-actions,.ftm-form-actions)>:is(a,button,form){flex:1 1 150px}
}
@media screen and (max-width:400px){
 body.ftaps-app.ftaps-app form .ft411-fields>.ft411-field{flex-basis:100%!important}
 body.ftaps-app.ftaps-app form .ft411-fields>.ft411-field[data-ft411-size=number]{flex:1 1 100px!important}
}

body.ftaps-app .ft434-program-actions{display:block!important;min-width:0!important;width:auto!important;max-width:100%!important}
body.ftaps-app .ft434-program-menu[hidden]{display:none!important}
body.ftaps-app .ft434-program-menu{background:#f5f8fc;border:1px solid #dbe3ed;border-radius:10px;padding:10px;margin-top:8px;min-width:0;max-width:100%}
body.ftaps-app .ft434-program-menu>form{margin:0 0 8px!important;padding:0!important;min-width:0}
body.ftaps-app .ft434-program-menu .ft415-launch-info{display:none}
body.ftaps-app .ft434-program-menu button{white-space:normal!important;max-width:100%;height:auto}
@media(max-width:700px){body.ftaps-app .programmi-event-admin-v355{grid-template-columns:minmax(0,1fr)!important;display:grid!important;gap:10px!important}body.ftaps-app .programma-admin-row-actions-v355{grid-column:1/-1!important}body.ftaps-app .attivita-week-days-v352{overflow-x:auto;min-width:0}}
