/* FCP 14.7.30 - task quick autocomplete + lead card cleanup */
.fcp-task-sheet-14730,
.fcp-mobile-task-sheet.fcp-task-sheet-14730{
  max-width: 560px;
}
.fcp-task-sheet-subtitle-14730{
  margin: -6px 0 14px;
  color:#64748b;
  font-size:13px;
  line-height:1.35;
}
.fcp-task-quick-form-14730 label,
.fcp-mobile-task-sheet .fcp-task-quick-form-14730 label{
  display:flex;
  flex-direction:column;
  gap:7px;
  font-weight:800;
  color:#0f172a;
}
.fcp-task-quick-form-14730 input[type="text"],
.fcp-task-quick-form-14730 input[type="search"],
.fcp-task-quick-form-14730 input[type="date"],
.fcp-task-quick-form-14730 select,
.fcp-task-quick-form-14730 textarea{
  width:100%;
  min-height:44px;
  border:1px solid #dbe5f2;
  border-radius:14px;
  background:#fff;
  color:#0f172a;
  font-size:15px;
  line-height:1.25;
  padding:10px 13px;
  box-shadow:0 1px 1px rgba(15,23,42,.03);
}
.fcp-task-quick-form-14730 input:focus,
.fcp-task-quick-form-14730 select:focus,
.fcp-task-quick-form-14730 textarea:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.fcp-task-link-field-14730 small{
  color:#64748b;
  font-size:12px;
  font-weight:650;
}
.fcp-task-title-chips-14730{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:-2px 0 12px;
}
.fcp-task-title-chips-14730 button{
  border:1px solid #dbeafe;
  background:#eff6ff;
  color:#1d4ed8;
  border-radius:999px;
  min-height:34px;
  padding:0 12px;
  font-weight:850;
  font-size:12px;
  cursor:pointer;
}
.fcp-task-title-chips-14730 button:hover,
.fcp-task-title-chips-14730 button:focus{
  background:#dbeafe;
  outline:none;
}

/* Task card: stronger desktop/mobile readability */
.fcp-app-shell [data-fcp-task-card].fcp-task29-card{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"top actions" "main actions";
  gap:10px 18px;
  align-items:center;
  min-height:112px !important;
  height:auto !important;
  padding:18px 18px !important;
  overflow:hidden !important;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-top{
  grid-area:top;
  display:grid !important;
  grid-template-columns:30px auto minmax(70px,max-content) 44px;
  gap:12px;
  align-items:center;
  min-width:0;
  position:relative !important;
  inset:auto !important;
  width:100% !important;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-check{
  width:24px !important;
  height:24px !important;
  min-width:24px !important;
  min-height:24px !important;
  position:relative !important;
  inset:auto !important;
  margin:0 !important;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-meta{
  display:flex !important;
  flex-wrap:wrap;
  gap:6px;
  align-items:baseline;
  min-width:0;
  position:relative !important;
  inset:auto !important;
  margin:0 !important;
  color:#64748b;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-meta span,
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-meta strong,
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-meta small{
  display:inline !important;
  margin:0 !important;
  white-space:nowrap;
  line-height:1.15;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-meta strong{color:#0f172a;font-size:14px;}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-badge{
  justify-self:end;
  position:relative !important;
  inset:auto !important;
  margin:0 !important;
  white-space:nowrap;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-more{
  justify-self:end;
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  position:relative !important;
  inset:auto !important;
  margin:0 !important;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-main{
  grid-area:main;
  display:flex !important;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  min-width:0;
  padding-left:42px !important;
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  text-align:left !important;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-main strong{
  font-size:17px !important;
  line-height:1.2 !important;
  color:#0f172a !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task29-client-line,
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-mobile-task-note-preview{
  color:#64748b !important;
  line-height:1.35 !important;
  font-size:13px !important;
  white-space:normal !important;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-actions{
  grid-area:actions;
  display:flex !important;
  flex-direction:row;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
  align-self:center;
  position:relative !important;
  inset:auto !important;
  margin:0 !important;
  width:auto !important;
}
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-actions a,
.fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-actions button{
  min-height:40px !important;
  border-radius:13px !important;
  padding:0 16px !important;
  font-weight:900 !important;
  white-space:nowrap;
}

/* Lead senza prossima azione: clickable and clean */
.fcp-lead-add-next-action-14730,
.fcp-lead-no-next-action-14720.fcp-lead-add-next-action-14730{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:100%;
  min-height:34px;
  padding:0 12px;
  border:1px solid #fed7aa !important;
  border-radius:999px;
  background:#fff7ed !important;
  color:#c2410c !important;
  font-weight:900;
  font-size:12px;
  text-decoration:none !important;
  box-shadow:none !important;
}
.fcp-lead-add-next-action-14730:hover,
.fcp-lead-add-next-action-14730:focus{
  background:#ffedd5 !important;
  color:#9a3412 !important;
}
.fcp-lead-table-kpis .fcp-lead-next-action-cell-14720{
  border-color:#dbeafe;
  background:#f8fbff;
}
.fcp-lead-table-kpis .fcp-lead-next-action-cell-14720 strong{
  color:#0f172a;
}

@media (max-width: 760px){
  .fcp-app-shell [data-fcp-task-card].fcp-task29-card{
    grid-template-columns:1fr;
    grid-template-areas:"top" "main" "actions";
    min-height:0 !important;
    padding:16px !important;
    gap:12px;
  }
  .fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-top{
    grid-template-columns:32px minmax(0,1fr) auto 46px;
    gap:10px;
  }
  .fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-main{
    padding-left:0 !important;
  }
  .fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-main strong{
    font-size:18px !important;
  }
  .fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-actions{
    width:100% !important;
    justify-content:stretch;
  }
  .fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-actions a,
  .fcp-app-shell [data-fcp-task-card].fcp-task29-card .fcp-task28-actions button{
    flex:1 1 0;
  }
  .fcp-task-title-chips-14730{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding-bottom:2px;
  }
  .fcp-task-title-chips-14730 button{flex:0 0 auto;}
}
