/* Felice Client Portal 14.6.29 - fix drawer task giorno + menu task mobile */
:root{
  --fcp29-blue:#155eef;
  --fcp29-blue-2:#2da8ff;
  --fcp29-text:#0b2444;
  --fcp29-muted:#667085;
  --fcp29-line:#d7e5f5;
  --fcp29-soft:#f3f8ff;
  --fcp29-shadow:0 26px 88px rgba(15,35,65,.24);
}

body.fcp-app-root-page .fcp-day-drawer-14628,
body.fcp-app-root-page .fcp-day-drawer-14628-backdrop{display:none!important;visibility:hidden!important;pointer-events:none!important;}

body.fcp-app-root-page .fcp-mobile-month-day,
body.fcp-app-root-page .fcp-mobile-schedule-cell,
body.fcp-app-root-page .fcp-mobile-schedule-event,
body.fcp-app-root-page .fcp-mobile-schedule-more{cursor:pointer!important;}

body.fcp-app-root-page .fcp-day-drawer-14629-backdrop{
  display:none!important;position:fixed!important;inset:0!important;z-index:2147483400!important;
  background:rgba(11,24,45,.58)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;
}
body.fcp-day-drawer-14629-open .fcp-day-drawer-14629-backdrop,
html.fcp-day-drawer-14629-open .fcp-day-drawer-14629-backdrop{display:block!important;}
body.fcp-app-root-page .fcp-day-drawer-14629{
  position:fixed!important;left:50%!important;top:50%!important;z-index:2147483500!important;
  width:min(820px,calc(100vw - 36px))!important;height:min(780px,calc(100dvh - 54px))!important;max-height:calc(100dvh - 54px)!important;
  transform:translate(-50%,-48%) scale(.98)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;box-sizing:border-box!important;
  padding:22px!important;background:#fff!important;border:1px solid var(--fcp29-line)!important;border-radius:28px!important;box-shadow:var(--fcp29-shadow)!important;
}
body.fcp-day-drawer-14629-open .fcp-day-drawer-14629,
html.fcp-day-drawer-14629-open .fcp-day-drawer-14629{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translate(-50%,-50%) scale(1)!important;}
body.fcp-app-root-page .fcp-day-drawer-14629-close{
  position:absolute!important;top:16px!important;right:16px!important;width:46px!important;height:46px!important;min-height:46px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;border-radius:17px!important;border:1px solid #bfdbfe!important;
  background:#eff6ff!important;color:var(--fcp29-blue)!important;font-size:28px!important;line-height:1!important;font-weight:950!important;box-shadow:0 8px 20px rgba(15,35,65,.08)!important;
}
body.fcp-app-root-page .fcp-day-drawer-14629-head{flex:0 0 auto!important;margin:0 60px 16px 0!important;padding-bottom:14px!important;border-bottom:1px solid var(--fcp29-line)!important;}
body.fcp-app-root-page .fcp-day-drawer-14629-head small{display:block!important;margin:0 0 7px!important;color:var(--fcp29-blue)!important;font-size:12px!important;line-height:1!important;font-weight:950!important;text-transform:uppercase!important;letter-spacing:.08em!important;}
body.fcp-app-root-page .fcp-day-drawer-14629-head h3{margin:0!important;color:var(--fcp29-text)!important;font-size:26px!important;line-height:1.12!important;font-weight:950!important;letter-spacing:-.03em!important;}
body.fcp-app-root-page .fcp-day-drawer-14629-head p{margin:8px 0 0!important;color:var(--fcp29-muted)!important;font-size:14px!important;font-weight:900!important;}
body.fcp-app-root-page .fcp-day-drawer-14629-body{
  flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
  display:grid!important;grid-template-columns:1fr!important;gap:12px!important;padding:4px 4px 24px!important;box-sizing:border-box!important;
}
body.fcp-app-root-page .fcp-day-drawer-14629-body .fcp-mobile-task-card,
body.fcp-app-root-page .fcp-day-drawer-14629-body [data-fcp-task-card]{
  width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important;display:grid!important;grid-template-columns:36px minmax(0,1fr) auto auto!important;align-items:center!important;gap:12px!important;
  padding:15px!important;border-radius:20px!important;border:1px solid var(--fcp29-line)!important;background:#fff!important;box-shadow:0 12px 28px rgba(15,35,65,.07)!important;overflow:visible!important;box-sizing:border-box!important;
}
body.fcp-app-root-page .fcp-day-drawer-14629-body .fcp-mobile-task-body{min-width:0!important;width:100%!important;text-align:left!important;border:0!important;background:transparent!important;padding:0!important;color:var(--fcp29-text)!important;}
body.fcp-app-root-page .fcp-day-drawer-14629-body .fcp-mobile-task-body strong{display:block!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;color:var(--fcp29-text)!important;font-size:15px!important;line-height:1.25!important;font-weight:950!important;}
body.fcp-app-root-page .fcp-day-drawer-14629-body .fcp-mobile-task-body span,
body.fcp-app-root-page .fcp-day-drawer-14629-body .fcp-mobile-task-note-preview{display:block!important;white-space:normal!important;overflow:visible!important;color:var(--fcp29-muted)!important;font-size:12px!important;line-height:1.35!important;font-weight:750!important;margin-top:4px!important;}
body.fcp-app-root-page .fcp-day-drawer-14629-body .fcp-mobile-task-check{width:30px!important;height:30px!important;border-radius:11px!important;border:1.5px solid #b8d4f5!important;background:#fff!important;}
body.fcp-app-root-page .fcp-day-drawer-14629-body em{white-space:nowrap!important;border-radius:999px!important;padding:6px 9px!important;font-size:11px!important;line-height:1!important;font-style:normal!important;font-weight:900!important;color:#0b3b8f!important;background:#edf5ff!important;}
body.fcp-app-root-page .fcp-day-drawer-14629-body .fcp-mobile-task-more{width:36px!important;height:36px!important;border-radius:13px!important;border:1px solid var(--fcp29-line)!important;background:#fff!important;color:var(--fcp29-blue)!important;font-weight:950!important;}
body.fcp-app-root-page .fcp-day-loading-14629,
body.fcp-app-root-page .fcp-day-empty-14629{display:flex!important;flex-direction:column!important;gap:10px!important;align-items:flex-start!important;padding:20px!important;border-radius:20px!important;border:1px dashed #b8d4f5!important;background:#f8fbff!important;color:var(--fcp29-text)!important;font-weight:850!important;}
body.fcp-app-root-page .fcp-day-empty-14629 strong{font-size:16px!important;font-weight:950!important;color:var(--fcp29-text)!important;}
body.fcp-app-root-page .fcp-day-empty-14629 span{font-size:14px!important;color:var(--fcp29-muted)!important;}
body.fcp-app-root-page .fcp-day-empty-14629 button{min-height:46px!important;border:0!important;border-radius:15px!important;padding:0 16px!important;background:linear-gradient(135deg,var(--fcp29-blue),var(--fcp29-blue-2))!important;color:#fff!important;font-weight:950!important;}
body.fcp-day-drawer-14629-open,
html.fcp-day-drawer-14629-open{overflow:hidden!important;}

/* Fix action menu task: non deve aprirsi a meta schermo o fuori viewport */
body.fcp-app-root-page .fcp-mobile-task-menu.is-open{position:fixed!important;inset:0!important;z-index:2147483300!important;pointer-events:none!important;}
body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-backdrop{position:fixed!important;inset:0!important;z-index:1!important;display:block!important;background:rgba(11,24,45,.45)!important;backdrop-filter:blur(5px)!important;pointer-events:auto!important;}
body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-panel{
  position:fixed!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;z-index:2!important;
  width:min(560px,calc(100vw - 32px))!important;max-height:calc(100dvh - 48px)!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;
  transform:translate(-50%,-50%)!important;opacity:1!important;pointer-events:auto!important;background:#fff!important;border:1px solid var(--fcp29-line)!important;border-radius:26px!important;padding:22px!important;box-shadow:var(--fcp29-shadow)!important;
}
body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-panel h3{margin:0 52px 10px 0!important;font-size:22px!important;line-height:1.12!important;color:var(--fcp29-text)!important;font-weight:950!important;letter-spacing:-.03em!important;}
body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-panel small{display:block!important;margin:0 0 6px!important;color:var(--fcp29-muted)!important;font-size:13px!important;}
body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-hint{margin:0 0 14px!important;color:var(--fcp29-muted)!important;font-size:14px!important;}
body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-grid button{min-height:54px!important;border-radius:18px!important;border:1px solid var(--fcp29-line)!important;background:#fff!important;color:var(--fcp29-text)!important;font-size:16px!important;font-weight:900!important;text-align:center!important;}
body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-grid button[data-menu-status="done"]{background:linear-gradient(135deg,var(--fcp29-blue),var(--fcp29-blue-2))!important;border-color:transparent!important;color:#fff!important;}

/* Fix modal nuova task: sempre dentro viewport e centrata/scrollabile */
body.fcp-app-root-page.fcp-mobile-task-open .fcp-mobile-sheet-backdrop{display:block!important;opacity:1!important;pointer-events:auto!important;background:rgba(11,24,45,.52)!important;backdrop-filter:blur(6px)!important;z-index:2147483000!important;}
body.fcp-app-root-page .fcp-mobile-task-sheet{z-index:2147483100!important;}
body.fcp-app-root-page.fcp-mobile-task-open .fcp-mobile-task-sheet{opacity:1!important;visibility:visible!important;pointer-events:auto!important;}

@media (max-width:760px){
  body.fcp-app-root-page .fcp-day-drawer-14629{left:max(8px,env(safe-area-inset-left))!important;right:max(8px,env(safe-area-inset-right))!important;top:max(54px,env(safe-area-inset-top))!important;bottom:max(8px,env(safe-area-inset-bottom))!important;width:auto!important;height:auto!important;max-height:none!important;border-radius:24px!important;padding:18px 14px 16px!important;transform:translateY(12px)!important;}
  body.fcp-day-drawer-14629-open .fcp-day-drawer-14629,
  html.fcp-day-drawer-14629-open .fcp-day-drawer-14629{transform:translateY(0)!important;}
  body.fcp-app-root-page .fcp-day-drawer-14629-head{margin:0 52px 14px 0!important;}
  body.fcp-app-root-page .fcp-day-drawer-14629-head h3{font-size:22px!important;}
  body.fcp-app-root-page .fcp-day-drawer-14629-body{padding-bottom:calc(104px + env(safe-area-inset-bottom))!important;}
  body.fcp-app-root-page .fcp-day-drawer-14629-body .fcp-mobile-task-card,
  body.fcp-app-root-page .fcp-day-drawer-14629-body [data-fcp-task-card]{grid-template-columns:34px minmax(0,1fr) 38px!important;gap:10px!important;padding:13px!important;}
  body.fcp-app-root-page .fcp-day-drawer-14629-body em{display:none!important;}
  body.fcp-app-root-page .fcp-day-drawer-14629-body .fcp-mobile-task-more{grid-column:3!important;}

  body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-panel{left:max(12px,env(safe-area-inset-left))!important;right:max(12px,env(safe-area-inset-right))!important;top:auto!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;max-height:min(72dvh,620px)!important;transform:none!important;border-radius:26px!important;padding:20px!important;}
  body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-grid{grid-template-columns:1fr!important;gap:10px!important;}
  body.fcp-app-root-page .fcp-mobile-task-menu.is-open .fcp-mobile-menu-grid button{min-height:56px!important;text-align:left!important;padding:0 18px!important;}

  body.fcp-app-root-page .fcp-mobile-task-sheet{left:max(12px,env(safe-area-inset-left))!important;right:max(12px,env(safe-area-inset-right))!important;top:max(64px,env(safe-area-inset-top))!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:auto!important;height:auto!important;max-height:none!important;overflow:auto!important;-webkit-overflow-scrolling:touch!important;border-radius:26px!important;transform:none!important;}
  body.fcp-app-root-page.fcp-mobile-task-open .fcp-mobile-task-sheet{transform:none!important;}
}
