/* Maps existing operational components to the original APS rules; does not change their handlers or data. */
body.ftaps-app .ftaps-nav-group .ftaps-nav-button{width:100%;height:39px;padding:0 11px;border:0;border-radius:9px;background:transparent;color:#c9d4e1;display:flex;align-items:center;gap:10px;font-size:12.5px;text-align:left}
body.ftaps-app .ftaps-nav-group .ftaps-nav-button span{flex:1}
body.ftaps-app .ftaps-nav-group .ftaps-nav-button:hover{background:#ffffff0c;color:#fff}
body.ftaps-app .ftaps-nav-group .ftaps-nav-button.ftaps-active{background:#fff;color:var(--navy);font-weight:750;box-shadow:0 5px 14px #0002}
body.ftaps-app .ftaps-panel-head .ftaps-panel-link{border:0;background:none;color:var(--blue);font-size:10.5px;font-weight:700}
body.ftaps-app .ftaps-quick-grid .ftaps-quick-button{min-height:71px;border:1px solid var(--line);background:#f9fafb;border-radius:11px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:12px;color:var(--blue)}
body.ftaps-app .ftaps-quick-grid .ftaps-quick-button:hover{border-color:#a8c8ea;background:#f3f8fe}
body.ftaps-app .ftaps-nav-group .ftaps-nav-button{height:43px;font-size:14px}
body.ftaps-app .ftaps-panel-head .ftaps-panel-link{font-size:13px}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.btn,.button,input[type=submit],button[type=submit],.ftaps-legacy-button){height:39px!important;border-radius:9px!important;padding:0 15px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:11.5px!important;font-weight:750!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.btn-ghost,.btn-light,.btn-ghost-dark,.btn-secondary,.ft-action-view,.ft-action-edit,.ft-action-export,.ft-action-download,.ftaps-legacy-secondary){height:39px!important;border-radius:9px!important;padding:0 15px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:11.5px!important;font-weight:750!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.btn,.button,input[type=submit],button[type=submit],.ftaps-legacy-button){border:1px solid var(--blue)!important;background:var(--blue)!important;color:#fff!important;box-shadow:0 5px 13px #175ca728!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.btn,.button,input[type=submit],button[type=submit],.ftaps-legacy-button):hover{background:#124f92!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) .btn-small{height:34px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.btn-ghost,.btn-light,.btn-ghost-dark,.btn-secondary,.ft-action-view,.ft-action-edit,.ft-action-export,.ft-action-download,.ftaps-legacy-secondary){border:1px solid var(--line)!important;background:#fff!important;color:#405066!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.staff-card,.staff-editor-card,.ftm-panel,.ftm-card,.ftm-module-card,.ftm-area-card,.ftac-card,.ftg-card,.ftadv-card,.ftinv-card,.oq-dashboard-panel,.oq-calendar-section,.oq-v291-card,.oq-form-card,.oq-quote-card,.registration-table-panel,.edit-iscrizione-panel,.pdf-import-card,.ft-ai-test-card,.history-reset-card,.legal-panel,.otp-panel,.ftdoc-card){background:#fff!important;border:1px solid var(--line)!important;border-radius:14px!important;padding:19px!important;box-shadow:0 2px 6px #16324d08!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.ftm-card-head,.oq-card-head,.oq-panel-toolbar,.oq-calendar-section-head,.anagrafica-table-heading){display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:10px!important;margin-bottom:17px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.ftm-card-head,.oq-card-head,.oq-panel-toolbar,.oq-calendar-section-head,.anagrafica-table-heading) :is(h2,h3){font-size:14px!important;margin:0 0 4px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.ftm-badge,.oq-badge){display:inline-flex!important;align-items:center!important;height:23px!important;border-radius:20px!important;background:#eef2f6!important;color:#5b6878!important;padding:0 9px!important;font-size:9px!important;font-weight:800!important;text-transform:capitalize!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.ftm-table-wrap,.table-wrap,.oq-table-wrap,.staff-table-wrap,.iscrizioni-table-wrap,.mini-health-table-wrap){overflow-x:auto!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table{width:100%!important;border-collapse:collapse!important;min-width:760px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table th{text-align:left!important;background:#f7f9fb!important;color:#758294!important;text-transform:uppercase!important;letter-spacing:.05em!important;font-size:8.5px!important;padding:11px 15px!important;border-top:1px solid var(--line)!important;border-bottom:1px solid var(--line)!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table td{font-size:10.5px!important;padding:12px 15px!important;border-bottom:1px solid #edf1f4!important;color:#4a586a!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table td :is(strong,small){display:block!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table td strong{display:block!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table td small{display:block!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table td strong{color:var(--ink)!important;font-size:11px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table td small{font-size:9px!important;color:var(--muted)!important;margin-top:3px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) .ftm-empty{padding:44px 20px!important;display:flex!important;flex-direction:column!important;align-items:center!important;text-align:center!important;color:#9aa5b1!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.form-grid,.ftm-form-grid,.oq-calendar-form-grid,.oq-calendar-form-grid-two,.ftdoc-editor-fields){display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.site-form,.ftm-form,.ftdoc-app,.ftac-form,.oq-form,.iscrizione-edit-form,.ftaps-form-body) label{display:block!important;font-size:9.5px!important;font-weight:750!important;color:#566476!important;margin-bottom:6px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=range]):not([type=color]):not([type=image]),select){width:100%!important;height:39px!important;border:1px solid #dce3ea!important;border-radius:8px!important;background:#fff!important;padding:0 11px!important;color:var(--ink)!important;font-size:11px!important;outline:none!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=range]):not([type=color]):not([type=image]),select):focus{border-color:#76a9dc!important;box-shadow:0 0 0 3px #e8f2fc!important;}
@media(max-width:540px){body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.form-grid,.ftm-form-grid,.oq-calendar-form-grid,.oq-calendar-form-grid-two,.ftdoc-editor-fields){grid-template-columns:1fr!important;}}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.btn,.button,input[type=submit],button[type=submit],.ftaps-legacy-button){font-size:14px!important;min-height:40px!important;text-decoration:none!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.btn-ghost,.btn-light,.btn-ghost-dark,.btn-secondary,.ft-action-view,.ft-action-edit,.ft-action-export,.ft-action-download,.ftaps-legacy-secondary){font-size:14px!important;min-height:40px!important;text-decoration:none!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.ftm-card-head,.oq-card-head,.oq-panel-toolbar,.oq-calendar-section-head,.anagrafica-table-heading) :is(h2,h3){font-size:17px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table td strong{font-size:14px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table th{font-size:11px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.ftm-badge,.oq-badge){font-size:12px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table td{font-size:13px!important;line-height:1.4!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) table td small{font-size:11px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.site-form,.ftm-form,.ftdoc-app,.ftac-form,.oq-form,.iscrizione-edit-form,.ftaps-form-body) label{font-size:13px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(input,select,textarea){font-size:14px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) textarea{font-size:14px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.message-box,.success-box,.info-box){display:block!important;background:#e7f6ef!important;border:1px solid #b7e2ce!important;color:#126746!important;padding:12px 14px 12px 48px!important;border-radius:10px!important;margin-bottom:16px!important;font-size:14px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.message-box,.success-box,.info-box,.error-box){box-sizing:border-box!important;min-width:0!important;max-width:100%!important;overflow-wrap:anywhere;position:relative!important;line-height:1.5!important;padding-left:48px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.message-box,.success-box,.info-box,.error-box)::before{position:absolute!important;left:14px!important;top:14px!important;width:22px!important;height:22px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) .message-box.warning::before{content:"!";background:#ffe5a2;color:#745710;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.info-box,.message-box.info){background:#edf5ff!important;border-color:#bdd4ed!important;color:#214f7c!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) .message-box.info::before{content:"i";background:#d7e7fa;color:#214f7c;}
body.ftaps-app .message-box p{margin:6px 0 0!important;font-weight:400!important;}
body.ftaps-app .ftm-permission-group[hidden],body.ftaps-app .ftm-permission-group label[hidden]{display:none!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) textarea{width:100%!important;min-height:110px!important;resize:vertical!important;border:1px solid #dce3ea!important;border-radius:8px!important;padding:10px!important;outline:none!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.check,.check-field){display:flex!important;align-items:center!important;gap:9px!important;min-height:56px!important;font-size:14px!important;font-weight:700!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(input[type=checkbox],input[type=radio]){width:18px!important;height:18px!important;}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.form-actions,.oq-calendar-form-actions,.ftm-form-actions){display:flex!important;justify-content:flex-end!important;gap:10px!important;border-top:1px solid var(--line)!important;padding-top:18px!important;margin-top:10px!important;}
body.ftaps-app .ftaps-kit-notification-dot{position:absolute;top:7px;right:7px;width:8px;height:8px;background:#e65757;border-radius:50%;border:2px solid #fff}
body.ftaps-app .ftaps-kit-table-panel{padding:0;overflow:hidden}
body.ftaps-app .ftaps-kit-table-panel .ftaps-kit-panel-head{padding:18px 19px 0}
body.ftaps-app .ftaps-kit-table-wrap{overflow-x:auto}
body.ftaps-app .ftaps-kit-table{width:100%;border-collapse:collapse;min-width:720px}
body.ftaps-app .ftaps-kit-table th{text-align:left;background:#f7f9fb;color:#758294;text-transform:uppercase;letter-spacing:.05em;font-size:10px;padding:11px 15px;border-top:1px solid var(--ft-line);border-bottom:1px solid var(--ft-line)}
body.ftaps-app .ftaps-kit-table td{font-size:12px;padding:12px 15px;border-bottom:1px solid #edf1f4;color:#4a586a}
body.ftaps-app .ftaps-kit-table tbody tr{transition:background .16s}
body.ftaps-app .ftaps-kit-table tbody tr:hover{background:#fbfdff}
body.ftaps-app .ftaps-kit-table td strong,body.ftaps-app .ftaps-kit-table td small{display:block}
body.ftaps-app .ftaps-kit-table td strong{color:var(--ft-ink);font-size:12px}
body.ftaps-app .ftaps-kit-table td small{font-size:10px;color:var(--ft-muted);margin-top:3px}
body.ftaps-app .ftaps-kit-tabs{display:flex;gap:4px;padding:4px;background:#e9eef4;border-radius:10px;width:max-content;max-width:100%;overflow:auto;margin-bottom:16px}
body.ftaps-app .ftaps-kit-tab{border:0;background:transparent;color:#667488;border-radius:7px;padding:8px 12px;font-size:12px;font-weight:700;white-space:nowrap}
body.ftaps-app .ftaps-kit-tab.is-active{background:#fff;color:var(--ft-blue);box-shadow:0 2px 7px rgba(18,41,70,.1)}
body.ftaps-app .ftaps-kit-tab-panel{display:none;animation:ft-fade .25s ease}
body.ftaps-app .ftaps-kit-tab-panel.is-active{display:block}
body.ftaps-app .ftaps-kit-alert{display:flex;align-items:flex-start;gap:9px;padding:12px 14px;border-radius:10px;margin-bottom:16px;font-size:12px}
body.ftaps-app .ftaps-kit-alert-success{background:#e7f6ef;border:1px solid #b7e2ce;color:#126746}
body.ftaps-app .ftaps-kit-alert-warning{background:#fff8df;border:1px solid #f2dc8e;color:#745710}
body.ftaps-app .ftaps-kit-alert-danger{background:#fff0f0;border:1px solid #efc7c7;color:#9b3434}
body.ftaps-app .ftaps-kit-popover{position:absolute;top:50px;right:0;width:min(370px,calc(100vw - 28px));background:#fff;border:1px solid var(--ft-line);border-radius:14px;box-shadow:0 18px 50px rgba(13,34,58,.18);opacity:0;visibility:hidden;transform:translateY(-8px) scale(.98);transform-origin:top right;transition:.18s;overflow:hidden;z-index:50}
body.ftaps-app .ftaps-kit-popover.is-open{opacity:1;visibility:visible;transform:none}
body.ftaps-app .ftaps-kit-popover-head{padding:15px 16px;border-bottom:1px solid var(--ft-line);display:flex;align-items:center;justify-content:space-between}
body.ftaps-app .ftaps-kit-popover-head h3{margin:0;font-size:14px}
body.ftaps-app .ftaps-kit-notification{display:flex;gap:10px;padding:13px 16px;border-bottom:1px solid #edf1f4;background:#fff;transition:.18s}
body.ftaps-app .ftaps-kit-notification:hover{background:#f8fbfe}
body.ftaps-app .ftaps-kit-notification.is-unread{background:#f2f7fd}
body.ftaps-app .ftaps-kit-notification-icon{width:34px;height:34px;flex:none;border-radius:9px;display:grid;place-items:center;background:var(--ft-blue-soft);color:var(--ft-blue)}
body.ftaps-app .ftaps-kit-notification-copy{flex:1}
body.ftaps-app .ftaps-kit-notification-copy strong,body.ftaps-app .ftaps-kit-notification-copy span{display:block}
body.ftaps-app .ftaps-kit-notification-copy strong{font-size:11px}
body.ftaps-app .ftaps-kit-notification-copy span{font-size:10px;color:var(--ft-muted);margin-top:3px}
body.ftaps-app .ftaps-kit-toast-stack{position:fixed;z-index:100;right:20px;bottom:20px;display:flex;flex-direction:column;gap:9px;pointer-events:none}
body.ftaps-app .ft-toast-stack{position:fixed!important;z-index:100!important;right:20px!important;bottom:20px!important;display:flex!important;flex-direction:column!important;gap:9px!important;pointer-events:none!important;}
body.ftaps-app .ftaps-kit-toast{width:min(360px,calc(100vw - 32px));display:flex;align-items:flex-start;gap:10px;padding:13px 14px;background:#fff;border:1px solid var(--ft-line);border-left:4px solid var(--ft-blue);border-radius:11px;box-shadow:0 16px 45px rgba(11,31,53,.18);animation:ft-toast-in .28s ease both;pointer-events:auto}
body.ftaps-app .ft-toast{width:min(360px,calc(100vw - 32px))!important;display:flex!important;align-items:flex-start!important;gap:10px!important;padding:13px 14px!important;background:#fff!important;border:1px solid var(--ft-line)!important;border-left:4px solid var(--ft-blue)!important;border-radius:11px!important;box-shadow:0 16px 45px rgba(11,31,53,.18)!important;animation:ft-toast-in .28s ease both!important;pointer-events:auto!important;}
body.ftaps-app .ftaps-kit-toast-success{border-left-color:var(--ft-green)}
body.ftaps-app .ft-toast-success{border-left-color:var(--ft-green)!important;}
body.ftaps-app .ftaps-kit-toast-warning{border-left-color:var(--ft-yellow)}
body.ftaps-app .ft-toast-warning{border-left-color:var(--ft-yellow)!important;}
body.ftaps-app .ftaps-kit-toast-error{border-left-color:var(--ft-red)}
body.ftaps-app .ft-toast-error{border-left-color:var(--ft-red)!important;}
body.ftaps-app .ftaps-kit-toast.is-leaving{animation:ft-toast-out .2s ease both}
body.ftaps-app .ft-toast.is-leaving{animation:ft-toast-out .2s ease both!important;}
body.ftaps-app .ftaps-kit-toast-copy{flex:1}
body.ftaps-app .ft-toast-copy{flex:1!important;}
body.ftaps-app .ftaps-kit-toast-copy strong,body.ftaps-app .ftaps-kit-toast-copy span{display:block}
body.ftaps-app .ft-toast-copy strong,body.ftaps-app .ft-toast-copy span{display:block!important;}
body.ftaps-app .ftaps-kit-toast-copy strong{font-size:12px}
body.ftaps-app .ft-toast-copy strong{font-size:12px!important;}
body.ftaps-app .ftaps-kit-toast-copy span{font-size:10px;color:var(--ft-muted);margin-top:2px}
body.ftaps-app .ft-toast-copy span{font-size:10px!important;color:var(--ft-muted)!important;margin-top:2px!important;}
body.ftaps-app .ftaps-kit-toast-close{border:0;background:transparent;color:#8793a2;padding:1px}
body.ftaps-app .ft-toast-close{border:0!important;background:transparent!important;color:#8793a2!important;padding:1px!important;}
body.ftaps-app .ftaps-kit-skeleton{height:14px;border-radius:7px;background:linear-gradient(90deg,#edf1f5 25%,#f8fafc 50%,#edf1f5 75%);background-size:200% 100%;animation:ft-shimmer 1.3s infinite}
body.ftaps-app .ftaps-kit-spinner{width:22px;height:22px;border:3px solid #d8e5f2;border-top-color:var(--ft-blue);border-radius:50%;animation:ft-spin .8s linear infinite}
body.ftaps-app .ftaps-kit-popover{position:fixed;top:66px;right:10px}
body.ftaps-app .ftaps-kit-sidebar,body.ftaps-app .ftaps-kit-topbar,body.ftaps-app .ftaps-kit-actions,body.ftaps-app .ftaps-kit-row-actions,body.ftaps-app .ftaps-kit-toast-stack,body.ftaps-app .ftaps-kit-popover{display:none!important}
body.ftaps-app .ft-sidebar,body.ftaps-app .ft-topbar,body.ftaps-app .ft-actions,body.ftaps-app .ft-row-actions,body.ftaps-app .ft-toast-stack,body.ftaps-app .ft-popover{display:none!important;}
@keyframes ft-toast-in{from{opacity:0;transform:translateX(24px) scale(.97)}to{opacity:1;transform:none}}
@keyframes ft-toast-out{to{opacity:0;transform:translateX(20px) scale(.97)}}
@keyframes ft-shimmer{to{background-position:-200% 0}}
@keyframes ft-spin{to{transform:rotate(360deg)}}
/* Interoperability with earlier Five Tour CSS generations. */
body.ftaps-app{--ft343-ink:#162235;--ft343-muted:#6e7b8d;--ft343-line:#e3e9f0;--ft343-soft:#f3f6f9;--ft343-soft-blue:#eaf3ff;--ft343-primary:#175ca7;--ft343-primary-dark:#122946;--ft343-accent:#f3be27;--ft343-shadow:0 2px 6px #16324d08;--ft343-shadow-hover:0 5px 13px #175ca728;--ft343-focus:0 0 0 3px #e8f2fc;--ft-navy:#122946;--ft-blue:#175ca7;--ft-blue-soft:#eaf3ff;--ft-line:#e3e9f0;--ft-bg:#f3f6f9;--ft-ink:#162235;--ft-muted:#6e7b8d;--ft-green:#16815e;--ft-yellow:#f3be27;--ft-red:#ca4a4a;--ft-speed:.22s;--brand:#175ca7;--brand2:#175ca7;--text:#162235;--muted:#6e7b8d;--radius:14px;--shadow:0 2px 6px #16324d08}
body.ftaps-app .ftaps-content{min-width:0}body.ftaps-app .ftaps-sidebar{min-height:0}.ftaps-sidebar .ftaps-brand{flex-shrink:0}.ftaps-sidebar .ftaps-sidebar-foot{flex-shrink:0}
body.ftaps-app .ftaps-content>.section{padding:0!important;background:transparent!important}body.ftaps-app .ftaps-content>.section>.container{width:100%!important;max-width:none!important;margin:0!important}
body.ftaps-workspace .ftaps-content>.page-hero,body.ftaps-workspace .ft-staff-welcome,body.ftaps-workspace .ft-staff-contextbar{display:none!important}
body.ftaps-app .ftaps-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.ftaps-back-link svg{transform:rotate(180deg)}
body.ftaps-app .ftaps-topbar .ftaps-profile{cursor:pointer;outline-offset:4px;flex-shrink:0}.ftaps-topbar .ftaps-search{position:relative;min-width:0}.ftaps-topbar .ftaps-search input{min-width:0;padding:0}
.ftaps-search-results{position:absolute;top:49px;left:0;width:100%;min-width:290px;max-height:65vh;overflow:auto;background:#fff;border:1px solid #e3e9f0;border-radius:14px;padding:9px;box-shadow:0 18px 50px #0d223a2e;z-index:50}.ftaps-search-results>p{font-size:12px;color:#6e7b8d;padding:7px}.ftaps-search-result{padding:10px;border-radius:8px}.ftaps-search-result:hover,.ftaps-search-result:focus-within{background:#eaf3ff}.ftaps-search-result a{display:flex;gap:9px;align-items:center;font-size:14px;color:#162235}.ftaps-search-result small{display:block;font-size:12px;color:#6e7b8d;margin:4px 0 0 27px}
body.ftaps-app .ftaps-popover{position:absolute;top:62px;right:28px;width:min(370px,calc(100vw - 28px));max-height:75vh;overflow:auto;background:#fff;border:1px solid #e3e9f0;border-radius:14px;box-shadow:0 18px 50px #0d223a2e;padding:16px;z-index:50}.ftaps-popover .ftaps-empty{padding:25px 10px}.ftaps-account-menu a{display:flex;align-items:center;gap:9px;padding:12px;border-radius:8px;font-size:14px}.ftaps-account-menu a:hover{background:#eaf3ff}.ftaps-popover>.ftaps-secondary{margin-top:12px}.ftaps-status.ftaps-expired{background:#feeeee;color:#ca4a4a}
body.ftaps-app .ftaps-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.ftaps-skip{position:fixed;z-index:100001;top:8px;left:8px;background:#fff;color:#122946;padding:10px 16px;border-radius:8px;transform:translateY(-180%)}.ftaps-skip:focus{transform:none}
body.ftaps-app :is(.ftaps-sidebar,.ftaps-topbar,.ftaps-content,.ftaps-modal) :is(a,button,input,select,textarea,[tabindex]):focus-visible{outline:2px solid #175ca7;outline-offset:3px}.ftaps-sidebar :is(a,button):focus-visible{outline-color:#f3be27!important}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.btn,.button,.ftaps-legacy-button){text-decoration:none!important;box-sizing:border-box!important;white-space:normal;line-height:1.3!important}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.btn-ghost,.btn-light,.btn-ghost-dark,.btn-secondary,.ft-action-view,.ft-action-edit,.ft-action-export,.ft-action-download,.ftaps-legacy-secondary){background:#fff!important;color:#405066!important;border:1px solid #e3e9f0!important;box-shadow:none!important}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.ft-action-delete,.ft-action-cancel,.ft-action-logout,.btn-danger,.btn-reset,.btn-reset-history){background:#fff!important;border:1px solid #f0c7c7!important;color:#ca4a4a!important;box-shadow:none!important}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(button,input[type=submit]):disabled{opacity:.55!important;cursor:not-allowed!important;transform:none!important}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.ftm-form,.site-form,.ftac-form,.oq-form,.ftaps-form-body){gap:14px;color:#162235}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(input,select,textarea){font-family:inherit!important;max-width:100%;box-sizing:border-box;min-width:0;box-shadow:none}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) input[type=file]{padding:7px 11px!important;height:auto!important;min-height:39px}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(input[type=checkbox],input[type=radio]){display:inline-block!important;width:18px!important;height:18px!important;padding:0!important;accent-color:#175ca7;flex-shrink:0}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.check,.check-field){display:flex!important;align-items:center!important;gap:9px!important}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) textarea{background:#fff!important;color:#162235!important;font-family:inherit!important;line-height:1.5!important;max-width:100%}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) :is(.full,.full-width,.oq-calendar-full-field){grid-column:1/-1}
body.ftaps-app .ftaps-content :is(.staff-card,.staff-editor-card,.ftm-panel,.ftac-card,.oq-dashboard-panel,.oq-calendar-section) :is(h3,h4){font-size:17px!important;line-height:1.4!important;color:#162235!important;margin:0 0 14px!important;letter-spacing:normal!important}
body.ftaps-app .ftaps-content :is(.ftm-panel-head,.oq-v346-head,.oq-v291-head,.programmi-admin-hero-v259,.programmi-edit-head-v355,.attivita-calendar-heading-v352,.oq-v346-panel-title,.oq-v347-section-head){background:#fff!important;color:#162235!important;border:1px solid #e3e9f0!important;border-radius:14px!important;box-shadow:none!important;padding:19px!important}
body.ftaps-app .ftaps-content :is(.ftm-panel-head,.oq-v346-head,.oq-v291-head,.programmi-admin-hero-v259,.programmi-edit-head-v355,.attivita-calendar-heading-v352,.oq-v346-panel-title,.oq-v347-section-head) :is(h1,h2){color:#162235!important;font-size:30px!important;line-height:1.15!important;text-shadow:none!important}
body.ftaps-app .ftaps-content :is(.eyebrow,.small-note,.field-note,.hint,.ftm-help){font-size:13px!important;color:#6e7b8d!important;line-height:1.5!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) :is(.ftm-filter,.ftadv-filter-form,.ftinv-filter-form,.oq-search,.registration-filter-form,.oq-v345-filterbar,.ftdoc-filter){background:#fff!important;border:1px solid #e3e9f0!important;border-radius:14px!important;padding:14px!important;gap:14px!important;box-shadow:none!important}
body.ftaps-app .ftaps-content :is(.staff-editor-fieldset,fieldset){border:1px solid #e3e9f0!important;border-radius:12px!important;padding:16px!important;background:#fff!important;box-shadow:none!important}
body.ftaps-app .ftaps-content :is(.staff-editor-fieldset,fieldset) legend{font-size:14px;color:#175ca7;font-weight:700;padding:0 7px}
body.ftaps-app .ftaps-content :is(.ftm-kpi,.staff-summary>article:not(.mini-health-card)){background:#fff!important;border:1px solid #e3e9f0!important;border-radius:14px!important;box-shadow:0 2px 6px #16324d08!important;padding:17px!important;color:#162235!important}
body.ftaps-app .ftaps-content :is(.ftm-kpi,.staff-summary>article:not(.mini-health-card)) strong{font-size:22px!important;color:#162235!important}
body.ftaps-app .ftaps-content :is(.ftm-kpi,.staff-summary>article:not(.mini-health-card)) span{font-size:13px!important;color:#6e7b8d!important}
body.ftaps-app .ftaps-content :is(.ftm-table-wrap,.table-wrap,.oq-table-wrap,.staff-table-wrap,.iscrizioni-table-wrap,.mini-health-table-wrap){background:#fff!important;border:1px solid #e3e9f0!important;border-radius:14px!important;box-shadow:0 2px 6px #16324d08!important;max-width:100%!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) table :is(th,td){border-left:0!important;border-right:0!important;letter-spacing:normal;vertical-align:middle}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) table tbody tr:nth-child(even){background:#fff!important}body.ftaps-app :is(.ftaps-content,.ftaps-modal) table tbody tr:hover{background:#fbfdff!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) table .btn{font-size:12px!important;min-height:34px!important;padding:0 10px!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) .ft-table-tools,body.ftaps-app :is(.ftaps-content,.ftaps-modal) .ft-table-pager{background:#fff;border:1px solid #e3e9f0;border-radius:10px;box-shadow:none;font-size:13px;padding:12px;margin:12px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) :is(.ft-table-pager button,.registration-pager a,.ftdoc-pagination a){background:#fff!important;border:1px solid #e3e9f0!important;color:#405066!important;border-radius:9px!important;font-size:13px!important;padding:8px 12px!important;box-shadow:none!important}
body.ftaps-app .ftaps-content :is(.staff-edit-tabs,.ftdoc-tabs,.ft344-tabs,.oq-dashboard-tabs,.oq-v345-tabs,.oq-v346-tabs,.ftinv-section-nav,.ftrm-tabs){display:flex!important;gap:4px!important;padding:4px!important;background:#e9eef4!important;border:0!important;border-radius:10px!important;box-shadow:none!important;overflow:auto;max-width:100%;margin-bottom:16px!important;flex-wrap:wrap}
body.ftaps-app .ftaps-content :is(.staff-edit-tabs,.ftdoc-tabs,.ft344-tabs,.oq-dashboard-tabs,.oq-v345-tabs,.oq-v346-tabs,.ftinv-section-nav,.ftrm-tabs) :is(a,button){border:0!important;background:transparent!important;color:#667488!important;border-radius:7px!important;padding:8px 12px!important;font-size:14px!important;font-weight:700!important;box-shadow:none!important;min-height:40px}
body.ftaps-app .ftaps-content :is(.staff-edit-tabs,.ftdoc-tabs,.ft344-tabs,.oq-dashboard-tabs,.oq-v345-tabs,.oq-v346-tabs,.ftinv-section-nav,.ftrm-tabs) :is(.active,.is-active,[aria-current=page]){background:#fff!important;color:#175ca7!important;box-shadow:0 2px 7px #1229461a!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) :is(.error-box,.message-box.error){background:#fff0f0!important;color:#9b3434!important;border:1px solid #efc7c7!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) :is(.warning-box,.message-box.warning){background:#fff8df!important;color:#745710!important;border:1px solid #f2dc8e!important}
body.ftaps-app .ftdoc-app{--ftdoc-ink:#162235;--ftdoc-accent:#175ca7;--ftdoc-line:#e3e9f0;--ftdoc-muted:#6e7b8d}
body.ftaps-app .ftdoc-editor-grid{gap:16px}.ftaps-content .ftdoc-paper{background:#fff;color:#162235}.ftaps-content .ftdoc-paper :is(h1,h2,h3,h4,table,th,td){font-size:revert!important}
body.ftaps-app .ft-ai-panel{background:#fff;border:1px solid #e3e9f0;border-radius:14px}.ftaps-content :is(.ft-ai-head,.ft-ai-head-ident){background:#122946;color:#fff}
body.ftaps-app .ftaps-menu-backdrop{display:none;position:fixed;inset:0;background:#0d1c309e;border:0;z-index:29}.ftaps-menu-lock{overflow:hidden}
body.ftaps-app .ftaps-dialog-layer{position:fixed;inset:0;z-index:70;display:grid;place-items:center;padding:20px;background:#0d1c30aa}.ftaps-dialog-layer .ftaps-modal{display:block;border:0;padding:0;position:relative;margin:0;color:#162235}
body.ftaps-app .ftaps-modal .ftaps-form-body{padding:21px 23px!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;max-width:none!important}
body.ftaps-app .ftaps-modal .ftaps-form-body>h3:first-of-type{display:none}.ftaps-modal .ftaps-modal-close{border:0;background:#f2f4f7;border-radius:8px;width:34px;height:34px;display:grid;place-items:center;color:#687587;cursor:pointer}.ftaps-dialog-layer .ftaps-modal header h2{font-weight:700}
body.ftaps-app .ftaps-auth-shell{min-height:100vh;background:#f3f6f9}.ftaps-auth-brand{background:#122946;color:#fff}.ftaps-auth-brand .ftaps-brand{width:max-content;max-width:100%;border:0}.ftaps-auth-content{max-width:610px;margin:auto;padding:36px 20px}.ftaps-auth-content>.page-hero{background:transparent!important;min-height:0!important;padding:0!important;color:#162235!important;margin-bottom:20px}.ftaps-auth-content>.page-hero:after{display:none}.ftaps-auth-content>.page-hero h1{font-size:30px!important;color:#162235!important;text-shadow:none!important;line-height:1.2!important}.ftaps-auth-content>.page-hero .lead{font-size:14px!important}.ftaps-auth-content>.section{padding:0!important}.ftaps-auth-content>.section>.container{width:100%!important}.ftaps-auth-content .login-wrap{max-width:none!important;background:#fff!important;border:1px solid #e3e9f0!important;border-radius:14px!important;padding:23px!important;box-shadow:0 2px 6px #16324d08!important}
body.admin-bar.ftaps-app .ftaps-sidebar,body.admin-bar.ftaps-app .ftaps-topbar{top:32px}
@media(max-width:1100px){body.ftaps-app :is(.ftaps-content,.ftaps-modal) :is(.ftm-filter,.ftadv-filter-form,.ftinv-filter-form,.oq-search,.registration-filter-form){grid-template-columns:1fr 1fr!important}}
@media(max-width:800px){body.ftaps-app .ftaps-sidebar{width:264px}.ftaps-js .ftaps-sidebar{visibility:hidden}.ftaps-js .ftaps-sidebar.ftaps-sidebar-open{visibility:visible}.ftaps-menu-lock .ftaps-menu-backdrop{display:block!important}.ftaps-content .ftm-two-cols,.ftaps-content .ftadv-two-cols{grid-template-columns:1fr!important}.ftaps-content .ftaps-head-actions{width:auto}.ftaps-popover{right:16px!important}.ftaps-auth-content{padding:25px 16px}}
@media(max-width:782px){body.admin-bar.ftaps-app .ftaps-sidebar,body.admin-bar.ftaps-app .ftaps-topbar{top:46px}}
@media(max-width:540px){body.ftaps-app :is(.ftaps-content,.ftaps-modal) :is(.form-grid,.ftm-form-grid,.oq-calendar-form-grid,.ftm-filter,.ftadv-filter-form,.ftinv-filter-form,.oq-search,.registration-filter-form){grid-template-columns:1fr!important}.ftaps-page-head .ftaps-head-actions{width:100%}.ftaps-page-head .ftaps-head-actions>a,.ftaps-page-head .ftaps-head-actions>button{width:100%}.ftaps-search-results{position:fixed;left:14px;top:66px;width:calc(100vw - 28px);min-width:0}.ftaps-dialog-layer{padding:10px!important}.ftaps-modal{max-height:96vh!important}.ftaps-content .ftm-card-head{flex-wrap:wrap!important}}
@media(prefers-reduced-motion:reduce){body.ftaps-app *,body.ftaps-app *::before,body.ftaps-app *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
@media print{body.ftaps-app .ftaps-menu-backdrop,body.ftaps-app .ftaps-popover,body.ftaps-app .ftaps-search-results,body.ftaps-app .ftaps-head-actions,body.ftaps-app .ftaps-skip{display:none!important}body.ftaps-app .ftaps-content{max-width:none!important}body.ftaps-app .ftaps-dialog-layer{position:static!important;padding:0!important;background:#fff!important}body.ftaps-app .ftaps-modal{max-height:none!important;box-shadow:none!important}body.ftaps-app .ftaps-modal header button{display:none!important}}
body.ftaps-app .ftaps-confirm-body{padding:21px 23px;font-size:14px;line-height:1.55}body.ftaps-app .ftaps-confirm-body .ftaps-form-footer{margin-top:20px}.ftaps-confirm-danger{background:#ca4a4a!important;border-color:#ca4a4a!important}.ftaps-confirm-danger:hover{background:#ad3b3b!important}
body.ftaps-app .ftaps-editor-action{margin:0 0 16px}.ftaps-content .ftm-inline-form{margin:0!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) .ft-btn-icon{display:inline-flex!important;align-items:center;justify-content:center;width:18px!important;height:18px!important;padding:0!important;flex:0 0 18px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important}
/* Field layout follows the original field/span/control spacing even in legacy PHP labels. */
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) form label:not(.check):not(.check-field):not(:has(input[type=checkbox],input[type=radio])){display:block!important;margin-bottom:13px!important;font-size:13px!important;font-weight:750!important;color:#566476!important;line-height:1.5!important}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) form label> :is(input:not([type=checkbox]):not([type=radio]),select,textarea){display:block!important;margin-top:6px!important;font-weight:400!important;line-height:1.5!important}
body.ftaps-app :is(.ftaps-content,.ftaps-auth-content,.ftaps-modal) form :is(input,select,textarea){font-weight:400!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) .ftm-badge:is(.success,.ok,.active,.valid){background:#e6f5ef!important;color:#147354!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) .ftm-badge:is(.warning,.pending,.expiring){background:#fff4d6!important;color:#946b00!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) .ftm-badge:is(.error,.danger,.expired,.inactive){background:#feeeee!important;color:#ca4a4a!important}
body.ftaps-app .ft-ai-widget :is(.ft-ai-panel,.ft-ai-chat){background:#fff!important;border-color:#e3e9f0!important;border-radius:14px!important;color:#162235!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
body.ftaps-app .ft-ai-widget :is(input,textarea){border:1px solid #dce3ea!important;border-radius:8px!important;background:#fff!important;color:#162235!important;font-size:14px!important}
body.ftaps-app .ftaps-content :is(.staff-card,.staff-editor-card,.ftm-panel,.ftac-card,.oq-dashboard-panel,.oq-calendar-section) :is(h3,h4){font-weight:400!important}
body.ftaps-app .ftaps-content :is(.ftm-panel-head,.oq-v346-head,.oq-v291-head,.programmi-admin-hero-v259,.programmi-edit-head-v355,.attivita-calendar-heading-v352,.oq-v346-panel-title,.oq-v347-section-head) :is(h1,h2){font-weight:400!important}
body.ftaps-app .ftaps-content :is(.ftm-kpi,.staff-summary>article:not(.mini-health-card)) strong{font-weight:700!important}body.ftaps-app .ftaps-content :is(.ftm-kpi,.staff-summary>article:not(.mini-health-card)) span{font-weight:650!important}
body.ftaps-app :is(.ftaps-content,.ftaps-modal) table :is(th,strong){font-weight:700!important}
body.ftaps-app .ftaps-content :is(.oq-step,.oq-admin-section,.ftinv-flow-card,.ftinv-stage-card,.ftm-module-card){background:#fff!important;border:1px solid #e3e9f0!important;border-radius:14px!important;box-shadow:0 2px 6px #16324d08!important;color:#162235!important;padding:19px!important}
body.ftaps-app .ftaps-content .oq-form .oq-step h2{color:#162235!important;font-size:17px!important;font-weight:400!important;background:transparent!important}
body.ftaps-app .ftaps-content :is(.oq-step,.oq-admin-section,.ftinv-flow-card,.ftinv-stage-card) :is(p,.small-note){color:#6e7b8d!important;font-size:14px!important}
/* Tab controls use the supplied UI kit's dimensions. */
body.ftaps-app .ftaps-content :is(.staff-edit-tabs,.ftdoc-tabs,.ft344-tabs,.oq-dashboard-tabs,.oq-v345-tabs,.oq-v346-tabs,.ftinv-section-nav,.ftrm-tabs){width:max-content;max-width:100%;flex-wrap:nowrap!important}
body.ftaps-app .ftaps-content :is(.staff-edit-tabs,.ftdoc-tabs,.ft344-tabs,.oq-dashboard-tabs,.oq-v345-tabs,.oq-v346-tabs,.ftinv-section-nav,.ftrm-tabs) :is(a,button){font-size:12px!important;min-height:0!important;white-space:nowrap;line-height:1.45!important}
