/* UX3 - Pattern comune wizard rapporti */
body.report-wizard-page .container {
  max-width: 1180px;
}
body.report-wizard-page .page-head {
  align-items: center;
  padding: var(--ui-space-5, 20px);
  border: 1px solid var(--ui-border, #d7e0ec);
  border-radius: var(--ui-radius-xl, 22px);
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: var(--ui-shadow-sm, 0 1px 2px rgba(15,34,56,.06));
}
body.report-wizard-page .page-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
body.report-wizard-page .page-head h2::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--ui-brand, #0f62fe);
  box-shadow: 0 0 0 5px rgba(15,98,254,.12);
}
body.report-wizard-page .page-subtitle {
  max-width: 760px;
}
body.report-wizard-page form {
  display: grid;
  gap: var(--ui-space-5, 20px);
}
body.report-wizard-page form > .card,
body.report-wizard-page form > section.card,
body.report-wizard-page form > div.card {
  margin-bottom: 0;
}
body.report-wizard-page .card > h3:first-child,
body.report-wizard-page section.card > h3:first-child {
  margin-top: 0;
}
body.report-wizard-page .field label,
body.report-wizard-page .checkbox-row span {
  font-size: .95rem;
}
body.report-wizard-page .checkbox-row {
  width: 100%;
  border: 1px solid var(--ui-border, #d7e0ec);
  background: var(--ui-surface, #fff);
}
body.report-wizard-page .checkbox-row:has(input:checked) {
  border-color: var(--ui-brand, #0f62fe);
  background: var(--ui-brand-soft, #eaf2ff);
}
body.report-wizard-page .sticky-actions,
body.report-wizard-page .sticky-actions-card {
  position: sticky;
  bottom: var(--ui-space-4, 16px);
  z-index: 20;
  margin-top: var(--ui-space-2, 8px);
  border: 1px solid rgba(184,199,218,.8);
  border-radius: var(--ui-radius-xl, 22px);
  background: rgba(244,247,251,.94);
  box-shadow: 0 16px 40px rgba(15,34,56,.14);
  backdrop-filter: blur(14px);
}
body.report-wizard-page .sticky-actions {
  display: flex;
  gap: var(--ui-space-3, 12px);
  flex-wrap: wrap;
  align-items: center;
}
body.report-wizard-page .sticky-actions-card .actions {
  display: flex;
  gap: var(--ui-space-3, 12px);
  flex-wrap: wrap;
}
body.report-wizard-page .sticky-actions .btn,
body.report-wizard-page .sticky-actions-card .btn {
  min-width: 180px;
}
body.report-wizard-page [aria-busy="true"] {
  opacity: .78;
  pointer-events: none;
}
body.report-wizard-page .wizard-save-feedback {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--ui-text-muted, #53657d);
  font-weight: 800;
}
body.report-wizard-page form[aria-busy="true"] .wizard-save-feedback {
  display: inline-flex;
}
body.report-wizard-page .wizard-save-feedback::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(15,98,254,.2);
  border-top-color: var(--ui-brand, #0f62fe);
  animation: wizardSpin .8s linear infinite;
}
@keyframes wizardSpin { to { transform: rotate(360deg); } }
@media (max-width: 820px) {
  body.report-wizard-page .page-head {
    padding: var(--ui-space-4, 16px);
    border-radius: var(--ui-radius-lg, 16px);
  }
  body.report-wizard-page .form-grid,
  body.report-wizard-page .form-grid.three-cols,
  body.report-wizard-page .form-grid.two-cols,
  body.report-wizard-page .form-grid.section-grid {
    grid-template-columns: 1fr !important;
  }
  body.report-wizard-page .field,
  body.report-wizard-page .field-wide {
    grid-column: 1 / -1 !important;
  }
  body.report-wizard-page .sticky-actions,
  body.report-wizard-page .sticky-actions-card .actions {
    flex-direction: column;
    align-items: stretch;
  }
  body.report-wizard-page .sticky-actions .btn,
  body.report-wizard-page .sticky-actions-card .btn {
    width: 100%;
    min-width: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.report-wizard-page .wizard-save-feedback::before { animation: none; }
}
