/* 14.6.58 - More UI + blue buttons text fix */
@media (max-width: 960px){
  /* ALTRO / NOTE / LISTA / RICETTE - coerente con Home/Task/Clienti */
  body.fcp-app-root-page .fcp-mobile-native-altro,
  body.fcp-app-root-page .fcp-mobile-native-note{
    padding:0 0 calc(92px + env(safe-area-inset-bottom,0px))!important;
    background:transparent!important;
    overflow-x:hidden!important;
  }
  body.fcp-app-root-page .fcp-mobile-native-altro .fcp-mobile-section-head,
  body.fcp-app-root-page .fcp-mobile-native-note .fcp-mobile-section-head{
    margin:4px 0 12px!important;
    padding:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:end!important;
    gap:10px!important;
  }
  body.fcp-app-root-page .fcp-mobile-native-altro .fcp-mobile-section-head span,
  body.fcp-app-root-page .fcp-mobile-native-note .fcp-mobile-section-head span{
    display:block!important;
    color:#1d73e8!important;
    font-size:11px!important;
    font-weight:950!important;
    letter-spacing:.13em!important;
    text-transform:uppercase!important;
    margin-bottom:3px!important;
  }
  body.fcp-app-root-page .fcp-mobile-native-altro .fcp-mobile-section-head h2,
  body.fcp-app-root-page .fcp-mobile-native-note .fcp-mobile-section-head h2{
    font-size:30px!important;
    line-height:1!important;
    margin:0!important;
    color:#0b2447!important;
    font-weight:950!important;
    letter-spacing:-.06em!important;
  }
  body.fcp-app-root-page .fcp-more-head .fcp-mobile-search-button,
  body.fcp-app-root-page .fcp-mobile-native-altro .fcp-mobile-search-button{
    width:auto!important;
    min-width:118px!important;
    height:46px!important;
    border-radius:18px!important;
    border:1px solid #d8e4f2!important;
    background:#fff!important;
    color:#0b2447!important;
    box-shadow:0 8px 22px rgba(15,23,42,.05)!important;
    font-size:14px!important;
    font-weight:900!important;
  }

  body.fcp-app-root-page .fcp-more-switcher{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
    margin:0 0 12px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.fcp-app-root-page .fcp-more-switcher button{
    height:52px!important;
    min-height:52px!important;
    border-radius:20px!important;
    border:1px solid #d8e4f2!important;
    background:#fff!important;
    color:#1d63d8!important;
    box-shadow:0 8px 20px rgba(15,23,42,.04)!important;
    font-size:15px!important;
    font-weight:950!important;
    letter-spacing:-.02em!important;
    padding:0 8px!important;
  }
  body.fcp-app-root-page .fcp-more-switcher button.is-active{
    background:linear-gradient(135deg,#2563eb,#21b6f3)!important;
    border-color:transparent!important;
    color:#fff!important;
    box-shadow:0 14px 30px rgba(37,99,235,.22)!important;
  }

  body.fcp-app-root-page .fcp-more-panel{display:none!important;}
  body.fcp-app-root-page .fcp-more-panel.is-active{display:block!important;}

  body.fcp-app-root-page .fcp-more-clean-card,
  body.fcp-app-root-page .fcp-more-card,
  body.fcp-app-root-page .fcp-mobile-native-altro .fcp-mobile-block,
  body.fcp-app-root-page .fcp-mobile-native-note .fcp-mobile-block{
    width:100%!important;
    max-width:100%!important;
    margin:0 0 12px!important;
    padding:14px!important;
    border-radius:24px!important;
    background:#fff!important;
    border:1px solid #dfe8f5!important;
    box-shadow:0 12px 34px rgba(15,23,42,.065)!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  body.fcp-app-root-page .fcp-more-clean-card::before,
  body.fcp-app-root-page .fcp-more-card::before{
    content:none!important;
    display:none!important;
  }
  body.fcp-app-root-page .fcp-more-clean-card header,
  body.fcp-app-root-page .fcp-more-card header,
  body.fcp-app-root-page .fcp-mobile-native-altro .fcp-mobile-block header{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:space-between!important;
    gap:12px!important;
    margin:0 0 12px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
  }
  body.fcp-app-root-page .fcp-more-clean-card header small,
  body.fcp-app-root-page .fcp-more-card header small{
    display:block!important;
    font-size:10px!important;
    line-height:1.1!important;
    color:#1d73e8!important;
    font-weight:950!important;
    letter-spacing:.12em!important;
    text-transform:uppercase!important;
    margin:0 0 3px!important;
  }
  body.fcp-app-root-page .fcp-more-clean-card header h3,
  body.fcp-app-root-page .fcp-more-card header h3,
  body.fcp-app-root-page .fcp-mobile-native-altro .fcp-mobile-block h3{
    font-size:24px!important;
    line-height:1.05!important;
    letter-spacing:-.055em!important;
    color:#0b2447!important;
    margin:0!important;
    font-weight:950!important;
  }
  body.fcp-app-root-page .fcp-more-clean-card header p,
  body.fcp-app-root-page .fcp-more-card header p{
    margin:4px 0 0!important;
    color:#64748b!important;
    font-size:13px!important;
    line-height:1.25!important;
    font-weight:800!important;
  }
  body.fcp-app-root-page .fcp-more-clean-card header > span,
  body.fcp-app-root-page .fcp-more-card header > span{
    flex:0 0 auto!important;
    min-height:36px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0 12px!important;
    border-radius:999px!important;
    background:#eef7ff!important;
    border:1px solid #d6e8f8!important;
    color:#0b2447!important;
    font-size:13px!important;
    font-weight:950!important;
    white-space:nowrap!important;
  }

  body.fcp-app-root-page .fcp-more-clean-form,
  body.fcp-app-root-page .fcp-shopping-form,
  body.fcp-app-root-page .fcp-recipe-form{
    display:grid!important;
    gap:10px!important;
    margin:0 0 14px!important;
    padding:0!important;
  }
  body.fcp-app-root-page .fcp-more-clean-form label,
  body.fcp-app-root-page .fcp-shopping-form label,
  body.fcp-app-root-page .fcp-recipe-form label{
    display:grid!important;
    gap:7px!important;
    margin:0!important;
    color:#0b2447!important;
    font-size:12px!important;
    font-weight:950!important;
    text-transform:uppercase!important;
    letter-spacing:.08em!important;
  }
  body.fcp-app-root-page .fcp-more-clean-form input,
  body.fcp-app-root-page .fcp-more-clean-form select,
  body.fcp-app-root-page .fcp-more-clean-form textarea,
  body.fcp-app-root-page .fcp-shopping-form input,
  body.fcp-app-root-page .fcp-shopping-form select,
  body.fcp-app-root-page .fcp-recipe-form input,
  body.fcp-app-root-page .fcp-recipe-form select,
  body.fcp-app-root-page .fcp-recipe-form textarea{
    width:100%!important;
    min-height:50px!important;
    border-radius:18px!important;
    border:1px solid #dbe5f0!important;
    background:#fff!important;
    color:#0b2447!important;
    padding:12px 14px!important;
    font-size:15px!important;
    font-weight:800!important;
    box-shadow:none!important;
  }
  body.fcp-app-root-page .fcp-more-clean-form textarea,
  body.fcp-app-root-page .fcp-recipe-form textarea{min-height:92px!important;resize:vertical!important;}
  body.fcp-app-root-page .fcp-more-form-grid{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
    align-items:end!important;
  }
  body.fcp-app-root-page .fcp-mobile-save-button,
  body.fcp-app-root-page .fcp-more-clean-form button[type="submit"],
  body.fcp-app-root-page .fcp-shopping-form button[type="submit"],
  body.fcp-app-root-page .fcp-recipe-form button[type="submit"]{
    width:100%!important;
    min-height:54px!important;
    border-radius:18px!important;
    background:linear-gradient(135deg,#2563eb,#22b6f3)!important;
    border:0!important;
    color:#fff!important;
    font-size:16px!important;
    font-weight:950!important;
    box-shadow:0 14px 30px rgba(37,99,235,.22)!important;
  }

  body.fcp-app-root-page .fcp-more-clean-list,
  body.fcp-app-root-page .fcp-shopping-list,
  body.fcp-app-root-page .fcp-recipe-list{display:grid!important;gap:8px!important;margin-top:8px!important;}
  body.fcp-app-root-page .fcp-more-row-card,
  body.fcp-app-root-page .fcp-shopping-item,
  body.fcp-app-root-page .fcp-recipe-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
    border-radius:18px!important;
    border:1px solid #e3eaf3!important;
    background:#f8fbff!important;
    padding:11px!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  body.fcp-app-root-page .fcp-shopping-item{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;gap:10px!important;align-items:center!important;}
  body.fcp-app-root-page .fcp-shopping-item button{width:32px!important;height:32px!important;border-radius:12px!important;border:1px solid #cfddeb!important;background:#fff!important;color:#2563eb!important;font-weight:950!important;padding:0!important;}
  body.fcp-app-root-page .fcp-shopping-item strong,
  body.fcp-app-root-page .fcp-recipe-card h3{display:block!important;color:#0b2447!important;font-size:16px!important;font-weight:950!important;line-height:1.15!important;margin:0!important;word-break:break-word!important;}
  body.fcp-app-root-page .fcp-shopping-item span,
  body.fcp-app-root-page .fcp-recipe-card p,
  body.fcp-app-root-page .fcp-recipe-card time,
  body.fcp-app-root-page .fcp-recipe-card footer span{display:block!important;color:#64748b!important;font-size:13px!important;font-weight:750!important;line-height:1.3!important;margin-top:4px!important;word-break:break-word!important;}
  body.fcp-app-root-page .fcp-recipe-card small{display:inline-flex!important;align-items:center!important;min-height:26px!important;padding:0 9px!important;border-radius:999px!important;background:#eaf3ff!important;color:#1d4ed8!important;font-size:10px!important;font-weight:950!important;text-transform:uppercase!important;margin-bottom:7px!important;}
  body.fcp-app-root-page .fcp-recipe-ingredients{display:flex!important;flex-wrap:wrap!important;gap:6px!important;margin:8px 0!important;}
  body.fcp-app-root-page .fcp-recipe-ingredients span{display:inline-flex!important;align-items:center!important;min-height:28px!important;padding:0 9px!important;border-radius:999px!important;background:#fff!important;border:1px solid #dfe8f5!important;color:#0b2447!important;font-size:12px!important;font-weight:850!important;margin:0!important;}

  /* Pulsanti blu: testo sempre bianco */
  body.fcp-app-root-page .button-primary,
  body.fcp-app-root-page .fcp-app-main .button-primary,
  body.fcp-app-root-page .fcp-app-main a.button-primary,
  body.fcp-app-root-page .fcp-app-main button.button-primary,
  body.fcp-app-root-page .fcp-app-main input[type="submit"].button-primary,
  body.fcp-app-root-page .fcp-mobile-save-button,
  body.fcp-app-root-page .fcp-mobile-fab,
  body.fcp-app-root-page .fcp-app-client-card a:first-of-type,
  body.fcp-app-root-page .fcp-app-client-card .button-primary,
  body.fcp-app-root-page .fcp-app-clients-board-14646 .button-primary,
  body.fcp-app-root-page .fcp-app-clients-board-14646 a.button-primary,
  body.fcp-app-root-page .fcp-app-clients-board-14646 button.button-primary,
  body.fcp-app-root-page .fcp-mobile-client-card .fcp-mobile-card-actions a:first-child,
  body.fcp-app-root-page .fcp-mobile-client-card .fcp-mobile-card-actions button:first-child,
  body.fcp-app-root-page .fcp-mobile-card-actions a[style*="blue"],
  body.fcp-app-root-page a[style*="background:#2563eb"],
  body.fcp-app-root-page a[style*="background: #2563eb"],
  body.fcp-app-root-page button[style*="background:#2563eb"],
  body.fcp-app-root-page button[style*="background: #2563eb"]{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    text-shadow:none!important;
  }
  body.fcp-app-root-page .button-primary *,
  body.fcp-app-root-page .fcp-mobile-save-button *,
  body.fcp-app-root-page .fcp-mobile-fab *,
  body.fcp-app-root-page .fcp-app-clients-board-14646 .button-primary *,
  body.fcp-app-root-page .fcp-app-client-card a:first-of-type *,
  body.fcp-app-root-page .fcp-mobile-client-card .fcp-mobile-card-actions a:first-child *{
    color:#fff!important;
    -webkit-text-fill-color:#fff!important;
  }

  body.fcp-app-root-page .fcp-app-client-card .button,
  body.fcp-app-root-page .fcp-app-clients-board-14646 .button,
  body.fcp-app-root-page .fcp-app-clients-board-14646 a.button,
  body.fcp-app-root-page .fcp-app-clients-board-14646 button,
  body.fcp-app-root-page .fcp-mobile-client-card .fcp-mobile-card-actions a,
  body.fcp-app-root-page .fcp-mobile-client-card .fcp-mobile-card-actions button{
    font-weight:950!important;
  }
}

@media (max-width: 390px){
  body.fcp-app-root-page .fcp-more-switcher{gap:7px!important;}
  body.fcp-app-root-page .fcp-more-switcher button{font-size:13px!important;height:48px!important;min-height:48px!important;border-radius:18px!important;}
  body.fcp-app-root-page .fcp-more-form-grid{grid-template-columns:1fr!important;}
  body.fcp-app-root-page .fcp-more-clean-card header,
  body.fcp-app-root-page .fcp-more-card header{display:grid!important;grid-template-columns:1fr!important;}
  body.fcp-app-root-page .fcp-more-clean-card header > span,
  body.fcp-app-root-page .fcp-more-card header > span{justify-self:start!important;}
}
