/* =========================================================
   Rabbit Quick Form Center V1
   Le azioni selezionate da Nuovo non aprono più pannelli laterali:
   ogni form si apre come popup centrale premium.
   ========================================================= */
.mask.quick-form-center.show{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:34px !important;
  background:rgba(15,23,42,.48) !important;
  backdrop-filter:blur(16px) saturate(130%) !important;
}
.mask.quick-form-center .mask-panel{
  width:min(980px,calc(100vw - 56px)) !important;
  height:auto !important;
  max-height:min(88vh,820px) !important;
  overflow:auto !important;
  border-radius:34px !important;
  background:
    radial-gradient(circle at 92% 4%,rgba(37,99,235,.08),transparent 32%),
    radial-gradient(circle at 6% 100%,rgba(16,185,129,.08),transparent 32%),
    rgba(255,255,255,.97) !important;
  border:1px solid rgba(226,232,240,.96) !important;
  box-shadow:0 46px 130px rgba(15,23,42,.34),0 14px 42px rgba(15,23,42,.16) !important;
  display:grid !important;
  grid-template-rows:auto 1fr !important;
}
.mask.quick-form-center .mask-head{
  position:sticky !important;
  top:0 !important;
  z-index:5 !important;
  background:rgba(255,255,255,.88) !important;
  backdrop-filter:blur(18px) saturate(135%) !important;
  border-bottom:1px solid rgba(226,232,240,.88) !important;
  padding:18px 20px !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:18px !important;
}
.mask.quick-form-center #maskBadge,
.mask.quick-form-center .mask-title .badge{
  min-height:26px !important;
  display:inline-flex !important;
  align-items:center !important;
  padding:0 10px !important;
  border-radius:999px !important;
  background:#eff6ff !important;
  border:1px solid #dbeafe !important;
  color:#1d4ed8 !important;
  font-size:10px !important;
  font-weight:950 !important;
  letter-spacing:.07em !important;
  text-transform:uppercase !important;
}
.mask.quick-form-center .mask-title h2{
  margin:8px 0 5px !important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
  color:#0f172a !important;
  font-size:30px !important;
  line-height:1.03 !important;
  letter-spacing:-.065em !important;
  font-weight:950 !important;
}
.mask.quick-form-center .mask-title p{
  margin:0 !important;
  max-width:680px !important;
  color:#64748b !important;
  font-size:13px !important;
  line-height:1.4 !important;
  font-weight:700 !important;
}
.mask.quick-form-center .mask-head .actions{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
}
.mask.quick-form-center .mask-head .actions button{
  min-height:38px !important;
  border-radius:14px !important;
  border:1px solid #dbe4ee !important;
  background:#fff !important;
  color:#0f172a !important;
  padding:0 13px !important;
  font-size:12px !important;
  font-weight:950 !important;
  box-shadow:0 10px 22px rgba(15,23,42,.055) !important;
}
.mask.quick-form-center .mask-head .actions button.primary,
.mask.quick-form-center #maskSave{
  color:#fff !important;
  border:0 !important;
  background:linear-gradient(135deg,#2563eb,#10b981) !important;
}
.mask.quick-form-center .mask-body{
  padding:20px !important;
  background:
    linear-gradient(to right,rgba(37,99,235,.028) 1px,transparent 1px),
    linear-gradient(to bottom,rgba(37,99,235,.028) 1px,transparent 1px),
    transparent !important;
  background-size:42px 42px !important;
}
.mask.quick-form-center .form-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px !important;
}
.mask.quick-form-center .form-grid label,
.mask.quick-form-center .form-grid .full,
.mask.quick-form-center .mask-body > label{
  min-width:0 !important;
  display:grid !important;
  gap:7px !important;
  padding:14px !important;
  border-radius:20px !important;
  background:rgba(255,255,255,.92) !important;
  border:1px solid rgba(226,232,240,.94) !important;
  box-shadow:0 10px 26px rgba(15,23,42,.052) !important;
  color:#334155 !important;
  font-size:11px !important;
  font-weight:950 !important;
}
.mask.quick-form-center .form-grid .full{grid-column:1 / -1 !important;}
.mask.quick-form-center input,
.mask.quick-form-center select,
.mask.quick-form-center textarea{
  width:100% !important;
  min-height:42px !important;
  border-radius:14px !important;
  border:1px solid #dbe4ee !important;
  background:#fff !important;
  color:#0f172a !important;
  padding:0 12px !important;
  font-size:13px !important;
  font-weight:750 !important;
  outline:none !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.90) !important;
}
.mask.quick-form-center textarea{
  min-height:132px !important;
  padding:12px !important;
  resize:vertical !important;
  line-height:1.45 !important;
}
.mask.quick-form-center input:focus,
.mask.quick-form-center select:focus,
.mask.quick-form-center textarea:focus{
  border-color:#93c5fd !important;
  box-shadow:0 0 0 4px rgba(59,130,246,.12) !important;
}
.mask.quick-form-center .form-grid label:nth-child(4n+1){border-top:4px solid rgba(37,99,235,.28) !important;}
.mask.quick-form-center .form-grid label:nth-child(4n+2){border-top:4px solid rgba(16,185,129,.28) !important;}
.mask.quick-form-center .form-grid label:nth-child(4n+3){border-top:4px solid rgba(245,158,11,.30) !important;}
.mask.quick-form-center .form-grid label:nth-child(4n+4){border-top:4px solid rgba(124,58,237,.26) !important;}
.mask.quick-form-center .mask-body .grid,
.mask.quick-form-center .mask-body .card{
  border-radius:22px !important;
}
@media(max-width:900px){
  .mask.quick-form-center.show{padding:18px !important;}
  .mask.quick-form-center .mask-panel{width:100% !important;max-height:88vh !important;border-radius:28px !important;}
  .mask.quick-form-center .form-grid{grid-template-columns:1fr !important;}
}
@media(max-width:560px){
  .mask.quick-form-center.show{align-items:flex-end !important;padding:10px !important;}
  .mask.quick-form-center .mask-panel{width:100% !important;max-height:92vh !important;border-radius:28px 28px 18px 18px !important;}
  .mask.quick-form-center .mask-head{padding:15px !important;}
  .mask.quick-form-center .mask-title h2{font-size:24px !important;}
  .mask.quick-form-center .mask-title p{font-size:12px !important;}
  .mask.quick-form-center .mask-head .actions button{min-height:36px !important;padding:0 10px !important;}
  .mask.quick-form-center .mask-body{padding:14px !important;}
  .mask.quick-form-center .form-grid label{padding:12px !important;border-radius:18px !important;}
}
