/* V225 - Zone GPG: spaziatura e form aggiunta obiettivo sempre contenuto */
.v224-zones-page{max-width:1600px!important;padding-left:20px!important;padding-right:20px!important}
.v224-zone-shell{grid-template-columns:220px minmax(0,1fr)!important;gap:16px!important}
.v224-zone-workspace{min-width:0!important;overflow:visible!important}
.v224-objectives-card{padding:18px 20px!important;overflow:hidden!important}
.v224-objectives-head{gap:14px!important}
.v224-objective-list{min-width:0!important}

/* Nuovo controllato: titolo su una riga propria, campi sotto, pulsante sempre dentro la card */
.v224-new-objective{
  display:grid!important;
  grid-template-columns:minmax(150px,.9fr) minmax(220px,1.35fr) minmax(180px,1fr) 90px 108px!important;
  gap:10px!important;
  align-items:end!important;
  padding:14px!important;
  min-width:0!important;
  width:100%!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
.v224-new-objective .v224-new-title{
  grid-column:1/-1!important;
  grid-row:auto!important;
  padding-bottom:10px!important;
  margin-bottom:2px!important;
  border-bottom:1px solid #dce8f5!important;
}
.v224-new-objective label{min-width:0!important;width:100%!important;grid-column:auto!important;grid-row:auto!important}
.v224-new-objective input{min-width:0!important;width:100%!important;box-sizing:border-box!important}
.v224-new-objective>button{
  grid-column:auto!important;
  grid-row:auto!important;
  width:100%!important;
  min-width:0!important;
  max-width:108px!important;
  justify-self:stretch!important;
  white-space:nowrap!important;
}

/* Righe esistenti: nessun overflow orizzontale */
.v224-objective-row{grid-template-columns:72px minmax(0,1fr) 78px!important;min-width:0!important;overflow:hidden!important}
.v224-objective-form{grid-template-columns:minmax(120px,.9fr) minmax(190px,1.35fr) minmax(160px,1fr) 82px 72px!important;min-width:0!important}
.v224-objective-form>*{min-width:0!important}
.v224-objective-form input{min-width:0!important;width:100%!important;box-sizing:border-box!important}

/* Profilo zona piu compatto */
.v224-zone-profile{padding:18px 20px!important;overflow:hidden!important}
.v224-profile-actions{min-width:0!important}
.v224-zone-profile-form{grid-template-columns:105px 180px minmax(220px,1fr) 104px!important;min-width:0!important}
.v224-zone-profile-form>*{min-width:0!important}
.v224-zone-profile-form button{width:100%!important;white-space:nowrap!important}

/* Mappa separata e leggibile */
.v224-map-section{margin-top:0!important}
.v224-zone-map{height:430px!important;min-height:360px!important}

@media(max-width:1380px){
  .v224-zone-shell{grid-template-columns:195px minmax(0,1fr)!important}
  .v224-new-objective{grid-template-columns:minmax(140px,.9fr) minmax(180px,1.25fr) minmax(150px,1fr) 82px 96px!important}
  .v224-objective-form{grid-template-columns:1fr 1.3fr 1fr 78px!important}
  .v224-objective-form .v224-save{grid-column:4!important}
  .v224-instructions{grid-column:1/3!important}
  .v224-passages{grid-column:3!important}
}
@media(max-width:1160px){
  .v224-zone-shell{grid-template-columns:1fr!important}
  .v224-zone-sidebar{position:static!important;max-height:none!important}
  .v224-zone-list{display:flex!important;overflow-x:auto!important;max-height:none!important}
  .v224-zone-item{min-width:205px!important}
  .v224-new-objective{grid-template-columns:1fr 1fr!important}
  .v224-new-objective .v224-new-title{grid-column:1/-1!important}
  .v224-new-objective .v224-passages{grid-column:auto!important}
  .v224-new-objective>button{grid-column:1/-1!important;max-width:none!important;width:100%!important}
  .v224-zone-profile-form{grid-template-columns:100px 1fr!important}
  .v224-zone-profile-form .v224-grow{grid-column:1/-1!important}
  .v224-zone-profile-form button{grid-column:1/-1!important}
}
@media(max-width:820px){
  .v224-zones-page{padding-left:10px!important;padding-right:10px!important}
  .v224-new-objective,.v224-zone-profile-form,.v224-objective-form{grid-template-columns:1fr!important}
  .v224-new-objective .v224-new-title,.v224-new-objective>button,.v224-zone-profile-form .v224-grow,.v224-zone-profile-form button,.v224-objective-form>*{grid-column:1!important}
  .v224-objective-row{grid-template-columns:54px minmax(0,1fr)!important}
  .v224-objective-row>form:last-child{grid-column:2!important;justify-self:stretch!important}
  .v224-delete{width:100%!important}
}

/* V225.0.1 - feedback creazione servizio GPG */
.v225-gpg-alert{display:flex;gap:10px;align-items:center;padding:12px 16px;border-radius:14px;margin:0 0 14px;font-size:14px}.v225-gpg-alert.error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}.v225-gpg-alert.success{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.v225-gpg-alert span{min-width:0}.v210-form legend small,.v210-form label>small{font-weight:500;color:#64748b}
