/* Bonifica archivi — interfaccia mobile-first, isolata dal resto della console. */
.ba-app{
  --ba-navy:var(--navy,#0f2240);
  --ba-blue:var(--blue,#1d4ed8);
  --ba-teal:#0f766e;
  --ba-green:#15803d;
  --ba-amber:#b45309;
  --ba-red:#b91c1c;
  --ba-muted:var(--muted,#64748b);
  --ba-border:var(--border,#e2e8f0);
  min-height:520px;
  padding:12px;
  color:var(--text,#1e293b);
  background:#f8fafc;
}
.ba-app *{box-sizing:border-box}
.ba-app button,.ba-app input,.ba-app select,.ba-app textarea{font:inherit}
.ba-app button:focus-visible,.ba-app input:focus-visible,.ba-app select:focus-visible,.ba-app textarea:focus-visible{
  outline:3px solid rgba(29,78,216,.28);
  outline-offset:2px;
}
.ba-app button:disabled,.ba-app input:disabled{cursor:wait;opacity:.62}
#modal-footer .ba-home-footer-btn{min-height:48px;padding:10px 16px;font-weight:850}

.ba-hero{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-bottom:12px;
  padding:18px;
  overflow:hidden;
  border-radius:16px;
  color:#fff;
  background:
    radial-gradient(circle at 95% 0,rgba(255,255,255,.17),transparent 34%),
    linear-gradient(135deg,#0f2240 0%,#164e63 52%,#0f766e 100%);
  box-shadow:0 12px 28px rgba(15,34,64,.16);
}
.ba-kicker{
  margin-bottom:5px;
  color:#99f6e4;
  font-size:10px;
  font-weight:850;
  letter-spacing:1.25px;
  text-transform:uppercase;
}
.ba-hero h2{margin:0;font-size:22px;line-height:1.18;color:#fff}
.ba-hero p{max-width:760px;margin:7px 0 0;color:#dbeafe;font-size:12px;line-height:1.55}
.ba-hero-lock{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:1px 9px;
  align-items:center;
  padding:11px 12px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:12px;
  background:rgba(255,255,255,.11);
}
.ba-hero-lock>span{grid-row:1/3;font-size:24px}
.ba-hero-lock strong{font-size:11.5px;letter-spacing:.25px}
.ba-hero-lock small{color:#dbeafe;font-size:9.5px;line-height:1.35}

.ba-lock-notice{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-bottom:14px;
  padding:14px;
  border:2px solid #f59e0b;
  border-radius:13px;
  color:#78350f;
  background:#fffbeb;
}
.ba-lock-icon{flex:0 0 auto;font-size:25px;line-height:1}
.ba-lock-notice strong{font-size:13px}
.ba-lock-notice p{margin:3px 0 0;font-size:11px;line-height:1.55}
.ba-lock-anomaly{display:block;margin-top:8px;padding-top:8px;border-top:1px solid #fcd34d;font-size:10.5px}

.ba-loading{
  min-height:460px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:32px;
  color:var(--ba-navy);
  text-align:center;
}
.ba-loading strong{font-size:16px}
.ba-loading small{color:var(--ba-muted);font-size:11px}
.ba-spinner{
  width:38px;height:38px;
  border:4px solid #ccfbf1;
  border-top-color:var(--ba-teal);
  border-radius:50%;
  animation:ba-spin .8s linear infinite;
}
@keyframes ba-spin{to{transform:rotate(360deg)}}

.ba-list-toolbar,.ba-detail-toolbar{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-bottom:12px;
  padding:13px;
  border:1px solid var(--ba-border);
  border-radius:12px;
  background:#fff;
}
.ba-list-toolbar h3{margin:0;color:var(--ba-navy);font-size:15px}
.ba-list-toolbar p{margin:3px 0 0;color:var(--ba-muted);font-size:10.5px;line-height:1.45}
.ba-toolbar-actions{display:grid;grid-template-columns:1fr;gap:8px}
.ba-toolbar-actions .btn,.ba-detail-toolbar .btn{justify-content:center;min-height:44px}
.ba-detail-state{display:flex;flex-wrap:wrap;gap:8px;align-items:center;color:var(--ba-muted);font-size:10px}

.ba-practice-list{display:grid;grid-template-columns:1fr;gap:10px}
.ba-practice-card{
  display:flex;
  flex-direction:column;
  gap:13px;
  min-width:0;
  padding:15px;
  border:1px solid var(--ba-border);
  border-radius:14px;
  background:#fff;
  box-shadow:0 3px 10px rgba(15,34,64,.04);
}
.ba-practice-top{display:flex;flex-direction:column;gap:9px;align-items:flex-start}
.ba-practice-id{margin-bottom:3px;color:var(--ba-muted);font-size:9px;font-weight:800;letter-spacing:.8px;text-transform:uppercase}
.ba-practice-card h3{margin:0;color:var(--ba-navy);font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.ba-card-meta{display:grid;grid-template-columns:1fr;gap:8px;margin:0}
.ba-card-meta>div{min-width:0;padding:8px 9px;border-radius:8px;background:#f8fafc}
.ba-card-meta dt{color:var(--ba-muted);font-size:8.5px;font-weight:800;letter-spacing:.5px;text-transform:uppercase}
.ba-card-meta dd{margin:2px 0 0;color:#334155;font-size:10.5px;line-height:1.35;overflow-wrap:anywhere}
.ba-card-actions{display:flex;margin-top:auto}
.ba-card-actions .btn{width:100%;justify-content:center;min-height:44px}
.ba-status{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border:1px solid;border-radius:999px;font-size:9.5px;font-weight:800;line-height:1.2}
.ba-status-draft{border-color:#cbd5e1;color:#475569;background:#f8fafc}
.ba-status-progress{border-color:#7dd3fc;color:#075985;background:#f0f9ff}
.ba-status-waiting{border-color:#fcd34d;color:#92400e;background:#fffbeb}
.ba-status-recorded{border-color:#86efac;color:#166534;background:#f0fdf4}
.ba-status-neutral{border-color:#bfdbfe;color:#1e40af;background:#eff6ff}

.ba-empty{
  padding:38px 20px;
  border:1px dashed #94a3b8;
  border-radius:14px;
  color:var(--ba-muted);
  background:#fff;
  text-align:center;
}
.ba-empty>span{display:block;margin-bottom:7px;font-size:31px}
.ba-empty strong{display:block;color:var(--ba-navy);font-size:13px}
.ba-empty p{max-width:560px;margin:5px auto 0;font-size:10.5px;line-height:1.5}
.ba-empty-small{padding:24px 14px}

.ba-form{display:flex;flex-direction:column;gap:12px}
.ba-form fieldset{
  min-width:0;
  margin:0;
  padding:14px;
  border:1px solid var(--ba-border);
  border-radius:13px;
  background:#fff;
}
.ba-form legend{padding:0 6px;color:var(--ba-navy);font-size:12px;font-weight:850}
.ba-legend-help{margin:0 0 10px;color:var(--ba-muted);font-size:10.5px;line-height:1.45}
.ba-form-grid,.ba-rule-grid{display:grid;grid-template-columns:1fr;gap:12px}
.ba-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.ba-field label,.ba-label{
  color:#475569;
  font-size:9.5px;
  font-weight:800;
  letter-spacing:.45px;
  text-transform:uppercase;
}
.ba-field label span,.ba-label span{color:var(--ba-red)}
.ba-app input[type="text"],.ba-app input[type="search"],.ba-app input[type="number"],.ba-app input[type="date"],.ba-app input[type="datetime-local"],.ba-app select,.ba-app textarea{
  width:100%;
  min-height:44px;
  padding:9px 11px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  color:#1e293b;
  background:#fff;
  font-size:12px;
}
.ba-app textarea{min-height:88px;resize:vertical;line-height:1.5}
.ba-app input[readonly]{color:#475569;background:#f1f5f9;cursor:default}
.ba-app input:focus,.ba-app select:focus,.ba-app textarea:focus{border-color:var(--ba-blue);box-shadow:0 0 0 3px rgba(29,78,216,.12);outline:none}
.ba-field small{color:var(--ba-muted);font-size:9.5px;line-height:1.45}
.ba-other-asset{margin-top:11px}
.ba-check-grid{display:grid;grid-template-columns:1fr;gap:7px}
.ba-check-card{position:relative;display:block;cursor:pointer}
.ba-check-card input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.ba-check-card span{
  display:flex;align-items:center;min-height:44px;padding:9px 11px;
  border:1px solid #cbd5e1;border-radius:9px;color:#334155;background:#f8fafc;font-size:11px;font-weight:700;
}
.ba-check-card input:checked+span{border-color:#14b8a6;color:#115e59;background:#f0fdfa;box-shadow:inset 0 0 0 1px #14b8a6}
.ba-check-card input:checked+span::before{content:"✓";margin-right:7px;color:var(--ba-teal);font-weight:900}
.ba-check-card input:focus-visible+span{outline:3px solid rgba(29,78,216,.28);outline-offset:2px}
.ba-radio-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ba-radio-row label{position:relative;cursor:pointer}
.ba-radio-row input{position:absolute;opacity:0}
.ba-radio-row span{display:grid;place-items:center;min-height:46px;border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc;color:#334155;font-size:12px;font-weight:800}
.ba-radio-row input:checked+span{border-color:var(--ba-blue);color:#1e40af;background:#eff6ff;box-shadow:inset 0 0 0 1px var(--ba-blue)}
.ba-radio-row input:focus-visible+span{outline:3px solid rgba(29,78,216,.28);outline-offset:2px}
.ba-medical-fields{margin-top:12px;padding:12px;border-left:3px solid #7c3aed;border-radius:8px;background:#f5f3ff}
.ba-medical-fields[hidden]{display:none}
.ba-form-note,.ba-form-actions,.ba-submit-box,.ba-report-actions{
  padding:14px;border:1px solid var(--ba-border);border-radius:12px;background:#fff;
}
.ba-form-note strong{color:var(--ba-navy);font-size:11.5px}
.ba-form-note p{margin:3px 0 0;color:var(--ba-muted);font-size:10px;line-height:1.5}
.ba-form-actions{display:flex;flex-direction:column-reverse;gap:8px}
.ba-form-actions .btn{justify-content:center;min-height:44px}

.ba-steps{
  display:grid;
  grid-template-columns:repeat(5,minmax(122px,1fr));
  gap:6px;
  margin-bottom:14px;
  padding:2px 0 7px;
  overflow-x:auto;
  scrollbar-width:thin;
}
.ba-step{
  display:flex;align-items:center;gap:7px;min-height:46px;padding:7px 9px;
  border:1px solid var(--ba-border);border-radius:10px;color:var(--ba-muted);background:#fff;cursor:pointer;text-align:left;
}
.ba-step>span{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;border:1px solid #cbd5e1;border-radius:50%;background:#f8fafc;font-size:10px;font-weight:900}
.ba-step strong{font-size:9.5px;white-space:nowrap}
.ba-step.is-current{border-color:#60a5fa;color:#1e40af;background:#eff6ff;box-shadow:0 0 0 1px #60a5fa}
.ba-step.is-current>span{border-color:var(--ba-blue);color:#fff;background:var(--ba-blue)}
.ba-step.is-complete:not(.is-current){border-color:#86efac;color:#166534;background:#f0fdf4}
.ba-step.is-complete:not(.is-current)>span{border-color:#22c55e;color:#fff;background:#16a34a}
.ba-step-panel{min-width:0;padding:14px;border:1px solid var(--ba-border);border-radius:14px;background:#fff;box-shadow:0 3px 12px rgba(15,34,64,.04)}
.ba-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--ba-border)}
.ba-section-heading span{display:block;margin-bottom:2px;color:var(--ba-teal);font-size:9px;font-weight:900;letter-spacing:.85px;text-transform:uppercase}
.ba-section-heading h3{margin:0;color:var(--ba-navy);font-size:17px}
.ba-section-heading p{max-width:760px;margin:4px 0 0;color:var(--ba-muted);font-size:10.5px;line-height:1.5}

.ba-two-columns,.ba-report-grid{display:grid;grid-template-columns:1fr;gap:10px}
.ba-panel{min-width:0;padding:14px;border:1px solid var(--ba-border);border-radius:12px;background:#fff}
.ba-panel>h4,.ba-panel-heading h4{margin:0 0 11px;color:var(--ba-navy);font-size:12.5px}
.ba-panel-heading{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:10px}
.ba-panel-heading h4{margin-bottom:2px}
.ba-panel-heading p{margin:0;color:var(--ba-muted);font-size:9.5px}
.ba-plain-language{background:#f8fafc}
.ba-plain-language ul{margin:0;padding-left:18px;color:#475569;font-size:10.5px;line-height:1.55}
.ba-plain-language li+li{margin-top:5px}
.ba-metrics{display:grid;grid-template-columns:1fr;gap:7px}
.ba-metrics>div{min-width:0;padding:9px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}
.ba-metrics span{display:block;color:var(--ba-muted);font-size:8.5px;font-weight:800;letter-spacing:.45px;text-transform:uppercase}
.ba-metrics strong{display:block;margin-top:3px;color:var(--ba-navy);font-size:11px;overflow:hidden;text-overflow:ellipsis}
.ba-mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important}

.ba-manifest-form{margin-top:11px}
.ba-file-box{display:grid;grid-template-columns:1fr;gap:12px;padding:16px;border:2px dashed #5eead4;border-radius:13px;background:#f0fdfa}
.ba-file-box strong{color:#134e4a;font-size:12.5px}
.ba-file-box p{margin:3px 0 0;color:#475569;font-size:10px;line-height:1.5}
.ba-file-box>label{color:#115e59;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.5px}
.ba-file-box input[type="file"]{width:100%;min-height:46px;color:#334155;font-size:10.5px}
.ba-file-box input[type="file"]::file-selector-button{min-height:40px;margin-right:9px;padding:8px 12px;border:1px solid #0f766e;border-radius:8px;color:#fff;background:#0f766e;font-weight:800;cursor:pointer}
.ba-manifest-preview{margin-top:10px}
.ba-inline-loading{padding:12px;border:1px solid #bae6fd;border-radius:9px;color:#075985;background:#f0f9ff;font-size:10.5px}
.ba-preview-ok{padding:14px;border:1px solid #86efac;border-radius:12px;background:#f0fdf4}
.ba-preview-head{display:flex;align-items:center;gap:9px}
.ba-preview-head>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;color:#fff;background:#16a34a;font-weight:900}
.ba-preview-head strong{display:block;color:#166534;font-size:11.5px}
.ba-preview-head p{margin:2px 0 0;color:#475569;font-size:9.5px;overflow-wrap:anywhere}
.ba-preview-ok dl{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:11px 0}
.ba-preview-ok dl>div{padding:7px;border-radius:7px;background:#fff}
.ba-preview-ok dt{color:var(--ba-muted);font-size:8px;font-weight:800;text-transform:uppercase}
.ba-preview-ok dd{margin:2px 0 0;color:var(--ba-navy);font-size:11px;font-weight:800}
.ba-preview-privacy{margin:0 0 10px;color:#166534;font-size:9.5px;line-height:1.45}
.ba-preview-ok .btn{width:100%;justify-content:center;min-height:44px}
.ba-scanner-proof{margin:10px 0;padding:11px;border:1px solid #99f6e4;border-radius:9px;background:#fff}
.ba-scanner-proof-head{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
.ba-scanner-proof-head strong{color:#115e59;font-size:10px}
.ba-scanner-proof-head span{color:#475569;font-size:9px;overflow-wrap:anywhere}
.ba-scanner-proof dl{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}
.ba-scanner-proof dl>div{min-width:0;padding:7px;border-radius:7px;background:#f8fafc}
.ba-scanner-proof dt{color:var(--ba-muted);font-size:7.5px;font-weight:850;letter-spacing:.35px;text-transform:uppercase}
.ba-scanner-proof dd{margin:2px 0 0;color:var(--ba-navy);font-size:9.5px;font-weight:800;overflow-wrap:anywhere}
.ba-scanner-proof .ba-info,.ba-scanner-proof .ba-warning{margin-bottom:0}
.ba-partial-confirm{border-color:#f59e0b;color:#78350f;background:#fffbeb}

.ba-info,.ba-warning,.ba-error{
  margin:10px 0;padding:13px;border:1px solid;border-radius:11px;
}
.ba-info{border-color:#7dd3fc;color:#075985;background:#f0f9ff}
.ba-warning{border-color:#fbbf24;color:#78350f;background:#fffbeb}
.ba-error{border-color:#fca5a5;color:#991b1b;background:#fef2f2}
.ba-info strong,.ba-warning strong,.ba-error strong{font-size:11.5px}
.ba-info p,.ba-warning p,.ba-error p{margin:3px 0 0;font-size:10px;line-height:1.5}
.ba-error .btn{margin-top:10px}

.ba-retention-form,.ba-declarations-form{display:flex;flex-direction:column;gap:11px}
.ba-edit-group{padding:12px;border:1px solid var(--ba-border);border-radius:10px;background:#f8fafc}
.ba-edit-group h5{margin:0 0 10px;color:var(--ba-navy);font-size:10.5px;letter-spacing:.2px}
.ba-edit-group .ba-field+.ba-field{margin-top:0}
.ba-rule{position:relative;padding:13px;border:1px solid #cbd5e1;border-radius:11px;background:#f8fafc}
.ba-rule+.ba-rule{margin-top:9px}
.ba-rule-number{margin-bottom:9px;color:var(--ba-teal);font-size:9px;font-weight:900;letter-spacing:.7px;text-transform:uppercase}
.ba-text-button{min-height:36px;margin-top:8px;padding:5px 0;border:0;color:#475569;background:transparent;font-size:9.5px;font-weight:750;text-decoration:underline;cursor:pointer}
.ba-general-note{margin-top:4px}
.ba-retention-list{display:flex;flex-direction:column;gap:8px}
.ba-retention-list article{padding:11px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}
.ba-retention-list article>div{display:flex;justify-content:space-between;gap:9px;align-items:flex-start}
.ba-retention-list strong{color:var(--ba-navy);font-size:10.5px}
.ba-retention-list span{flex:0 0 auto;padding:2px 7px;border-radius:999px;color:#1e40af;background:#dbeafe;font-size:8.5px;font-weight:850}
.ba-retention-list p{margin:5px 0;color:#475569;font-size:9.5px;line-height:1.5;white-space:pre-wrap}
.ba-retention-list small{color:var(--ba-muted);font-size:8.5px}
.ba-note-block{margin-top:9px;padding:10px;border-left:3px solid #94a3b8;background:#f8fafc}
.ba-note-block strong{color:var(--ba-navy);font-size:10px}
.ba-note-block p{margin:3px 0 0;color:#475569;font-size:9.5px;line-height:1.5;white-space:pre-wrap}

.ba-attestation-layout{align-items:start}
.ba-declaration-readonly{display:flex;flex-direction:column;gap:8px}
.ba-declaration-readonly>div{padding:10px;border-radius:8px;background:#f8fafc}
.ba-declaration-readonly strong{color:var(--ba-navy);font-size:10px}
.ba-declaration-readonly p{margin:4px 0 0;color:#475569;font-size:9.5px;line-height:1.5;white-space:pre-wrap}
.ba-attestation{display:flex;gap:9px;align-items:flex-start;padding:11px;border:1px solid var(--ba-border);border-radius:9px;background:#f8fafc}
.ba-attestation+.ba-attestation{margin-top:7px}
.ba-attestation.is-recorded{border-color:#86efac;background:#f0fdf4}
.ba-attestation-mark{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;color:#fff;background:#16a34a;font-weight:900}
.ba-attestation strong{color:#166534;font-size:10.5px}
.ba-attestation p{margin:2px 0;color:#334155;font-size:9.5px}
.ba-attestation small{display:block;color:#64748b;font-size:8.5px;line-height:1.4}
.ba-attestation-form{margin-top:12px;padding-top:12px;border-top:1px solid var(--ba-border)}
.ba-attestation-form h4{margin:0 0 10px;color:var(--ba-navy);font-size:11.5px}
.ba-accept{display:flex;align-items:flex-start;gap:9px;margin-top:11px;padding:11px;border:1px solid #bfdbfe;border-radius:9px;color:#1e3a8a;background:#eff6ff;cursor:pointer}
.ba-accept input{flex:0 0 auto;width:19px;height:19px;margin-top:1px;accent-color:var(--ba-blue)}
.ba-accept span{font-size:9.5px;line-height:1.5;text-transform:none;letter-spacing:0}
.ba-accept strong{display:block;font-size:10px}
.ba-submit-box{margin-top:12px;border-color:#c4b5fd;background:#f5f3ff}
.ba-submit-box h4{margin:0;color:#4c1d95;font-size:12px}
.ba-submit-box>p{margin:3px 0;color:#6d28d9;font-size:9.5px}
.ba-submit-box .btn{width:100%;justify-content:center;min-height:44px;margin-top:10px}

.ba-report-banner{display:flex;gap:10px;align-items:flex-start;margin-bottom:11px;padding:13px;border:1px solid #fcd34d;border-radius:11px;color:#78350f;background:#fffbeb}
.ba-report-banner.is-ready{border-color:#86efac;color:#166534;background:#f0fdf4}
.ba-report-banner>span{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;border-radius:50%;color:#fff;background:#d97706;font-weight:900}
.ba-report-banner.is-ready>span{background:#16a34a}
.ba-report-banner strong{font-size:11px}
.ba-report-banner p{margin:2px 0 0;font-size:9.5px;line-height:1.45}
.ba-detail-list{display:flex;flex-direction:column;gap:7px;margin:0}
.ba-detail-list>div{padding-bottom:7px;border-bottom:1px solid #e2e8f0}
.ba-detail-list>div:last-child{padding-bottom:0;border-bottom:0}
.ba-detail-list dt{color:var(--ba-muted);font-size:8.5px;font-weight:800;text-transform:uppercase;letter-spacing:.4px}
.ba-detail-list dd{margin:2px 0 0;color:#334155;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.ba-report-retention{margin:10px 0}
.ba-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--ba-border);border-radius:9px}
.ba-events{width:100%;min-width:650px;border-collapse:collapse;font-size:9.5px}
.ba-events th{padding:8px 9px;border-bottom:1px solid var(--ba-border);color:#475569;background:#f8fafc;font-size:8px;letter-spacing:.45px;text-transform:uppercase;text-align:left}
.ba-events td{padding:8px 9px;border-bottom:1px solid #f1f5f9;color:#334155;vertical-align:top}
.ba-events tbody tr:last-child td{border-bottom:0}
.ba-chain{display:inline-flex;padding:2px 6px;border-radius:999px;font-size:8px;font-weight:800}
.ba-chain.is-ok{color:#166534;background:#dcfce7}
.ba-chain.is-bad{color:#991b1b;background:#fee2e2}
.ba-report-actions{margin-top:10px;text-align:center}
.ba-report-actions .btn{width:100%;justify-content:center;min-height:46px}
.ba-report-actions p{max-width:760px;margin:8px auto 0;color:var(--ba-muted);font-size:9px;line-height:1.5}

/* Azioni operative: il browser prepara comandi, ma non opera sul filesystem. */
.ba-action-safety{
  display:flex;gap:11px;align-items:flex-start;margin:0 0 12px;padding:14px;
  border:1px solid #67e8f9;border-left:4px solid #0891b2;border-radius:12px;
  color:#164e63;background:#ecfeff;
}
.ba-action-safety>span{flex:0 0 auto;font-size:24px;line-height:1}
.ba-action-safety strong{font-size:11.5px}
.ba-action-safety p{margin:3px 0 0;font-size:10px;line-height:1.55}
.ba-security-panel{margin:0 0 12px;border-color:#a5f3fc;background:#f8feff}
.ba-security-panel>.ba-panel-heading{align-items:flex-start}
.ba-security-panel>.ba-panel-heading .btn{flex:0 0 auto;min-height:42px}
.ba-security-panel .btn-danger{border-color:#991b1b;color:#fff;background:#b91c1c}
.ba-security-server{
  display:flex;flex-direction:column;gap:11px;margin-bottom:12px;padding:13px;
  border:1px solid #93c5fd;border-radius:11px;background:#eff6ff;
}
.ba-security-server strong{display:block;color:#1e3a8a;font-size:9px;letter-spacing:.35px;text-transform:uppercase}
.ba-security-server code{display:block;margin-top:5px;color:#172554;font-size:9px;line-height:1.55;overflow-wrap:anywhere}
.ba-security-server p{margin:4px 0 0;color:#475569;font-size:9px;line-height:1.45}
.ba-security-server .btn{width:100%;min-height:44px;justify-content:center}
.ba-security-columns{display:grid;grid-template-columns:1fr;gap:12px;margin-bottom:12px}
.ba-security-columns>div{min-width:0;padding:12px;border:1px solid #cbd5e1;border-radius:11px;background:#fff}
.ba-security-columns h5{margin:0 0 8px;color:var(--ba-navy);font-size:10px;letter-spacing:.35px;text-transform:uppercase}
.ba-security-devices,.ba-security-roles{display:flex;flex-direction:column;gap:8px}
.ba-security-device{min-width:0;padding:10px;border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc}
.ba-security-device.is-trusted{border-color:#86efac;background:#f0fdf4}
.ba-security-device.is-revoked{opacity:.74}
.ba-security-device-head{display:flex;gap:8px;align-items:center;justify-content:space-between}
.ba-security-device-head div>span{display:block;color:#166534;font-size:7.5px;font-weight:900;letter-spacing:.45px;text-transform:uppercase}
.ba-security-device-head strong{display:block;margin-top:2px;color:var(--ba-navy);font-size:10px;overflow-wrap:anywhere}
.ba-security-device>code{display:block;margin-top:6px;color:#475569;font-size:8px;line-height:1.45;overflow-wrap:anywhere}
.ba-security-device>small{display:block;margin-top:3px;color:var(--ba-muted);font-size:8px}
.ba-security-device details,.ba-security-role details{margin-top:8px;border-top:1px solid #cbd5e1;padding-top:7px}
.ba-security-device summary,.ba-security-role summary{color:#991b1b;font-size:9px;font-weight:850;cursor:pointer}
.ba-security-device details p,.ba-security-role details p{margin:5px 0 8px;color:#64748b;font-size:8.5px;line-height:1.45}
.ba-security-revoke .btn,.ba-security-role-revoke .btn{width:100%;min-height:42px;margin-top:8px;justify-content:center}
.ba-security-role{display:grid;grid-template-columns:25px minmax(0,1fr);gap:8px;align-items:flex-start;padding:10px;border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc}
.ba-security-role>span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;color:#475569;background:#e2e8f0;font-weight:900}
.ba-security-role.is-active{border-color:#86efac;background:#f0fdf4}
.ba-security-role.is-active>span{color:#fff;background:#16a34a}
.ba-security-role strong{color:var(--ba-navy);font-size:10px}
.ba-security-role p{margin:2px 0;color:#475569;font-size:9px;line-height:1.4;overflow-wrap:anywhere}
.ba-security-role small{color:var(--ba-muted);font-size:8px;line-height:1.5}
.ba-security-readonly{margin:8px 0 0;color:#64748b;font-size:8.5px;line-height:1.45}
.ba-security-pair,.ba-security-nomination{margin-top:12px;padding:13px;border:1px solid #5eead4;border-radius:11px;background:#f0fdfa}
.ba-security-pair>div:first-child>strong,.ba-security-nomination>div:first-child>strong{color:#115e59;font-size:11.5px}
.ba-security-pair>div:first-child>p,.ba-security-nomination>div:first-child>p{margin:3px 0 10px;color:#475569;font-size:9px;line-height:1.5}
.ba-security-pair>label{display:block;margin-bottom:5px;color:#115e59;font-size:9px;font-weight:850;text-transform:uppercase}
.ba-security-pair>input[type="file"]{width:100%;min-height:46px;color:#334155;font-size:9px}
.ba-security-pair>input[type="file"]::file-selector-button{min-height:38px;margin-right:7px;padding:7px 10px;border:1px solid #0f766e;border-radius:8px;color:#fff;background:#0f766e;font-weight:800;cursor:pointer}
.ba-security-pair form,.ba-security-nomination form{display:flex;flex-direction:column;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid #99f6e4}
.ba-security-pair form>.btn,.ba-security-nomination form>.btn{width:100%;min-height:46px;justify-content:center}
.ba-security-confirmation{display:block;padding:8px;border:1px dashed #2563eb;border-radius:8px;color:#1e3a8a;background:#eff6ff;font-size:8.5px;line-height:1.45;overflow-wrap:anywhere;white-space:normal}
.ba-security-pending{margin:8px 0 0;color:#64748b;font-size:9px}
.ba-security-no-nominator{margin:12px 0 0}
.ba-scanner-verified{display:flex;gap:10px;align-items:flex-start;margin:0 0 11px;padding:12px;border:1px solid #86efac;border-radius:11px;color:#166534;background:#f0fdf4}
.ba-scanner-verified>span{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;color:#fff;background:#16a34a;font-weight:900}
.ba-scanner-verified strong{font-size:10.5px}.ba-scanner-verified p{margin:3px 0 0;font-size:8.5px;line-height:1.5}
.ba-action-asset{margin:0 0 11px;padding:11px;border-left:4px solid #0891b2;border-radius:9px;color:#164e63;background:#ecfeff}
.ba-action-asset>span{display:block;font-size:7.5px;font-weight:900;letter-spacing:.45px;text-transform:uppercase}
.ba-action-asset>strong{display:block;margin-top:2px;font-size:10.5px}.ba-action-asset>p{margin:2px 0 0;font-size:9px;line-height:1.45;overflow-wrap:anywhere}
.ba-action-asset-compact{margin:9px 0 3px}
.ba-action-create{margin-top:12px;background:#f8fafc}
.ba-action-create>p{margin-top:-5px}
.ba-action-batches{display:flex;flex-direction:column;gap:8px}
.ba-action-batch-card{
  display:flex;flex-direction:column;gap:11px;padding:12px;
  border:1px solid #cbd5e1;border-radius:11px;background:#fff;
}
.ba-action-batch-card>div:first-child>span{color:var(--ba-teal);font-size:8.5px;font-weight:900;letter-spacing:.55px;text-transform:uppercase}
.ba-action-batch-card h4{margin:3px 0 0;color:var(--ba-navy);font-size:12px}
.ba-action-batch-card p{margin:3px 0 0;color:var(--ba-muted);font-size:9px}
.ba-action-batch-side{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.ba-action-batch-side code{max-width:100%;overflow:hidden;color:#475569;font-size:9px;text-overflow:ellipsis}
.ba-action-batch-side .btn{min-height:42px;justify-content:center}

.ba-action-source{
  display:grid;grid-template-columns:1fr;gap:10px;padding:15px;
  border:2px dashed #2dd4bf;border-radius:13px;background:#f0fdfa;
}
.ba-action-source strong{color:#134e4a;font-size:12px}
.ba-action-source p{margin:3px 0 0;color:#475569;font-size:10px;line-height:1.5}
.ba-action-source code{padding:1px 4px;border-radius:4px;background:#ccfbf1;font-size:9px}
.ba-action-source>label{color:#115e59;font-size:9px;font-weight:850;letter-spacing:.45px;text-transform:uppercase}
.ba-action-source-pair{display:grid;grid-template-columns:1fr;gap:7px;padding:10px;border:1px solid #99f6e4;border-radius:10px;background:#fff}
.ba-action-source-pair>label{display:grid;grid-template-columns:27px minmax(0,1fr);gap:1px 8px;align-items:center;padding:9px;border:1px solid #cbd5e1;border-radius:9px;color:#334155;background:#f8fafc;cursor:pointer}
.ba-action-source-pair>label>span{grid-row:1/3;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;color:#475569;background:#e2e8f0;font-size:10px;font-weight:900}
.ba-action-source-pair>label>strong{font-size:10px}.ba-action-source-pair>label>small{color:#64748b;font-size:8.5px}
.ba-action-source-pair>label.is-ready{border-color:#86efac;color:#166534;background:#f0fdf4}
.ba-action-source-pair>label.is-ready>span{color:#fff;background:#16a34a}
.ba-action-source input[type="file"],.ba-action-receipt-input input[type="file"]{width:100%;min-height:46px;color:#334155;font-size:10px}
.ba-action-source input[type="file"]::file-selector-button,.ba-action-receipt-input input[type="file"]::file-selector-button{
  min-height:39px;margin-right:8px;padding:7px 11px;border:1px solid #0f766e;border-radius:8px;color:#fff;background:#0f766e;font-weight:800;cursor:pointer;
}
.ba-action-source-ok{margin-bottom:11px}
.ba-action-source-ok>.btn{margin-top:9px}
.ba-action-plan-form{display:flex;flex-direction:column;gap:11px}
.ba-action-selection{
  display:grid;grid-template-columns:1fr;gap:11px;padding:13px;
  border:2px solid #5eead4;border-radius:12px;background:#f0fdfa;
}
.ba-action-selection-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.ba-action-selection-copy strong{color:#134e4a;font-size:12px}
.ba-action-selection-copy output{color:#0f766e;font-size:15px;font-weight:900}
.ba-action-selection-copy p{margin:1px 0 0;color:#475569;font-size:9.5px;line-height:1.5}
.ba-action-selection-buttons{display:grid;grid-template-columns:1fr;gap:7px}
.ba-action-selection-buttons .btn{min-height:44px;justify-content:center}
.ba-action-bulk,.ba-action-plan-finish{
  padding:13px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;
}
.ba-action-bulk>div:first-child strong{color:var(--ba-navy);font-size:11.5px}
.ba-action-bulk>div:first-child p{margin:3px 0 10px;color:var(--ba-muted);font-size:9.5px;line-height:1.45}
.ba-action-bulk>button{width:100%;min-height:42px;margin-top:10px;justify-content:center}
.ba-action-pagebar{
  display:flex;flex-direction:column;gap:8px;align-items:stretch;padding:11px;
  border:1px solid #bfdbfe;border-radius:10px;color:#1e3a8a;background:#eff6ff;
}
.ba-action-pagebar>strong{font-size:11px}.ba-action-pagebar>span{font-size:9px;font-weight:750}
.ba-action-pagebar>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.ba-action-pagebar .btn{min-height:40px;justify-content:center}
.ba-action-items-edit{display:flex;flex-direction:column;gap:10px}
.ba-action-item-edit{
  min-width:0;padding:13px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;
  box-shadow:0 2px 8px rgba(15,34,64,.04);
}
.ba-action-item-edit.is-selected{border-color:#14b8a6;background:#fbfffe;box-shadow:0 0 0 2px rgba(20,184,166,.12)}
.ba-action-item-head{display:flex;flex-direction:column;gap:6px;margin-bottom:8px}
.ba-action-item-ident{display:flex;gap:10px;align-items:center;min-width:0}
.ba-action-item-ident>div{min-width:0}
.ba-action-item-ident>div>span{display:block;color:var(--ba-teal);font-size:8px;font-weight:900;letter-spacing:.55px;text-transform:uppercase}
.ba-action-item-head strong{display:block;margin-top:2px;color:var(--ba-navy);font-size:11.5px}
.ba-action-item-head code{max-width:100%;overflow:hidden;color:#475569;font-size:8.5px;text-overflow:ellipsis}
.ba-action-item-select{
  position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;
  border:2px solid #94a3b8;border-radius:11px;color:transparent;background:#fff;cursor:pointer;
}
.ba-action-item-select input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.ba-action-item-select>span{font-size:19px;font-weight:950;line-height:1}
.ba-action-item-select:focus-within{outline:3px solid rgba(29,78,216,.28);outline-offset:2px}
.ba-action-item-edit.is-selected .ba-action-item-select{border-color:#0f766e;color:#fff;background:#0f766e}
.ba-action-item-facts{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.ba-action-item-facts span{padding:4px 7px;border-radius:999px;color:#475569;background:#f1f5f9;font-size:8.5px}
.ba-action-item-retained{display:flex;flex-direction:column;gap:3px;padding:10px;border:1px solid #cbd5e1;border-radius:9px;color:#475569;background:#f8fafc}
.ba-action-item-retained[hidden]{display:none!important}
.ba-action-item-retained strong{color:#334155;font-size:10px}.ba-action-item-retained span{font-size:9px;line-height:1.45}
.ba-action-item-fields{min-width:0;margin:0;padding:0;border:0}
.ba-action-item-fields[hidden]{display:none!important}
.ba-action-item-edit textarea{min-height:76px}
.ba-action-item-proof{display:flex;flex-direction:column;gap:10px;min-width:0;margin:11px 0;padding:12px;border:1px solid #93c5fd;border-radius:10px;background:#eff6ff}
.ba-action-item-proof[hidden]{display:none!important}
.ba-action-item-proof>div:first-child>strong{color:#1e3a8a;font-size:10.5px}
.ba-action-item-proof>div:first-child>p{margin:3px 0 0;color:#475569;font-size:9px;line-height:1.45}
.ba-action-item-proof>small{color:#475569;font-size:8.5px;line-height:1.45}
.ba-retention-proof{border-color:#fcd34d;background:#fffbeb}
.ba-retention-proof>div:first-child>strong{color:#92400e}
.ba-action-item-optional{margin:11px 0;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc}
.ba-action-item-optional summary{display:flex;align-items:center;min-height:44px;padding:9px 11px;color:#334155;font-size:10px;font-weight:850;cursor:pointer}
.ba-action-item-optional[open] summary{border-bottom:1px solid #e2e8f0}
.ba-action-item-optional>.ba-field{padding:11px}
.ba-action-hold{border-color:#fde68a;color:#78350f;background:#fffbeb}
.ba-action-plan-finish{display:flex;flex-direction:column;gap:10px;border-color:#93c5fd;background:#eff6ff}
.ba-action-plan-finish>.ba-accept{margin:0;background:#fff}
.ba-action-plan-finish>.btn{min-height:46px;justify-content:center}
.ba-action-optional-details{margin-top:12px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;overflow:hidden}
.ba-action-optional-details>summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 9px;align-items:center;min-height:58px;padding:11px 13px;cursor:pointer}
.ba-action-optional-details>summary>span{grid-row:1/3;padding:4px 7px;border-radius:999px;color:#475569;background:#e2e8f0;font-size:8px;font-weight:900;letter-spacing:.4px;text-transform:uppercase}
.ba-action-optional-details>summary>strong{color:var(--ba-navy);font-size:11px}
.ba-action-optional-details>summary>small{color:var(--ba-muted);font-size:9px;line-height:1.4}
.ba-action-optional-details[open]>summary{border-bottom:1px solid #e2e8f0;background:#f8fafc}
.ba-action-optional-body{padding:12px;background:#f8fafc}
.ba-action-optional-body>.ba-panel:last-child{margin-bottom:0}

.ba-action-heading-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px;min-width:210px}
.ba-action-heading-buttons .btn{min-height:42px;justify-content:center}
.ba-section-heading p .ba-mono{display:inline;margin:0;color:inherit;font-size:inherit;font-weight:inherit;letter-spacing:0;text-transform:none}
.ba-action-metrics{margin-bottom:11px}
.ba-action-items-readonly{display:flex;flex-direction:column;gap:7px}
.ba-action-items-readonly article{padding:10px;border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc}
.ba-action-items-readonly article>div:first-child{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.ba-action-items-readonly strong{color:var(--ba-navy);font-size:10px}
.ba-action-items-readonly p{margin:5px 0;color:#475569;font-size:9.5px;line-height:1.45;white-space:pre-wrap}
.ba-action-items-readonly small{color:var(--ba-muted);font-size:8.5px;line-height:1.45}
.ba-action-proof-summary{margin-top:8px;padding:8px;border-left:3px solid #2563eb;border-radius:7px;background:#eff6ff}
.ba-action-proof-summary strong{display:block;color:#1e3a8a;font-size:9px}.ba-action-proof-summary p{margin:2px 0!important;font-size:8.5px!important}.ba-action-proof-summary small{font-size:8px!important}
.ba-action-item-state{padding:3px 7px;border-radius:999px;color:#1e40af;background:#dbeafe;font-size:8px;font-weight:800}
.ba-action-more{margin:9px 0 0;color:var(--ba-muted);font-size:9px;line-height:1.45}
.ba-action-workflow{margin-top:11px;border-color:#bfdbfe;background:#f8fafc}
.ba-action-workflow>h4{padding-bottom:9px;border-bottom:1px solid #dbeafe}

.ba-action-freeze,.ba-action-approval,.ba-action-command-form,.ba-action-receipt-box{
  margin-top:10px;padding:13px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;
}
.ba-action-freeze h4,.ba-action-command-form h4,.ba-action-receipt-box h4{margin:0;color:var(--ba-navy);font-size:12px}
.ba-action-freeze>p,.ba-action-command-form>p,.ba-action-receipt-box>p{margin:3px 0;color:var(--ba-muted);font-size:9.5px;line-height:1.5}
.ba-action-freeze>.btn{width:100%;min-height:45px;margin-top:10px;justify-content:center}
.ba-action-cancel{margin-top:12px;padding:12px;border:1px solid #cbd5e1;border-radius:11px;background:#fff}
.ba-action-cancel summary{cursor:pointer;color:#334155;font-size:10.5px;font-weight:800}
.ba-action-cancel>p{margin:8px 0;color:var(--ba-muted);font-size:9.5px;line-height:1.55}
.ba-action-cancel code{display:block;margin:5px 0;padding:8px;border-radius:7px;background:#f1f5f9;color:#0f172a;font-size:9px;overflow-wrap:anywhere}
.ba-action-cancel>.btn{width:100%;min-height:44px;margin-top:9px;justify-content:center}
.ba-action-roles{display:grid;grid-template-columns:1fr;gap:8px}
.ba-action-roles article{display:flex;gap:9px;align-items:flex-start;padding:11px;border:1px solid #cbd5e1;border-radius:9px;background:#f8fafc}
.ba-action-roles article>span{display:grid;place-items:center;flex:0 0 27px;width:27px;height:27px;border-radius:50%;color:#475569;background:#e2e8f0;font-weight:900}
.ba-action-roles article.is-approved{border-color:#86efac;background:#f0fdf4}
.ba-action-roles article.is-approved>span{color:#fff;background:#16a34a}
.ba-action-roles strong{color:var(--ba-navy);font-size:10.5px}
.ba-action-roles p{margin:2px 0 8px;color:var(--ba-muted);font-size:9px;line-height:1.4}
.ba-action-roles .btn{min-height:40px;justify-content:center}
.ba-action-google{margin-top:9px}
.ba-action-google-box{padding:13px;border:1px solid #93c5fd;border-radius:10px;background:#eff6ff;text-align:center}
.ba-action-google-box strong{color:#1e3a8a;font-size:11px}
.ba-action-google-box p{max-width:620px;margin:4px auto 10px;color:#475569;font-size:9.5px;line-height:1.45}
[id^="ba-google-button-"]{display:flex;min-height:44px;justify-content:center}

.ba-action-command-form{border-color:#93c5fd}
.ba-action-command-form+.ba-action-command-form{margin-top:11px}
.ba-action-command-count{display:flex;align-items:baseline;gap:7px;margin:10px 0;padding:9px;border-radius:9px;background:#eff6ff}
.ba-action-command-count strong{color:#1e3a8a;font-size:22px;line-height:1}
.ba-action-command-count span{color:#475569;font-size:9px;font-weight:800;text-transform:uppercase}
.ba-action-command-form>.btn{width:100%;min-height:46px;margin-top:10px;justify-content:center}
.ba-action-command-form>.btn-danger{border-color:#991b1b;color:#fff;background:#b91c1c}
.ba-action-danger{border-color:#fca5a5;color:#991b1b;background:#fef2f2}
.ba-action-export{display:flex;flex-direction:column;gap:10px;margin:10px 0;padding:13px;border:1px solid #86efac;border-radius:11px;background:#f0fdf4}
.ba-action-export strong{color:#166534;font-size:11.5px}.ba-action-export p{margin:3px 0 0;color:#475569;font-size:9.5px;line-height:1.45}
.ba-action-export .btn{min-height:44px;justify-content:center}
.ba-action-receipt-input{display:flex;flex-direction:column;gap:8px;margin-top:9px;padding:11px;border:1px dashed #14b8a6;border-radius:9px;background:#f0fdfa;cursor:pointer}
.ba-action-receipt-input span strong{display:block;color:#115e59;font-size:10.5px}
.ba-action-receipt-input span small{display:block;margin-top:2px;color:#475569;font-size:8.5px}
.ba-action-receipts{margin-top:10px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}
.ba-action-receipts summary{padding:11px;color:var(--ba-navy);font-size:10px;font-weight:850;cursor:pointer}
.ba-action-receipts>div{display:flex;flex-direction:column;gap:7px;padding:0 10px 10px}
.ba-action-receipts article{display:flex;gap:8px;align-items:flex-start;padding:9px;border-radius:8px;background:#f8fafc}
.ba-action-receipts article>span{flex:0 0 auto;padding:3px 6px;border-radius:999px;font-size:8px;font-weight:850}
.ba-action-receipts article>span.is-ok,.ba-action-receipts article>span.is-good{color:#166534;background:#dcfce7}.ba-action-receipts article>span.is-bad{color:#991b1b;background:#fee2e2}
.ba-action-receipts article>span.is-pending{color:#92400e;background:#fef3c7}
.ba-action-receipts strong{color:var(--ba-navy);font-size:9.5px}.ba-action-receipts p{margin:2px 0;color:#475569;font-size:8.5px}.ba-action-receipts small{color:#92400e;font-size:8px;line-height:1.4}

/* Persone e aziende: ricerca POST, selezione in memoria e conferma additiva. */
.ba-subject-management{margin:0 0 12px;border-color:#99f6e4;background:#f8fffe}
.ba-subject-management>.ba-panel-heading{align-items:center}
.ba-subject-limit{flex:0 0 auto;padding:4px 8px;border-radius:999px;color:#115e59;background:#ccfbf1;font-size:8px;font-weight:900;letter-spacing:.45px;text-transform:uppercase}
.ba-subject-safety{margin-bottom:11px;border-color:#99f6e4;border-left-color:#0f766e;background:#f0fdfa}
.ba-subject-search{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:10px;padding:12px;border:1px solid #a5f3fc;border-radius:11px;background:#ecfeff}
.ba-subject-search .btn{min-height:44px;justify-content:center}
.ba-subject-results{display:flex;flex-direction:column;gap:7px;margin-bottom:10px}
.ba-subject-result{position:relative;display:grid;grid-template-columns:25px minmax(0,1fr);gap:9px;align-items:flex-start;padding:11px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;cursor:pointer}
.ba-subject-result:hover{border-color:#5eead4;background:#f0fdfa}
.ba-subject-result>input{position:absolute;width:1px;height:1px;opacity:0}
.ba-subject-check{display:grid;place-items:center;width:25px;height:25px;border:2px solid #94a3b8;border-radius:7px;background:#fff}
.ba-subject-result>input:checked+.ba-subject-check{border-color:#0f766e;color:#fff;background:#0f766e}
.ba-subject-result>input:checked+.ba-subject-check::before{content:"✓";font-size:13px;font-weight:950}
.ba-subject-result>input:focus-visible+.ba-subject-check{outline:3px solid rgba(29,78,216,.28);outline-offset:2px}
.ba-subject-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.ba-subject-main>strong{color:var(--ba-navy);font-size:10.5px;overflow-wrap:anywhere}
.ba-subject-main>code{color:#475569;font-size:9px;overflow-wrap:anywhere}
.ba-subject-companies{display:flex;flex-wrap:wrap;gap:4px;margin-top:2px}
.ba-subject-company{padding:3px 6px;border-radius:999px;color:#075985;background:#e0f2fe;font-size:7.5px;font-weight:750}
.ba-subject-company.is-none{color:#64748b;background:#f1f5f9}
.ba-subject-selected{margin:10px 0;padding:11px;border:1px solid #cbd5e1;border-radius:10px;background:#fff}
.ba-subject-selected-empty{margin:0;color:var(--ba-muted);font-size:9.5px}
.ba-subject-selected-head{display:flex;gap:8px;align-items:center;justify-content:space-between}
.ba-subject-selected-head strong{color:var(--ba-navy);font-size:10.5px}
.ba-subject-selected-head .btn{min-height:36px;padding:6px 9px;font-size:9px}
.ba-subject-selected-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.ba-subject-selected-list button{display:flex;gap:6px;align-items:center;max-width:100%;padding:5px 8px;border:1px solid #99f6e4;border-radius:999px;color:#115e59;background:#f0fdfa;font-size:8.5px;cursor:pointer}
.ba-subject-selected-list button span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ba-subject-selected-more{padding:5px 8px;color:#475569;font-size:8.5px}
.ba-subject-link-form{display:grid;grid-template-columns:1fr;gap:8px;padding:12px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}
.ba-subject-link-form>.btn{min-height:44px;justify-content:center}
.ba-subject-preview{margin-top:10px;padding:12px;border:1px solid #93c5fd;border-radius:11px;background:#fff}
.ba-subject-preview-title{margin-bottom:9px}
.ba-subject-preview-title span{display:block;color:#2563eb;font-size:7.5px;font-weight:900;letter-spacing:.5px;text-transform:uppercase}
.ba-subject-preview-title strong{display:block;margin-top:2px;color:#1e3a8a;font-size:11.5px;overflow-wrap:anywhere}
.ba-subject-preview-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}
.ba-subject-preview-metrics>div{min-width:0;padding:8px;border-radius:8px;background:#eff6ff;text-align:center}
.ba-subject-preview-metrics span{display:block;color:#64748b;font-size:7px;font-weight:850;text-transform:uppercase}
.ba-subject-preview-metrics strong{display:block;margin-top:2px;color:#1e3a8a;font-size:14px}
.ba-subject-preview form{display:flex;flex-direction:column;gap:9px}
.ba-subject-confirmation{display:block;padding:9px;border:1px dashed #2563eb;border-radius:8px;color:#1e3a8a;background:#eff6ff;font-size:9px;overflow-wrap:anywhere}
.ba-subject-preview form>.btn,.ba-subject-preview>.btn{min-height:44px;justify-content:center}
.ba-missing-subjects{display:flex;flex-direction:column;gap:9px;margin-bottom:12px}
.ba-missing-subject-card{padding:12px;border:2px solid #fbbf24;border-radius:11px;background:#fff}
.ba-missing-subject-head{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.ba-missing-subject-head span{display:block;color:#b45309;font-size:8px;font-weight:900;letter-spacing:.5px;text-transform:uppercase}
.ba-missing-subject-head strong{display:block;margin-top:2px;color:#78350f;font-size:11px}
.ba-missing-subject-head code{color:#334155;font-size:9px;overflow-wrap:anywhere}
.ba-missing-subject-card>.btn{width:100%;min-height:44px;margin-top:9px;justify-content:center}

/* Percorso “Fai pulizia”: tre passi, una decisione visibile alla volta. */
.ba-delete-flow{display:flex;flex-direction:column;gap:13px}
.ba-delete-progress{padding:3px 0}
.ba-delete-progress ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.ba-delete-progress li{
  display:flex;gap:9px;align-items:center;min-width:0;min-height:62px;padding:10px;
  border:2px solid #e2e8f0;border-radius:12px;color:#64748b;background:#fff;
}
.ba-delete-progress li>span{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;color:#475569;background:#e2e8f0;font-size:13px;font-weight:900}
.ba-delete-progress li>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.ba-delete-progress li strong{color:#334155;font-size:13px}
.ba-delete-progress li small{font-size:10px;line-height:1.25}
.ba-delete-progress li.is-current{border-color:#2563eb;color:#1e3a8a;background:#eff6ff;box-shadow:0 0 0 2px rgba(37,99,235,.1)}
.ba-delete-progress li.is-current>span{color:#fff;background:#2563eb}
.ba-delete-progress li.is-complete{border-color:#86efac;color:#166534;background:#f0fdf4}
.ba-delete-progress li.is-complete>span{color:#fff;background:#16a34a}
.ba-delete-heading{margin-bottom:0}
.ba-delete-heading h3{font-size:20px;line-height:1.25}
.ba-delete-heading p{max-width:760px;font-size:12px;line-height:1.55}
.ba-delete-simple-safety{display:flex;gap:10px;align-items:center;padding:12px 14px;border:1px solid #a5f3fc;border-radius:12px;color:#164e63;background:#ecfeff}
.ba-delete-simple-safety>span{font-size:22px}
.ba-delete-simple-safety p{margin:0;font-size:12px;line-height:1.5}
.ba-delete-create{margin-top:0;padding:17px;border:2px solid #bfdbfe;background:#fff;box-shadow:0 6px 18px rgba(15,34,64,.06)}
.ba-delete-create>h4{font-size:16px}
.ba-action-source-simple{display:flex;flex-direction:column;gap:12px}.ba-action-source-simple>div:first-child strong{font-size:15px;color:#0f2240}.ba-action-source-simple>div:first-child p{margin:4px 0 0;color:#475569;font-size:13px;line-height:1.5}
.ba-action-pair-picker{display:grid;grid-template-columns:52px minmax(0,1fr);gap:3px 12px;align-items:center;min-height:92px;padding:15px;border:2px dashed #2563eb;border-radius:14px;background:#eff6ff;color:#1e3a8a;cursor:pointer}.ba-action-pair-picker:hover{border-style:solid;background:#dbeafe}.ba-action-pair-picker:focus-within{outline:3px solid rgba(29,78,216,.3);outline-offset:2px}.ba-action-pair-picker>span{grid-row:1/3;display:grid;place-items:center;width:52px;height:52px;border-radius:13px;background:#fff;font-size:27px}.ba-action-pair-picker strong{font-size:17px}.ba-action-pair-picker small{font-size:12px;line-height:1.4;color:#475569}.ba-action-source-simple>#ba-action-pair-files{box-sizing:border-box;width:100%;min-height:52px;padding:9px;border:1px solid #bfdbfe;border-radius:10px;background:#fff;font-size:14px}
.ba-action-source-simple>#ba-action-pair-files:focus-visible{outline:3px solid rgba(29,78,216,.3);outline-offset:2px}
.ba-delete-selection{padding:16px;border-color:#60a5fa;background:#eff6ff}
.ba-delete-selection .ba-action-selection-copy strong{color:#1e3a8a;font-size:15px}
.ba-delete-selection .ba-action-selection-copy output{color:#1d4ed8;font-size:19px}
.ba-delete-selection .ba-action-selection-copy p{font-size:11px}
.ba-delete-selection .ba-action-selection-buttons .btn{min-height:52px;font-size:12px;font-weight:850}
.ba-delete-pagebar{padding:13px}
.ba-delete-pagebar>strong{font-size:13px}
.ba-delete-pagebar .btn{min-height:48px}
.ba-delete-item{padding:14px;border-width:2px}
.ba-delete-item.is-selected{border-color:#dc2626;background:#fffafa;box-shadow:0 0 0 2px rgba(220,38,38,.1)}
.ba-delete-category{display:inline-flex;padding:5px 8px;border-radius:999px;color:#475569;background:#f1f5f9;font-size:10px;font-weight:800}
.ba-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.ba-delete-file-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0;margin:0;padding:0;border:0}
.ba-delete-file-choice>label{position:relative;display:block;cursor:pointer}
.ba-delete-file-choice>label>input{position:absolute;width:1px;height:1px;opacity:0}
.ba-delete-file-choice>label>span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:66px;padding:10px;border:2px solid #cbd5e1;border-radius:11px;color:#64748b;text-align:center;background:#f8fafc}
.ba-delete-file-choice strong{font-size:16px}
.ba-delete-file-choice small{font-size:10px;line-height:1.25}
.ba-delete-item:not(.is-selected) .ba-delete-file-keep>span{border-color:#16a34a;color:#166534;background:#f0fdf4;box-shadow:0 0 0 2px rgba(22,163,74,.1)}
.ba-delete-item.is-selected .ba-delete-file-remove>span{border-color:#dc2626;color:#991b1b;background:#fef2f2;box-shadow:0 0 0 2px rgba(220,38,38,.1)}
.ba-delete-file-choice>label>input:focus-visible+span{outline:3px solid rgba(29,78,216,.35);outline-offset:2px}
.ba-delete-hidden-fields{display:none!important}
.ba-file-technical{margin-top:9px;border-top:1px solid #e2e8f0}
.ba-file-technical summary{min-height:42px;padding:9px 2px 0;color:#64748b;font-size:10px;font-weight:800;cursor:pointer}
.ba-file-technical p{margin:5px 0 0;color:#64748b;font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.ba-delete-finish{border:2px solid #2563eb;border-radius:13px;background:#fff;overflow:hidden}
.ba-delete-finish>summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;align-items:center;min-height:76px;padding:14px;cursor:pointer;list-style-position:inside}
.ba-delete-finish>summary>span{grid-row:1/3;padding:6px 9px;border-radius:999px;color:#fff;background:#2563eb;font-size:10px;font-weight:900;text-transform:uppercase}
.ba-delete-finish>summary>strong{color:#1e3a8a;font-size:15px}
.ba-delete-finish>summary>small{color:#475569;font-size:10px}
.ba-delete-finish[open]>summary{border-bottom:1px solid #bfdbfe;background:#eff6ff}
.ba-delete-finish-body{display:flex;flex-direction:column;gap:12px;padding:15px}
.ba-delete-finish-body h4{margin:0;color:var(--ba-navy);font-size:15px}
.ba-delete-finish-body>p{margin:-6px 0 0;color:#64748b;font-size:11px;line-height:1.5}
.ba-delete-finish-body>.btn{min-height:54px;justify-content:center;font-size:13px;font-weight:850}
.ba-simple-details{border:1px solid #cbd5e1;border-radius:12px;background:#fff;overflow:hidden}
.ba-simple-details>summary{display:grid;grid-template-columns:32px minmax(0,1fr);gap:8px;align-items:center;min-height:62px;padding:11px 13px;cursor:pointer}
.ba-simple-details>summary>span{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#f1f5f9;font-size:17px}
.ba-simple-details>summary>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.ba-simple-details>summary strong{color:#334155;font-size:12px}
.ba-simple-details>summary small{color:#64748b;font-size:9.5px;line-height:1.35}
.ba-simple-details[open]>summary{border-bottom:1px solid #e2e8f0;background:#f8fafc}
.ba-simple-details-body{padding:13px}
.ba-simple-details-body>.ba-security-panel{margin:0}
.ba-simple-details-body>p{margin:0;color:#475569;font-size:10.5px;line-height:1.55}
.ba-simple-details-body>p+p{margin-top:8px}
.ba-delete-next{order:0;margin:0;padding:16px;border:2px solid #2563eb;background:#eff6ff;box-shadow:0 6px 18px rgba(37,99,235,.08)}
.ba-delete-next>h4{margin:2px 0 8px;padding:0;border:0;color:#1e3a8a;font-size:17px}
.ba-delete-now{display:inline-flex;padding:4px 7px;border-radius:999px;color:#fff;background:#2563eb;font-size:9px;font-weight:900;letter-spacing:.6px}
.ba-delete-heading-buttons{grid-template-columns:repeat(2,minmax(0,1fr));width:min(100%,480px)}
.ba-delete-heading-buttons .btn{min-height:48px}
.ba-handoff-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;align-items:start;padding:18px;border:2px solid #93c5fd;border-radius:16px;background:#eff6ff;box-shadow:0 8px 24px rgba(37,99,235,.1)}
.ba-handoff-card>div{display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0}
.ba-handoff-card h4{margin:0;color:#172554;font-size:19px;line-height:1.25}
.ba-handoff-card p{margin:0;color:#334155;font-size:14px;line-height:1.55}
.ba-handoff-card small{color:#64748b;font-size:12px;line-height:1.45}
.ba-handoff-number{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:#fff;background:#2563eb;font-size:20px;font-weight:900}
.ba-handoff-main{width:min(100%,420px);min-height:58px;justify-content:center;font-size:16px;font-weight:900}
.ba-handoff-more{width:min(100%,520px);border:1px solid #bfdbfe;border-radius:11px;background:#fff}
.ba-handoff-more>summary{min-height:46px;padding:12px;color:#1e40af;font-size:13px;font-weight:800;cursor:pointer}
.ba-handoff-more>summary:focus-visible,.ba-scanner-help>summary:focus-visible{outline:3px solid rgba(29,78,216,.35);outline-offset:2px}
.ba-handoff-more>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 10px 10px}
.ba-handoff-more .btn{min-height:46px;justify-content:center;white-space:normal}
.ba-scanner-help{width:min(100%,520px);border-top:1px solid #bfdbfe}
.ba-scanner-help>summary{min-height:44px;padding:11px 2px;color:#1e40af;font-size:12px;font-weight:850;cursor:pointer}
.ba-scanner-help>div{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding:0 0 9px}
.ba-scanner-help p{font-size:12px}.ba-scanner-help .btn{min-height:46px;justify-content:center}
.ba-handoff-card.is-working{border-color:#67e8f9;background:#ecfeff}
.ba-handoff-card.is-working>.ba-spinner{width:42px;height:42px;margin:3px;border-width:4px}
.ba-handoff-card.is-ready{border-color:#86efac;background:#f0fdf4}
.ba-handoff-card.is-ready .ba-handoff-number{background:#16a34a}
.ba-handoff-card.is-error{border-color:#fca5a5;background:#fff7f7}
.ba-handoff-card.is-error>span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:#fff;background:#dc2626;font-size:22px;font-weight:900}
.ba-handoff-warning{color:#9a3412!important;font-weight:750}
.ba-handoff-done{display:flex;flex-direction:column;gap:3px;padding:13px 15px;border:2px solid #86efac;border-radius:12px;color:#166534;background:#f0fdf4}
.ba-handoff-done strong{font-size:15px}.ba-handoff-done span{font-size:12px}
.ba-handoff-trust{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:14px;border:2px solid #fbbf24;border-radius:13px;background:#fffbeb}
.ba-handoff-trust>span{display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:#fff;font-size:22px}
.ba-handoff-trust>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.ba-handoff-trust h4{margin:0;color:#78350f;font-size:17px}.ba-handoff-trust p{margin:0;color:#92400e;font-size:13px;line-height:1.5}
.ba-handoff-trust .btn{min-height:50px;justify-content:center;font-weight:850}
.ba-technical-recovery{border-style:dashed;background:#f8fafc}
.ba-technical-recovery>summary strong{font-size:11px}.ba-technical-recovery>summary small{font-size:9px}

@media (min-width:520px){
  .ba-toolbar-actions{grid-template-columns:auto auto}
  .ba-action-selection-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ba-practice-top{flex-direction:row;justify-content:space-between;align-items:flex-start}
  .ba-card-meta{grid-template-columns:1fr 1fr}
  .ba-card-actions .btn{width:auto;margin-left:auto}
  .ba-check-grid{grid-template-columns:1fr 1fr}
  .ba-form-actions{flex-direction:row;justify-content:flex-end}
  .ba-form-actions .btn{width:auto}
  .ba-metrics{grid-template-columns:1fr 1fr}
  .ba-file-box{grid-template-columns:minmax(0,1fr);padding:18px}
  .ba-preview-ok .btn,.ba-submit-box .btn,.ba-report-actions .btn{width:auto}
  .ba-scanner-proof-head{flex-direction:row;justify-content:space-between;align-items:center}
  .ba-action-batch-card{flex-direction:row;align-items:center;justify-content:space-between}
  .ba-action-batch-side{flex-direction:row;align-items:center}
  .ba-action-item-head{flex-direction:row;align-items:center;justify-content:space-between}
  .ba-action-items-readonly article>div:first-child{flex-direction:row;align-items:center;justify-content:space-between}
  .ba-action-export,.ba-action-receipt-input{flex-direction:row;align-items:center;justify-content:space-between}
  .ba-action-export .btn{flex:0 0 auto}
  .ba-security-server{flex-direction:row;align-items:center;justify-content:space-between}
  .ba-security-server .btn{flex:0 0 auto;width:auto}
  .ba-subject-search,.ba-subject-link-form{grid-template-columns:minmax(0,1fr) auto;align-items:end}
  .ba-subject-search .btn,.ba-subject-link-form>.btn{min-width:150px}
  .ba-missing-subject-head{flex-direction:row;align-items:center;justify-content:space-between}
  .ba-missing-subject-card>.btn{width:auto}
}

@media (min-width:720px){
  .ba-app{padding:18px}
  .ba-hero{flex-direction:row;align-items:center;justify-content:space-between;padding:20px 22px}
  .ba-hero h2{font-size:24px}
  .ba-hero-lock{flex:0 0 260px}
  .ba-list-toolbar,.ba-detail-toolbar{flex-direction:row;align-items:center;justify-content:space-between;padding:14px 16px}
  .ba-practice-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .ba-form fieldset{padding:17px}
  .ba-form-grid,.ba-rule-grid{grid-template-columns:1fr 1fr;gap:13px 15px}
  .ba-span-2{grid-column:1/-1}
  .ba-check-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ba-steps{overflow:visible}
  .ba-step{justify-content:center}
  .ba-step strong{font-size:10.5px}
  .ba-step-panel{padding:18px}
  .ba-two-columns,.ba-report-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .ba-metrics{grid-template-columns:1fr 1fr}
  .ba-file-box{grid-template-columns:minmax(0,1fr) minmax(240px,.65fr);align-items:center}
  .ba-file-box>label{grid-column:2}.ba-file-box input[type="file"]{grid-column:2}.ba-file-box>div{grid-row:1/3}
  .ba-action-roles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ba-action-pagebar{flex-direction:row;align-items:center;justify-content:space-between}
  .ba-action-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ba-security-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ba-action-source-pair{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
  .ba-action-source-pair>label:first-of-type{grid-column:1;grid-row:1}
  .ba-action-source-pair>input:first-of-type{grid-column:1;grid-row:2}
  .ba-action-source-pair>label:last-of-type{grid-column:2;grid-row:1}
  .ba-action-source-pair>input:last-of-type{grid-column:2;grid-row:2}
}

@media (min-width:1040px){
  .ba-app{padding:22px 24px}
  .ba-practice-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ba-step-panel{padding:22px}
  .ba-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ba-attestation-layout{grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr)}
}

@media (max-width:480px){
  .modal.modal-mega .modal-header{padding:12px}
  .modal.modal-mega .modal-title{font-size:13px}
  .modal.modal-mega .modal-close{min-height:42px;padding:8px 10px}
  .ba-app{padding:8px}
  #modal-footer .ba-home-footer-btn{width:100%;min-height:52px;justify-content:center;font-size:13px}
  .ba-hero{border-radius:12px}
  .ba-lock-notice{padding:11px}
  .ba-step-panel{padding:11px}
  .ba-section-heading{flex-wrap:wrap}
  .ba-action-heading-buttons{width:100%;min-width:0}
  .ba-action-safety{padding:11px}
  .ba-delete-progress ol{grid-template-columns:1fr;gap:6px}
  .ba-delete-progress li{min-height:54px;padding:8px 10px}
  .ba-delete-progress li>span{width:29px;height:29px;flex-basis:29px}
  .ba-delete-heading h3{font-size:18px}
  .ba-delete-heading>.btn{width:100%;min-height:48px;justify-content:center}
  .ba-delete-create{padding:12px}
  .ba-action-pair-picker{grid-template-columns:44px minmax(0,1fr);min-height:88px;padding:12px}.ba-action-pair-picker>span{width:44px;height:44px;font-size:23px}.ba-action-pair-picker strong{font-size:16px}.ba-action-source-simple>#ba-action-pair-files{font-size:16px}
  .ba-delete-selection{padding:12px}
  .ba-delete-selection .ba-action-selection-buttons{grid-template-columns:1fr}
  .ba-delete-file-choice{grid-template-columns:1fr 1fr;gap:6px}
  .ba-delete-file-choice>label>span{min-height:72px;padding:8px 5px}
  .ba-delete-file-choice strong{font-size:15px}
  .ba-delete-finish>summary{min-height:82px;padding:12px}
  .ba-delete-finish-body{padding:12px}
  .ba-simple-details>summary{min-height:66px}
  .ba-delete-heading-buttons{grid-template-columns:1fr;width:100%}
  .ba-handoff-card{grid-template-columns:40px minmax(0,1fr);gap:10px;padding:13px}
  .ba-handoff-number{width:40px;height:40px;font-size:17px}
  .ba-handoff-card h4{font-size:17px}.ba-handoff-card p{font-size:13px}
  .ba-handoff-main{width:100%;min-height:58px;font-size:16px}
  .ba-handoff-more{width:100%}.ba-handoff-more>div{grid-template-columns:1fr}
  .ba-scanner-help{width:100%}.ba-scanner-help .btn{width:100%}
  .ba-handoff-card.is-working>.ba-spinner{width:36px;height:36px}
  .ba-handoff-trust{grid-template-columns:36px minmax(0,1fr);padding:12px}.ba-handoff-trust>span{width:36px;height:36px}
  .ba-handoff-trust .btn{width:100%}
  .ba-subject-selected-head{flex-wrap:wrap}
  .ba-subject-selected-head .btn{width:100%;justify-content:center}
}

@media (prefers-reduced-motion:reduce){
  .ba-spinner{animation-duration:2s}
  .ba-app *{scroll-behavior:auto!important;transition:none!important}
}
