/* FCP 14.6.32 - UI/UX refine: task/client/notes/mobile */
:root{--fcp-blue:#0f4aa2;--fcp-blue2:#0b7cff;--fcp-cyan:#37c5ff;--fcp-ink:#082345;--fcp-muted:#64748b;--fcp-line:#d7e6f7;--fcp-bg:#f4f8fd;--fcp-card:#fff}
.fcp-app-shell[data-active-tab="task"] .fcp-app-legacy-content,.fcp-app-shell[data-active-tab="note"] .fcp-app-legacy-content{display:none!important}
.fcp-app-shell[data-active-tab="task"] .fcp-mobile-task-cleanup,.fcp-app-shell[data-active-tab="task"] .fcp-mobile-task-sheet:not([aria-hidden="false"]),.fcp-mobile-native-task .fcp-mobile-task-cleanup{display:none!important}
.fcp-task-viewbar-simple{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important;margin:18px 0!important;overflow:visible!important}
.fcp-task-viewbar-simple button{border:1px solid var(--fcp-line)!important;background:#fff!important;color:var(--fcp-ink)!important;border-radius:18px!important;padding:14px 10px!important;font-weight:900!important;box-shadow:0 10px 26px rgba(15,74,162,.08)!important}
.fcp-task-viewbar-simple button.is-active{background:linear-gradient(135deg,var(--fcp-blue2),var(--fcp-cyan))!important;color:#fff!important;border-color:transparent!important}
.fcp-mobile-task-card,.fcp-mobile-task-card-pro{position:relative!important;display:grid!important;grid-template-columns:1fr auto!important;gap:12px!important;min-height:auto!important;padding:16px!important;border-radius:22px!important;background:#fff!important;border:1px solid var(--fcp-line)!important;box-shadow:0 14px 32px rgba(15,74,162,.08)!important;overflow:hidden!important}
.fcp-mobile-task-check{display:none!important}
.fcp-mobile-task-body{min-width:0!important;text-align:left!important;background:transparent!important;border:0!important;padding:0!important;color:var(--fcp-ink)!important;display:flex!important;flex-direction:column!important;gap:5px!important}
.fcp-mobile-task-body strong{font-size:16px!important;line-height:1.2!important;color:var(--fcp-ink)!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;word-break:break-word!important}
.fcp-mobile-task-body span,.fcp-mobile-task-note-preview{font-size:13px!important;line-height:1.35!important;color:var(--fcp-muted)!important;font-weight:700!important;white-space:normal!important;overflow:visible!important;word-break:break-word!important}
.fcp-mobile-task-card em,.fcp-mobile-task-card [class*="prio-"]{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:28px!important;padding:0 10px!important;border-radius:999px!important;background:#eef6ff!important;color:var(--fcp-blue)!important;border:1px solid #cfe3ff!important;font-size:11px!important;font-weight:900!important;text-transform:uppercase!important;font-style:normal!important}
.fcp-mobile-task-more{width:44px!important;height:44px!important;border-radius:16px!important;border:1px solid var(--fcp-line)!important;background:#fff!important;color:var(--fcp-blue)!important;font-weight:900!important;box-shadow:0 8px 18px rgba(15,74,162,.06)!important;grid-column:2!important;align-self:end!important}
.fcp-mobile-board{display:grid!important;grid-template-columns:repeat(4,minmax(230px,1fr))!important;gap:14px!important;overflow-x:auto!important;padding-bottom:18px!important}
.fcp-mobile-board-col{min-width:230px!important;border-radius:22px!important;background:#f8fbff!important;border:1px solid var(--fcp-line)!important;padding:12px!important;max-height:72vh!important;overflow:auto!important}
.fcp-mobile-board-col .fcp-mobile-task-card{grid-template-columns:1fr auto!important;margin-bottom:12px!important}
.fcp-mobile-edit-backdrop,.fcp-mobile-sheet-backdrop{position:fixed!important;inset:0!important;background:rgba(8,35,69,.58)!important;z-index:999998!important;display:none!important}
body.fcp-mobile-edit-open .fcp-mobile-edit-backdrop,body.fcp-mobile-task-open .fcp-mobile-sheet-backdrop{display:block!important}
.fcp-mobile-edit-sheet,.fcp-mobile-task-sheet{position:fixed!important;z-index:999999!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:min(780px,calc(100dvh - 48px))!important;overflow:auto!important;border-radius:28px!important;background:#fff!important;padding:24px!important;box-shadow:0 30px 90px rgba(8,35,69,.35)!important;border:1px solid var(--fcp-line)!important;display:none!important}
body.fcp-mobile-edit-open .fcp-mobile-edit-sheet,body.fcp-mobile-task-open .fcp-mobile-task-sheet{display:block!important;opacity:1!important;visibility:visible!important;aria-hidden:false!important}
.fcp-mobile-edit-sheet h3,.fcp-mobile-task-sheet h3{font-size:30px!important;line-height:1.1!important;color:var(--fcp-ink)!important;margin:0 58px 18px 0!important}
.fcp-mobile-edit-sheet label,.fcp-mobile-task-sheet label{font-weight:900!important;color:var(--fcp-muted)!important;display:flex!important;flex-direction:column!important;gap:8px!important;margin:0 0 14px!important}
.fcp-mobile-edit-sheet input,.fcp-mobile-edit-sheet select,.fcp-mobile-edit-sheet textarea,.fcp-mobile-task-sheet input,.fcp-mobile-task-sheet select,.fcp-mobile-task-sheet textarea{width:100%!important;min-height:54px!important;border:1px solid var(--fcp-line)!important;border-radius:16px!important;padding:12px 16px!important;font-size:16px!important;font-weight:800!important;color:var(--fcp-ink)!important;background:#fff!important;box-sizing:border-box!important}
.fcp-mobile-sheet-x{position:absolute!important;right:22px!important;top:22px!important;width:54px!important;height:54px!important;border-radius:18px!important;border:1px solid #cfe3ff!important;background:#f2f8ff!important;color:var(--fcp-blue2)!important;font-size:28px!important;font-weight:900!important}
.fcp-task-people-tags{background:#f8fbff!important;border:1px solid var(--fcp-line)!important;border-radius:18px!important;padding:14px!important;margin:14px 0!important}
.fcp-task-people-tags strong{display:block!important;margin-bottom:10px!important;color:var(--fcp-muted)!important;text-transform:uppercase!important;font-size:12px!important;letter-spacing:.05em!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:6px!important;margin:0!important;padding:8px 10px!important;border-radius:999px!important;background:#fff!important;border:1px solid #bdddff!important;color:var(--fcp-blue)!important;font-weight:900!important}.fcp-task-people-tags input{width:16px!important;height:16px!important;min-height:16px!important;padding:0!important}
.fcp-mobile-save-button{background:linear-gradient(135deg,var(--fcp-blue2),var(--fcp-cyan))!important;color:#fff!important;border:0!important;border-radius:18px!important;min-height:56px!important;font-weight:900!important;font-size:16px!important;width:100%!important}
.fcp-mobile-lead-v2-actions-bottom .call,.fcp-lead-final-actions .is-call{background:#2164e8!important;color:#fff!important;border-color:#2164e8!important;text-shadow:none!important}.fcp-mobile-lead-v2-actions-bottom .whatsapp,.fcp-lead-final-actions .is-whatsapp{background:#13bd65!important;color:#fff!important;border-color:#13bd65!important;text-shadow:none!important}.fcp-mobile-lead-v2-actions-bottom a,.fcp-lead-final-actions a{font-weight:900!important;text-decoration:none!important}.fcp-client-open-task-badge{display:inline-flex!important;margin-top:8px!important;padding:6px 10px!important;border-radius:999px!important;background:#eef6ff!important;color:var(--fcp-blue)!important;font-weight:900!important;font-size:12px!important}.fcp-client-open-task-badge.is-empty{color:#64748b!important;background:#f1f5f9!important}
.fcp-lead-final-notes p{white-space:pre-wrap!important}.fcp-lead-final-notes:after{content:'Modifica note dal backend CRM o dalla sezione Note';display:block;margin-top:8px;color:var(--fcp-blue);font-weight:800;font-size:12px}
.fcp-notes-app{display:grid!important;gap:16px!important}.fcp-note-compose,.fcp-note-card{background:#fff!important;border:1px solid var(--fcp-line)!important;border-radius:24px!important;padding:18px!important;box-shadow:0 14px 34px rgba(15,74,162,.08)!important}.fcp-note-compose h3,.fcp-note-card h3{margin:0 0 12px!important;color:var(--fcp-ink)!important;font-size:22px!important}.fcp-note-compose input,.fcp-note-compose textarea,.fcp-note-compose select,.fcp-note-search input{width:100%!important;border:1px solid var(--fcp-line)!important;border-radius:16px!important;padding:14px!important;min-height:50px!important;font-size:15px!important;box-sizing:border-box!important;background:#fff!important}.fcp-note-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important;margin:12px 0!important}.fcp-note-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))!important;gap:14px!important}.fcp-note-card p{white-space:pre-wrap!important;color:#334155!important;font-weight:650!important}.fcp-note-card footer{display:flex!important;gap:8px!important;flex-wrap:wrap!important}.fcp-note-card footer span,.fcp-note-card footer time{background:#eef6ff!important;color:var(--fcp-blue)!important;border-radius:999px!important;padding:6px 9px!important;font-size:12px!important;font-weight:900!important}
@media (max-width:760px){.fcp-mobile-edit-sheet,.fcp-mobile-task-sheet{left:12px!important;right:12px!important;top:calc(env(safe-area-inset-top,0px) + 18px)!important;bottom:auto!important;transform:none!important;width:auto!important;max-height:calc(100dvh - 38px - env(safe-area-inset-top,0px))!important;border-radius:26px!important;padding:22px!important}.fcp-mobile-edit-sheet h3,.fcp-mobile-task-sheet h3{font-size:28px!important}.fcp-mobile-board{display:flex!important;overflow-x:auto!important;scroll-snap-type:x mandatory!important}.fcp-mobile-board-col{min-width:82vw!important;scroll-snap-align:start!important}.fcp-note-grid{grid-template-columns:1fr!important}.fcp-note-list{grid-template-columns:1fr!important}.fcp-app-bottom-nav a:nth-child(n+6){display:none!important}.fcp-mobile-native-note{padding-bottom:110px!important}}
