/* 14.6.54 - Nuova task mobile compact, one-screen */
@media (max-width: 960px){
  body.fcp-mobile-task-open .fcp-mobile-sheet-backdrop{
    background:rgba(15,23,42,.50)!important;
    backdrop-filter:blur(3px)!important;
    z-index:2147483600!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-task-sheet,
  body.fcp-app-root-page.fcp-mobile-task-open .fcp-mobile-task-sheet,
  html body.fcp-mobile-task-open .fcp-mobile-task-sheet.fcp-task-modal-14637{
    position:fixed!important;
    top:calc(env(safe-area-inset-top,0px) + 8px)!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    transform:translateX(-50%)!important;
    width:min(414px, calc(100vw - 18px))!important;
    max-width:414px!important;
    max-height:calc(100dvh - 18px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))!important;
    overflow:hidden!important;
    padding:12px 12px 10px!important;
    border-radius:24px!important;
    border:1px solid #dbe7f3!important;
    background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important;
    box-shadow:0 24px 70px rgba(15,23,42,.26)!important;
    z-index:2147483646!important;
    display:flex!important;
    flex-direction:column!important;
    opacity:1!important;
    pointer-events:auto!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-task-sheet h3{
    flex:0 0 auto!important;
    margin:0 54px 8px 0!important;
    padding:0!important;
    font-size:26px!important;
    line-height:1!important;
    letter-spacing:-.06em!important;
    color:#0f2547!important;
    font-weight:950!important;
    border:0!important;
    background:transparent!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-sheet-x{
    position:absolute!important;
    top:10px!important;
    right:10px!important;
    width:46px!important;
    height:46px!important;
    min-width:46px!important;
    min-height:46px!important;
    border-radius:16px!important;
    border:1px solid #d9e6f5!important;
    background:#f6fbff!important;
    color:#2563eb!important;
    font-size:28px!important;
    font-weight:950!important;
    line-height:1!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-shadow:none!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-task-sheet form{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:visible!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    padding:0!important;
    margin:0!important;
    align-content:start!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-task-sheet label,
  body.fcp-mobile-task-open .fcp-mobile-task-sheet .fcp-task-people-tags{
    margin:0!important;
    min-width:0!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-task-sheet label{
    display:grid!important;
    gap:4px!important;
    font-size:11px!important;
    line-height:1.05!important;
    color:#64748b!important;
    font-weight:900!important;
    letter-spacing:-.01em!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-task-sheet .fcp-field-full,
  body.fcp-mobile-task-open .fcp-mobile-date-actions,
  body.fcp-mobile-task-open .fcp-mobile-form-grid,
  body.fcp-mobile-task-open .fcp-mobile-task-sheet label:has(select[name="client_id"]),
  body.fcp-mobile-task-open .fcp-mobile-task-sheet label:has(textarea[name="task_note"]),
  body.fcp-mobile-task-open .fcp-task-people-tags,
  body.fcp-mobile-task-open .fcp-mobile-save-button{
    grid-column:1/-1!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-task-sheet input:not([type="checkbox"]):not([type="radio"]),
  body.fcp-mobile-task-open .fcp-mobile-task-sheet select,
  body.fcp-mobile-task-open .fcp-mobile-task-sheet textarea{
    width:100%!important;
    height:44px!important;
    min-height:44px!important;
    max-height:44px!important;
    border-radius:15px!important;
    border:1px solid #dbe7f3!important;
    background:#fff!important;
    color:#0f2547!important;
    font-size:15px!important;
    line-height:1.1!important;
    font-weight:850!important;
    padding:9px 12px!important;
    box-shadow:0 1px 0 rgba(15,23,42,.02)!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-task-sheet input::placeholder,
  body.fcp-mobile-task-open .fcp-mobile-task-sheet textarea::placeholder{
    color:#8a97ab!important;
    font-weight:750!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-task-sheet textarea[name="task_note"]{
    height:48px!important;
    min-height:48px!important;
    max-height:48px!important;
    resize:none!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-date-actions{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:7px!important;
    margin:0!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-date-actions button{
    width:100%!important;
    height:42px!important;
    min-height:42px!important;
    border-radius:15px!important;
    border:1px solid #dbe7f3!important;
    background:#f6fbff!important;
    color:#2563eb!important;
    font-size:15px!important;
    font-weight:950!important;
    padding:0!important;
    box-shadow:none!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-form-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    margin:0!important;
  }

  body.fcp-mobile-task-open .fcp-task-people-tags{
    border:1px solid #dbe7f3!important;
    border-radius:16px!important;
    background:#f7fbff!important;
    padding:0!important;
    overflow:hidden!important;
  }

  body.fcp-mobile-task-open .fcp-task-people-tags summary{
    min-height:46px!important;
    padding:0 13px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px!important;
    cursor:pointer!important;
    list-style:none!important;
  }

  body.fcp-mobile-task-open .fcp-task-people-tags summary::-webkit-details-marker{display:none!important;}

  body.fcp-mobile-task-open .fcp-task-people-tags summary span{
    display:block!important;
    font-size:10px!important;
    line-height:1.1!important;
    text-transform:uppercase!important;
    letter-spacing:.14em!important;
    color:#64748b!important;
    font-weight:950!important;
  }

  body.fcp-mobile-task-open .fcp-task-people-tags summary strong{
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    color:#2563eb!important;
    font-size:13px!important;
    font-weight:950!important;
    letter-spacing:.04em!important;
    text-transform:uppercase!important;
  }

  body.fcp-mobile-task-open .fcp-task-people-tags summary strong::after{
    content:'⌄';
    font-size:14px!important;
    line-height:1!important;
    transform:translateY(-1px);
  }

  body.fcp-mobile-task-open .fcp-task-people-tags[open] summary strong::after{content:'⌃';}

  body.fcp-mobile-task-open .fcp-task-people-tags > div{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
    padding:0 10px 10px!important;
    max-height:122px!important;
    overflow:auto!important;
  }

  body.fcp-mobile-task-open .fcp-task-people-tags > div label{
    height:36px!important;
    min-height:36px!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    padding:0 9px!important;
    border:1px solid #dbe7f3!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#0f2547!important;
    font-size:13px!important;
    font-weight:850!important;
  }

  body.fcp-mobile-task-open .fcp-task-people-tags input[type="checkbox"]{
    width:18px!important;
    height:18px!important;
    min-width:18px!important;
    accent-color:#2563eb!important;
    margin:0!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-save-button,
  body.fcp-mobile-task-open .fcp-mobile-task-sheet button[type="submit"]{
    width:100%!important;
    height:50px!important;
    min-height:50px!important;
    margin:0!important;
    border:0!important;
    border-radius:17px!important;
    background:linear-gradient(135deg,#2563eb 0%,#20bdf8 100%)!important;
    color:#fff!important;
    font-size:17px!important;
    line-height:1!important;
    font-weight:950!important;
    letter-spacing:-.02em!important;
    box-shadow:0 14px 34px rgba(37,99,235,.25)!important;
  }

  body.fcp-mobile-task-open .fcp-mobile-task-sheet .fcp-field-full input[name="task_title"]{
    font-size:16px!important;
    font-weight:900!important;
  }
}

@media (max-width: 390px){
  body.fcp-mobile-task-open .fcp-mobile-task-sheet,
  body.fcp-app-root-page.fcp-mobile-task-open .fcp-mobile-task-sheet{
    width:calc(100vw - 14px)!important;
    padding:10px!important;
    border-radius:22px!important;
  }
  body.fcp-mobile-task-open .fcp-mobile-task-sheet h3{font-size:24px!important;margin-right:48px!important;margin-bottom:7px!important;}
  body.fcp-mobile-task-open .fcp-mobile-task-sheet form{gap:7px!important;}
  body.fcp-mobile-task-open .fcp-mobile-task-sheet input:not([type="checkbox"]):not([type="radio"]),
  body.fcp-mobile-task-open .fcp-mobile-task-sheet select{height:42px!important;min-height:42px!important;max-height:42px!important;}
  body.fcp-mobile-task-open .fcp-mobile-date-actions button{height:40px!important;min-height:40px!important;font-size:14px!important;}
  body.fcp-mobile-task-open .fcp-mobile-save-button{height:48px!important;min-height:48px!important;}
}
