/* FCP 14.6.37 - Task modal save visibility + desktop FAB + FTC More sync UI */
:root{--fcp37-blue:#2563eb;--fcp37-sky:#25b8ff;--fcp37-ink:#071f3d;--fcp37-muted:#66758a;--fcp37-line:#d7e5f4;--fcp37-soft:#f5f9ff;--fcp37-card:#fff;--fcp37-green:#12b76a}

/* NUOVA TASK: il salva deve essere sempre raggiungibile da mobile */
body.fcp-mobile-task-open .fcp-mobile-task-sheet.fcp-task-modal-14637,
body.fcp-mobile-task-open .fcp-mobile-task-sheet,
body.fcp-mobile-edit-open .fcp-mobile-edit-sheet{
  position:fixed!important;
  left:12px!important;
  right:12px!important;
  top:calc(env(safe-area-inset-top,0px) + 10px)!important;
  bottom:calc(env(safe-area-inset-bottom,0px) + 10px)!important;
  width:auto!important;
  max-width:760px!important;
  max-height:none!important;
  margin:0 auto!important;
  transform:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior:contain!important;
  border-radius:28px!important;
  padding:22px 22px 0!important;
  box-sizing:border-box!important;
  background:#fff!important;
  z-index:1000002!important;
}
body.fcp-mobile-task-open .fcp-mobile-task-sheet form,
body.fcp-mobile-edit-open .fcp-mobile-edit-sheet form{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:13px!important;
  padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))!important;
  margin:0!important;
}
.fcp-mobile-task-sheet h3,.fcp-mobile-edit-sheet h3{
  position:sticky!important;
  top:-22px!important;
  z-index:7!important;
  background:#fff!important;
  margin:-2px -2px 2px!important;
  padding:4px 78px 14px 0!important;
  border-bottom:1px solid #edf3fa!important;
}
.fcp-mobile-sheet-x{position:sticky!important;float:right!important;top:0!important;z-index:9!important}
.fcp-task-save-sticky-14637,
.fcp-mobile-task-sheet button[type="submit"],
.fcp-mobile-edit-sheet button[type="submit"]{
  position:sticky!important;
  bottom:0!important;
  z-index:12!important;
  min-height:60px!important;
  height:60px!important;
  width:100%!important;
  margin:8px 0 0!important;
  border:0!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,var(--fcp37-blue),var(--fcp37-sky))!important;
  color:#fff!important;
  font-size:17px!important;
  font-weight:950!important;
  box-shadow:0 18px 38px rgba(37,99,235,.30)!important;
}
.fcp-task-people-tags{background:#f6faff!important;border:1px solid var(--fcp37-line)!important;border-radius:20px!important;padding:14px!important;margin:0!important;overflow:visible!important}
.fcp-task-people-tags strong{display:block!important;margin:0 0 10px!important;color:var(--fcp37-muted)!important;font-size:12px!important;font-weight:950!important;letter-spacing:.08em!important;text-transform:uppercase!important}
.fcp-task-people-tags>div{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
.fcp-task-people-tags label{display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:44px!important;margin:0!important;border:1px solid #cde2ff!important;border-radius:999px!important;background:#fff!important;color:var(--fcp37-ink)!important;font-size:13px!important;font-weight:900!important;text-transform:none!important;letter-spacing:0!important;padding:0 8px!important}
.fcp-task-people-tags input{width:18px!important;height:18px!important;min-height:18px!important;accent-color:var(--fcp37-blue)!important;padding:0!important;margin:0!important}
.fcp-mobile-task-sheet input,.fcp-mobile-task-sheet select,.fcp-mobile-task-sheet textarea,.fcp-mobile-edit-sheet input,.fcp-mobile-edit-sheet select,.fcp-mobile-edit-sheet textarea{font-size:16px!important}

/* Desktop: aggiungi nuova task sempre in basso a destra */
.fcp-mobile-fab{
  position:fixed!important;
  right:calc(24px + env(safe-area-inset-right,0px))!important;
  bottom:calc(24px + env(safe-area-inset-bottom,0px))!important;
  display:grid!important;
  place-items:center!important;
  width:72px!important;
  height:72px!important;
  min-width:72px!important;
  min-height:72px!important;
  border:0!important;
  border-radius:26px!important;
  background:linear-gradient(135deg,var(--fcp37-blue),var(--fcp37-sky))!important;
  color:#fff!important;
  font-size:40px!important;
  line-height:1!important;
  font-weight:950!important;
  box-shadow:0 22px 48px rgba(37,99,235,.30)!important;
  z-index:99995!important;
  text-decoration:none!important;
  padding:0!important;
}
.fcp-mobile-fab:before{content:none!important}.fcp-mobile-fab:after{content:none!important}
@media (max-width:760px){.fcp-mobile-fab{right:18px!important;bottom:calc(100px + env(safe-area-inset-bottom,0px))!important;width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;border-radius:22px!important;font-size:36px!important}.fcp-task-people-tags>div{grid-template-columns:repeat(2,minmax(0,1fr))!important}.fcp-mobile-task-sheet h3,.fcp-mobile-edit-sheet h3{font-size:30px!important}.fcp-task-save-sticky-14637,.fcp-mobile-task-sheet button[type="submit"],.fcp-mobile-edit-sheet button[type="submit"]{min-height:62px!important}}

/* ALTRO: stesso linguaggio visivo di task/lead/clienti, niente cornici blu tagliate */
.fcp-more-clean-card,
.fcp-more-card.fcp-shopping-app,
.fcp-more-card.fcp-recipes-app,
.fcp-notes-app.fcp-more-card{
  position:relative!important;
  background:#fff!important;
  border:1px solid var(--fcp37-line)!important;
  border-radius:28px!important;
  box-shadow:0 18px 44px rgba(8,49,95,.08)!important;
  padding:18px!important;
  overflow:hidden!important;
}
.fcp-more-clean-card:before,.fcp-more-clean-card:after,.fcp-more-card:before,.fcp-more-card:after{content:none!important;display:none!important}
.fcp-more-clean-card>header,.fcp-notes-app>form h3{margin-bottom:14px!important}
.fcp-more-clean-card>header p{margin:4px 0 0!important;color:var(--fcp37-muted)!important;font-size:13px!important;font-weight:850!important}
.fcp-more-clean-form{display:grid!important;gap:12px!important;background:#f8fbff!important;border:1px solid #e4edf8!important;border-radius:24px!important;padding:14px!important;margin-bottom:16px!important}
.fcp-more-clean-form label,.fcp-note-compose label{display:grid!important;gap:7px!important;color:var(--fcp37-muted)!important;font-size:12px!important;font-weight:950!important;letter-spacing:.05em!important;text-transform:uppercase!important;margin:0!important}
.fcp-more-clean-form input,.fcp-more-clean-form select,.fcp-more-clean-form textarea,.fcp-note-compose input,.fcp-note-compose select,.fcp-note-compose textarea{
  width:100%!important;box-sizing:border-box!important;border:1px solid var(--fcp37-line)!important;border-radius:18px!important;background:#fff!important;color:var(--fcp37-ink)!important;padding:13px 14px!important;font-size:16px!important;font-weight:800!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important
}
.fcp-more-clean-form input,.fcp-more-clean-form select,.fcp-note-compose input,.fcp-note-compose select{min-height:54px!important}
.fcp-more-clean-form textarea,.fcp-note-compose textarea{min-height:96px!important;resize:vertical!important}
.fcp-more-form-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;align-items:end!important}
.fcp-more-clean-list{display:grid!important;gap:12px!important}
.fcp-more-row-card,.fcp-note-card{
  background:#fff!important;border:1px solid #e4edf8!important;border-radius:22px!important;padding:14px!important;box-shadow:0 8px 22px rgba(8,49,95,.05)!important
}
.fcp-shopping-item.fcp-more-row-card{grid-template-columns:46px minmax(0,1fr)!important;align-items:center!important}
.fcp-shopping-item.fcp-more-row-card button{width:46px!important;height:46px!important;border-radius:16px!important;background:#fff!important;border:2px solid #cde2ff!important;color:var(--fcp37-green)!important}
.fcp-recipe-card .fcp-recipe-ingredients{display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin:8px 0!important}
.fcp-recipe-card .fcp-recipe-ingredients span{display:inline-flex!important;align-items:center!important;min-height:28px!important;border-radius:999px!important;background:#eef6ff!important;border:1px solid #cde2ff!important;color:var(--fcp37-blue)!important;padding:0 9px!important;font-size:12px!important;font-weight:900!important}
.fcp-recipe-card footer{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-top:10px!important;color:var(--fcp37-muted)!important;font-size:12px!important;font-weight:850!important}
.fcp-more-switcher{position:relative!important;top:auto!important;z-index:5!important;background:transparent!important;padding:0!important;margin-bottom:16px!important}
.fcp-more-switcher button{min-height:52px!important;border-radius:22px!important;font-size:15px!important}
.fcp-note-search input{width:100%!important;min-height:54px!important;border-radius:18px!important;border:1px solid var(--fcp37-line)!important;background:#fff!important;padding:0 14px!important;font-size:16px!important;font-weight:850!important;color:var(--fcp37-ink)!important}
@media (max-width:760px){.fcp-more-clean-card,.fcp-more-card.fcp-shopping-app,.fcp-more-card.fcp-recipes-app,.fcp-notes-app.fcp-more-card{border-radius:24px!important;padding:15px!important}.fcp-more-clean-form{padding:13px!important;border-radius:22px!important}.fcp-more-form-grid{grid-template-columns:1fr!important}.fcp-more-switcher{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}.fcp-more-switcher button{font-size:14px!important;padding:0 8px!important}.fcp-more-clean-card>header h3,.fcp-shopping-app>header h3,.fcp-recipes-app>header h3{font-size:28px!important}}
