/* FCP 14.6.33 - fix finale mobile task/drawer/clienti */
:root{--fcp-blue:#0f66ff;--fcp-blue-dark:#08315f;--fcp-cyan:#32c8ff;--fcp-ink:#09213f;--fcp-muted:#66758a;--fcp-line:#d6e5f5;--fcp-soft:#f6faff;--fcp-card:#ffffff}

/* Task: elenco pulito a bucket oggi/domani/dopodomani */
.fcp-mobile-task-bucket{background:transparent!important;margin:18px 0!important;padding:0!important;border:0!important;box-shadow:none!important}
.fcp-mobile-task-bucket>header{display:flex!important;align-items:end!important;justify-content:space-between!important;margin:0 0 10px!important;padding:0 4px!important}
.fcp-mobile-task-bucket>header h3{font-size:24px!important;line-height:1.1!important;margin:0!important;color:var(--fcp-ink)!important;font-weight:950!important}
.fcp-mobile-task-bucket>header span{display:block!important;margin-top:4px!important;color:var(--fcp-muted)!important;font-weight:850!important;font-size:13px!important;text-transform:uppercase!important;letter-spacing:.02em!important}
.fcp-mobile-task-bucket>header em{font-style:normal!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:34px!important;height:34px!important;padding:0 10px!important;border-radius:999px!important;background:#edf6ff!important;border:1px solid var(--fcp-line)!important;color:var(--fcp-blue-dark)!important;font-weight:950!important}
.fcp-mobile-task-bucket-list{display:grid!important;gap:12px!important}
.fcp-mobile-task-bucket .fcp-mobile-empty{background:#fff!important;border:1px dashed var(--fcp-line)!important;border-radius:18px!important;padding:18px!important;color:var(--fcp-muted)!important;font-weight:800!important}

/* Card task: niente checkbox, testo ordinato, menu sempre a destra */
.fcp-mobile-task-card,.fcp-mobile-task-card-pro,.fcp-day-drawer-card-14630{display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;grid-template-rows:auto auto!important;align-items:center!important;gap:10px 12px!important;min-height:0!important;padding:18px!important;border-radius:22px!important;background:#fff!important;border:1px solid var(--fcp-line)!important;box-shadow:0 14px 34px rgba(8,49,95,.08)!important;overflow:visible!important;position:relative!important;text-align:left!important}
.fcp-mobile-task-check{display:none!important}
.fcp-mobile-task-body{grid-column:1!important;grid-row:1 / span 2!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:6px!important;width:100%!important;min-width:0!important;padding:0!important;background:transparent!important;border:0!important;text-align:left!important;color:var(--fcp-ink)!important;box-shadow:none!important}
.fcp-mobile-task-body strong{display:block!important;width:100%!important;font-size:18px!important;line-height:1.18!important;font-weight:950!important;color:var(--fcp-ink)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:break-word!important;order:1!important}
.fcp-mobile-task-body span{display:block!important;width:100%!important;font-size:14px!important;line-height:1.32!important;color:var(--fcp-muted)!important;font-weight:850!important;white-space:normal!important;word-break:break-word!important;order:2!important}
.fcp-mobile-task-note-preview{display:block!important;width:100%!important;font-size:13px!important;line-height:1.32!important;color:var(--fcp-muted)!important;font-weight:750!important;white-space:normal!important;word-break:break-word!important;order:3!important;margin-top:2px!important}
.fcp-mobile-task-card em,.fcp-mobile-task-card [class*="prio-"],.fcp-day-drawer-card-14630 em{grid-column:2!important;grid-row:1!important;justify-self:end!important;align-self:start!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;height:30px!important;padding:0 10px!important;border-radius:999px!important;background:#eef5ff!important;color:var(--fcp-blue-dark)!important;border:1px solid var(--fcp-line)!important;font-size:11px!important;font-weight:950!important;text-transform:uppercase!important;font-style:normal!important;white-space:nowrap!important}
.fcp-mobile-task-more{grid-column:2!important;grid-row:2!important;justify-self:end!important;align-self:end!important;position:static!important;width:46px!important;height:46px!important;min-width:46px!important;border-radius:16px!important;border:1px solid var(--fcp-line)!important;background:#fff!important;color:var(--fcp-blue)!important;font-size:20px!important;line-height:1!important;font-weight:950!important;box-shadow:0 8px 20px rgba(8,49,95,.08)!important;transform:none!important;inset:auto!important;z-index:3!important}

/* Drawer giorno: sempre pieno, leggibile e scrollabile */
.fcp-day-drawer-14630{position:fixed!important;z-index:1000002!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(720px,calc(100vw - 28px))!important;max-height:calc(100dvh - 36px)!important;overflow:hidden!important;background:#fff!important;border:1px solid var(--fcp-line)!important;border-radius:28px!important;padding:24px!important;box-shadow:0 34px 110px rgba(8,35,69,.38)!important;display:flex!important;flex-direction:column!important}
.fcp-day-drawer-14630[aria-hidden="true"]{display:none!important}
.fcp-day-drawer-14630-head{flex:0 0 auto!important;padding:0 66px 16px 0!important;border-bottom:1px solid var(--fcp-line)!important;margin:0 0 16px!important}
.fcp-day-drawer-14630-head small{display:block!important;color:var(--fcp-blue)!important;font-size:13px!important;font-weight:950!important;letter-spacing:.08em!important;text-transform:uppercase!important;margin-bottom:5px!important}
.fcp-day-drawer-14630-head h3{font-size:32px!important;line-height:1.05!important;color:var(--fcp-ink)!important;font-weight:950!important;margin:0 0 8px!important}
.fcp-day-drawer-14630-head p{margin:0!important;color:var(--fcp-muted)!important;font-size:18px!important;font-weight:900!important}
.fcp-day-drawer-14630-close{position:absolute!important;right:20px!important;top:20px!important;width:56px!important;height:56px!important;border-radius:18px!important;border:1px solid #cfe3ff!important;background:#f2f8ff!important;color:var(--fcp-blue)!important;font-size:30px!important;font-weight:950!important;z-index:2!important}
.fcp-day-drawer-14630-body{flex:1 1 auto!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;display:grid!important;gap:12px!important;padding:2px 4px 18px!important;min-height:0!important}
.fcp-day-drawer-14630-body .fcp-mobile-task-card{width:100%!important;min-height:0!important;margin:0!important;box-sizing:border-box!important}
.fcp-day-drawer-14630-empty{background:var(--fcp-soft)!important;border:1px dashed var(--fcp-line)!important;border-radius:22px!important;padding:24px!important;display:grid!important;gap:14px!important;align-content:start!important;color:var(--fcp-ink)!important;min-height:180px!important}
.fcp-day-drawer-14630-empty strong{font-size:22px!important;line-height:1.15!important}.fcp-day-drawer-14630-empty span{color:var(--fcp-muted)!important;font-weight:850!important}.fcp-day-drawer-14630-empty button{width:max-content!important;border:0!important;border-radius:18px!important;background:linear-gradient(135deg,var(--fcp-blue),var(--fcp-cyan))!important;color:#fff!important;padding:14px 18px!important;font-weight:950!important;font-size:16px!important}

/* Modal task: scroll interno, sito sotto bloccato */
body.fcp-mobile-task-open,body.fcp-mobile-edit-open,body.fcp-day-drawer-14630-open{overflow:hidden!important}
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;left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;transform:translate(-50%,-50%)!important;width:min(720px,calc(100vw - 28px))!important;max-height:calc(100dvh - 36px)!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;padding:26px!important;border-radius:28px!important;background:#fff!important;box-sizing:border-box!important}
.fcp-mobile-task-sheet form,.fcp-mobile-edit-sheet form{display:grid!important;gap:14px!important;padding-bottom:28px!important;min-height:min-content!important}
.fcp-mobile-task-sheet label,.fcp-mobile-edit-sheet label{margin:0!important}.fcp-mobile-save-button{position:relative!important;bottom:auto!important;left:auto!important;right:auto!important;margin-top:8px!important;flex:0 0 auto!important}
.fcp-mobile-sheet-x{position:absolute!important;right:22px!important;top:22px!important;z-index:5!important}
.fcp-mobile-edit-sheet h3,.fcp-mobile-task-sheet h3{padding-right:70px!important}

/* Persone condivise: checkbox piccole, non quadroni giganti */
.fcp-task-people-tags{background:#f8fbff!important;border:1px solid var(--fcp-line)!important;border-radius:20px!important;padding:14px!important;margin:10px 0!important}.fcp-task-people-tags strong{text-transform:uppercase!important;letter-spacing:.06em!important;color:var(--fcp-muted)!important;font-size:12px!important;font-weight:950!important;margin:0 0 10px!important}.fcp-task-people-tags>div{display:flex!important;flex-wrap:wrap!important;gap:8px!important}.fcp-task-people-tags label{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;margin:0!important;padding:9px 11px!important;border-radius:999px!important;border:1px solid #bddbff!important;background:#fff!important;color:var(--fcp-blue-dark)!important;font-size:13px!important;font-weight:900!important}.fcp-task-people-tags input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;padding:0!important;margin:0!important;border-radius:3px!important;transform:none!important;box-shadow:none!important}

/* Clienti: testo pulsanti leggibile */
.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{background:#2164e8!important;border-color:#2164e8!important;color:#fff!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{background:#13bd65!important;border-color:#13bd65!important;color:#fff!important;text-shadow:none!important;opacity:1!important}
.fcp-lead-final-actions a,.fcp-mobile-lead-v2-actions-bottom a{font-weight:950!important;text-decoration:none!important}

@media (max-width:760px){
  .fcp-day-drawer-14630{left:12px!important;right:12px!important;top:calc(env(safe-area-inset-top,0px) + 18px)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 18px)!important;transform:none!important;width:auto!important;max-height:none!important;padding:22px!important;border-radius:26px!important}
  .fcp-day-drawer-14630-head h3{font-size:30px!important}.fcp-day-drawer-14630-body{padding-bottom:20px!important}
  body.fcp-mobile-task-open .fcp-mobile-task-sheet,body.fcp-mobile-edit-open .fcp-mobile-edit-sheet{left:12px!important;right:12px!important;top:calc(env(safe-area-inset-top,0px) + 14px)!important;bottom:calc(env(safe-area-inset-bottom,0px) + 14px)!important;transform:none!important;width:auto!important;max-height:none!important;border-radius:26px!important;padding:22px!important}
  .fcp-mobile-task-body strong{font-size:18px!important}.fcp-mobile-task-body span{font-size:14px!important}
  .fcp-mobile-task-card,.fcp-day-drawer-card-14630{padding:16px!important;border-radius:22px!important;grid-template-columns:minmax(0,1fr) 46px!important}
}
html.fcp-modal-scroll-locked,html.fcp-modal-scroll-locked body{overflow:hidden!important;height:100%!important}
