/* FCP 14.6.34 - Home calendario + Altro + fix mobile task/clienti */
:root{--fcp34-blue:#1264ff;--fcp34-blue-dark:#082b55;--fcp34-green:#12b76a;--fcp34-ink:#071f3d;--fcp34-muted:#66758a;--fcp34-line:#d7e5f4;--fcp34-soft:#f5f9ff;--fcp34-card:#fff}

/* HOME: calendario tra task importanti e lead recenti */
.fcp-home-calendar-block{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;margin:18px 0!important}
.fcp-home-calendar-block>header{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0 0 12px!important;padding:0 4px!important}
.fcp-home-calendar-block>header h3{margin:0!important;font-size:24px!important;line-height:1.1!important;font-weight:950!important;color:var(--fcp34-ink)!important}
.fcp-home-calendar-block>header span{display:block!important;margin-top:4px!important;font-size:12px!important;font-weight:900!important;letter-spacing:.06em!important;text-transform:uppercase!important;color:var(--fcp34-muted)!important}
.fcp-home-calendar-block>header a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;padding:0 14px!important;border-radius:999px!important;background:#eef6ff!important;border:1px solid #cde2ff!important;color:var(--fcp34-blue)!important;font-weight:950!important;text-decoration:none!important}
.fcp-home-calendar-wrap{background:#fff!important;border:1px solid var(--fcp34-line)!important;border-radius:26px!important;padding:16px!important;box-shadow:0 14px 34px rgba(8,49,95,.08)!important;overflow:hidden!important}
.fcp-home-calendar-wrap .fcp-mobile-month-title{margin:0 0 14px!important}
.fcp-home-calendar-wrap .fcp-mobile-month-title button:first-child{display:none!important}
.fcp-home-calendar-wrap .fcp-mobile-month-title strong{font-size:20px!important;color:var(--fcp34-ink)!important}
.fcp-home-calendar-wrap .fcp-mobile-month-grid{box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important}
.fcp-home-calendar-wrap .fcp-mobile-day-sheet{display:none!important}

/* Bottom nav: 5 voci, più leggibile su mobile */
.fcp-app-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:4px!important;padding-left:max(8px,env(safe-area-inset-left))!important;padding-right:max(8px,env(safe-area-inset-right))!important}
.fcp-app-bottom-nav a{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.fcp-app-bottom-nav a[data-icon="☰"]:before{content:"☰"!important}

/* ALTRO */
.fcp-more-head{margin-bottom:12px!important}
.fcp-more-switcher{position:sticky!important;top:0!important;z-index:6!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;background:rgba(245,249,255,.94)!important;backdrop-filter:blur(10px)!important;padding:8px 0 12px!important;margin:0 0 14px!important}
.fcp-more-switcher button{height:44px!important;border-radius:999px!important;border:1px solid var(--fcp34-line)!important;background:#fff!important;color:var(--fcp34-blue-dark)!important;font-weight:950!important;font-size:13px!important;box-shadow:0 6px 18px rgba(8,49,95,.06)!important}
.fcp-more-switcher button.is-active{background:linear-gradient(135deg,var(--fcp34-blue),#38c8ff)!important;border-color:transparent!important;color:#fff!important}
.fcp-more-panel{display:none!important}
.fcp-more-panel.is-active{display:block!important}
.fcp-more-card{background:#fff!important;border:1px solid var(--fcp34-line)!important;border-radius:26px!important;padding:18px!important;box-shadow:0 14px 34px rgba(8,49,95,.08)!important;margin:0 0 18px!important;overflow:hidden!important}
.fcp-more-card>header,.fcp-shopping-app>header,.fcp-recipes-app>header{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin:0 0 14px!important}
.fcp-more-card>header h3,.fcp-shopping-app>header h3,.fcp-recipes-app>header h3{margin:0!important;color:var(--fcp34-ink)!important;font-size:22px!important;line-height:1.15!important;font-weight:950!important}
.fcp-more-card>header small,.fcp-shopping-app>header small,.fcp-recipes-app>header small{display:block!important;color:var(--fcp34-blue)!important;font-size:12px!important;font-weight:950!important;letter-spacing:.08em!important;text-transform:uppercase!important;margin-bottom:4px!important}
.fcp-more-card>header span,.fcp-shopping-app>header span,.fcp-recipes-app>header span{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:32px!important;padding:0 10px!important;border-radius:999px!important;background:#eef6ff!important;color:var(--fcp34-blue-dark)!important;border:1px solid #cde2ff!important;font-size:12px!important;font-weight:950!important;white-space:nowrap!important}
.fcp-more-form-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin:10px 0!important}
.fcp-shopping-form,.fcp-recipe-form,.fcp-note-compose{display:grid!important;gap:10px!important;margin:0 0 16px!important}
.fcp-shopping-form input,.fcp-shopping-form select,.fcp-recipe-form input,.fcp-recipe-form select,.fcp-recipe-form textarea,.fcp-note-compose input,.fcp-note-compose select,.fcp-note-compose textarea{width:100%!important;border:1px solid var(--fcp34-line)!important;border-radius:16px!important;background:#f9fbff!important;color:var(--fcp34-ink)!important;padding:12px 13px!important;font-size:15px!important;font-weight:750!important;box-shadow:none!important}
.fcp-shopping-form input,.fcp-shopping-form select,.fcp-recipe-form input,.fcp-recipe-form select{height:46px!important}
.fcp-shopping-list,.fcp-recipe-list,.fcp-note-list{display:grid!important;gap:10px!important}
.fcp-shopping-item{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:12px!important;align-items:center!important;background:#f8fbff!important;border:1px solid var(--fcp34-line)!important;border-radius:18px!important;padding:12px!important}
.fcp-shopping-item button{width:42px!important;height:42px!important;border-radius:14px!important;border:1px solid #c9def5!important;background:#fff!important;color:var(--fcp34-green)!important;font-weight:950!important;font-size:18px!important}
.fcp-shopping-item strong{display:block!important;color:var(--fcp34-ink)!important;font-size:16px!important;font-weight:950!important;line-height:1.2!important}
.fcp-shopping-item span{display:block!important;color:var(--fcp34-muted)!important;font-size:13px!important;font-weight:850!important;margin-top:3px!important}
.fcp-shopping-item.is-done{opacity:.62!important}.fcp-shopping-item.is-done strong{text-decoration:line-through!important}
.fcp-recipe-card,.fcp-note-card{background:#f8fbff!important;border:1px solid var(--fcp34-line)!important;border-radius:20px!important;padding:14px!important}
.fcp-recipe-card small{display:inline-flex!important;padding:5px 9px!important;border-radius:999px!important;background:#eaf4ff!important;color:var(--fcp34-blue)!important;font-size:11px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.05em!important}
.fcp-recipe-card h3,.fcp-note-card h3{margin:8px 0 6px!important;color:var(--fcp34-ink)!important;font-size:18px!important;line-height:1.2!important;font-weight:950!important}
.fcp-recipe-card p,.fcp-note-card p{margin:0!important;color:#344861!important;font-size:14px!important;line-height:1.45!important;font-weight:650!important}
.fcp-recipe-card time,.fcp-note-card footer{display:flex!important;flex-wrap:wrap!important;gap:8px!important;margin-top:10px!important;color:var(--fcp34-muted)!important;font-size:12px!important;font-weight:850!important}

/* CLIENTI/LEAD: CTA pulite, niente testo invisibile */
.fcp-mobile-lead-v2-actions-bottom,.fcp-lead-final-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.fcp-mobile-lead-v2-actions-bottom a.call,.fcp-mobile-lead-v2-actions-bottom a.call:link,.fcp-mobile-lead-v2-actions-bottom a.call:visited,.fcp-lead-final-actions a.is-call,.fcp-lead-final-actions a.is-call:link,.fcp-lead-final-actions a.is-call:visited{display:flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;border-radius:15px!important;background:var(--fcp34-blue)!important;border:1px solid var(--fcp34-blue)!important;color:#fff!important;font-weight:950!important;text-decoration:none!important;text-shadow:none!important;opacity:1!important}
.fcp-mobile-lead-v2-actions-bottom a.whatsapp,.fcp-mobile-lead-v2-actions-bottom a.whatsapp:link,.fcp-mobile-lead-v2-actions-bottom a.whatsapp:visited,.fcp-lead-final-actions a.is-whatsapp,.fcp-lead-final-actions a.is-whatsapp:link,.fcp-lead-final-actions a.is-whatsapp:visited{display:flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;border-radius:15px!important;background:var(--fcp34-green)!important;border:1px solid var(--fcp34-green)!important;color:#fff!important;font-weight:950!important;text-decoration:none!important;text-shadow:none!important;opacity:1!important}
.fcp-lead-final-actions a.is-task,.fcp-lead-final-actions a.is-board{display:flex!important;align-items:center!important;justify-content:center!important;min-height:44px!important;border-radius:15px!important;background:#fff!important;border:1px solid var(--fcp34-line)!important;color:var(--fcp34-blue)!important;font-weight:950!important;text-decoration:none!important}
.fcp-mobile-lead-card-v2{display:grid!important;gap:12px!important;padding:15px!important;border-radius:24px!important;overflow:hidden!important}
.fcp-mobile-lead-v2-top{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;gap:12px!important;align-items:center!important}
.fcp-mobile-card-main{min-width:0!important;text-align:left!important}
.fcp-mobile-card-main strong,.fcp-mobile-card-main span{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:break-word!important}
.fcp-mobile-lead-site,.fcp-client-open-task-badge{grid-column:1 / -1!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* MODALI TASK: niente overlap, mobile usabile */
body.fcp-mobile-task-open .fcp-mobile-task-sheet,body.fcp-mobile-edit-open .fcp-mobile-edit-sheet{display:flex!important;flex-direction:column!important;gap:12px!important;background:#fff!important}
.fcp-mobile-task-sheet h3,.fcp-mobile-edit-sheet h3{position:sticky!important;top:-26px!important;z-index:3!important;margin:-4px -2px 4px!important;padding:4px 74px 12px 0!important;background:#fff!important;color:var(--fcp34-ink)!important;font-size:28px!important;line-height:1.1!important;font-weight:950!important;border-bottom:1px solid #edf3fa!important}
.fcp-mobile-task-sheet form,.fcp-mobile-edit-sheet form{display:grid!important;grid-template-columns:1fr!important;gap:13px!important;padding:0 0 24px!important;overflow:visible!important}
.fcp-mobile-task-sheet label,.fcp-mobile-edit-sheet label{display:grid!important;gap:7px!important;color:var(--fcp34-muted)!important;font-size:12px!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.05em!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{width:100%!important;min-height:46px!important;border:1px solid var(--fcp34-line)!important;border-radius:16px!important;background:#f9fbff!important;color:var(--fcp34-ink)!important;padding:12px 13px!important;font-size:15px!important;font-weight:750!important;box-shadow:none!important;text-transform:none!important;letter-spacing:0!important}
.fcp-mobile-task-sheet textarea,.fcp-mobile-edit-sheet textarea{min-height:92px!important;resize:vertical!important}
.fcp-mobile-form-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
.fcp-mobile-date-actions{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px!important}
.fcp-mobile-date-actions button{height:42px!important;border-radius:999px!important;border:1px solid #cde2ff!important;background:#eef6ff!important;color:var(--fcp34-blue)!important;font-weight:950!important}
.fcp-mobile-save-button{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:50px!important;border:0!important;border-radius:16px!important;background:linear-gradient(135deg,var(--fcp34-blue),#37c7ff)!important;color:#fff!important;font-weight:950!important;font-size:16px!important;text-decoration:none!important;box-shadow:0 12px 28px rgba(18,100,255,.24)!important;margin-top:4px!important;z-index:1!important}
.fcp-mobile-edit-backdrop,.fcp-mobile-sheet-backdrop{z-index:1000000!important}.fcp-mobile-task-sheet,.fcp-mobile-edit-sheet{z-index:1000001!important}.fcp-mobile-sheet-x{background:#f2f8ff!important;border:1px solid #cde2ff!important;color:var(--fcp34-blue)!important}

@media (max-width:760px){
  .fcp-home-calendar-wrap{padding:12px!important;border-radius:22px!important}
  .fcp-home-calendar-wrap .fcp-mobile-month-day{min-height:56px!important;padding:6px!important;border-radius:12px!important}
  .fcp-home-calendar-wrap .fcp-mobile-month-day span{display:none!important}
  .fcp-home-calendar-wrap .fcp-mobile-month-day em{font-size:10px!important}
  .fcp-more-switcher{top:0!important}
  .fcp-more-card{padding:15px!important;border-radius:22px!important}
  .fcp-more-form-grid,.fcp-mobile-form-grid{grid-template-columns:1fr!important}
  .fcp-mobile-date-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .fcp-mobile-lead-v2-actions-bottom,.fcp-lead-final-actions{grid-template-columns:1fr 1fr!important}
}
