/* FitPlan V780 - global search, clean check logs, real client plan = coach phone preview */

/* 1) Cerca ovunque: the old icon column stayed alive after icons were hidden,
   squeezing all labels into ~40px. Use a true two-column row. */
.coach-ux-v769 .ux-v769-command{width:min(780px,calc(100vw - 32px))!important}
.coach-ux-v769 .ux-v769-command-head{display:flex!important;align-items:center!important;gap:10px!important}
.coach-ux-v769 .ux-v769-command-head>span[aria-hidden="true"]{display:none!important}
.coach-ux-v769 .ux-v769-command-head input{
  flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;
  padding:0 4px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
.coach-ux-v769 .ux-v769-command-results{display:block!important;padding:10px 12px 14px!important;min-width:0!important}
.coach-ux-v769 .ux-v769-command-group{display:block!important;width:100%!important;margin:8px 0 5px!important;padding:5px 4px!important}
.coach-ux-v769 .ux-v769-command-item{
  display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;
  width:100%!important;min-width:0!important;max-width:100%!important;min-height:62px!important;
  gap:14px!important;align-items:center!important;margin:0 0 6px!important;padding:11px 14px!important;
  white-space:normal!important;overflow:hidden!important
}
.coach-ux-v769 .ux-v769-command-item .icon{display:none!important}
.coach-ux-v769 .ux-v769-command-item>span:not(.icon){display:block!important;width:auto!important;min-width:0!important;max-width:100%!important}
.coach-ux-v769 .ux-v769-command-item strong,
.coach-ux-v769 .ux-v769-command-item small{
  display:block!important;width:auto!important;min-width:0!important;max-width:100%!important;
  white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important
}
.coach-ux-v769 .ux-v769-command-item strong{font-size:14px!important;line-height:1.22!important}
.coach-ux-v769 .ux-v769-command-item small{margin-top:4px!important;font-size:11px!important;line-height:1.35!important}
.coach-ux-v769 .ux-v769-command-item em{justify-self:end!important;align-self:center!important;white-space:nowrap!important;margin:0!important}
@media(max-width:640px){
  .ux-v769-overlay{padding:18px 10px!important}
  .coach-ux-v769 .ux-v769-command{max-height:calc(100vh - 36px)!important;border-radius:20px!important}
  .coach-ux-v769 .ux-v769-command-head{padding:10px!important}
  .coach-ux-v769 .ux-v769-command-head input{font-size:16px!important}
  .coach-ux-v769 .ux-v769-command-item{grid-template-columns:1fr!important;gap:2px!important;min-height:58px!important}
  .coach-ux-v769 .ux-v769-command-item em{display:none!important}
}

/* 2) Check allenamento: no clipped "Ricevuto" pill and no long technical strings escaping cards. */
#checkins .workout-check-card{min-width:0!important;max-width:100%!important;overflow:hidden!important}
#checkins .workout-check-head{display:block!important;min-width:0!important}
#checkins .workout-check-head>.badge{display:none!important}
#checkins .workout-check-body,#checkins .workout-log-lines,#checkins .workout-log-lines li{min-width:0!important;max-width:100%!important}
#checkins .workout-log-lines li{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;line-height:1.45!important}
#checkins .workout-log-lines li.changed,#checkins .workout-log-lines li.client-comment{padding:9px 11px!important}

/* 3) Client plan: same visual grammar as coach smartphone preview. */
#schedule .client-schedule-card{overflow:visible!important}
#schedule .v780-client-plan-view{display:grid;gap:22px;min-width:0;max-width:100%}
#schedule .v780-client-day{
  min-width:0;max-width:100%;overflow:hidden;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none
}
#schedule .v780-client-day+.v780-client-day{padding-top:22px;border-top:1px solid var(--theme-text-09,rgba(255,255,255,.10))}
#schedule .v780-client-day-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:2px 0 14px;border-bottom:1px solid var(--theme-text-09,rgba(255,255,255,.10))}
#schedule .v780-client-day-kicker{margin:0 0 4px!important;color:var(--theme-muted,var(--muted,#98a09d));font-size:12px;font-weight:750}
#schedule .v780-client-day-head h2{margin:0!important;font-size:clamp(26px,4vw,36px)!important;line-height:1!important;letter-spacing:-.035em}
#schedule .v780-client-day-meta{display:flex;align-items:center;gap:10px;color:var(--theme-muted,var(--muted,#98a09d));font-size:12px;white-space:nowrap}
#schedule .v780-client-exercise-list{display:grid;gap:0}
#schedule .v780-client-exercise{
  display:grid;grid-template-columns:108px minmax(0,1fr);gap:16px;align-items:start;
  min-width:0;padding:18px 0;border-bottom:1px solid var(--theme-text-09,rgba(255,255,255,.10));background:transparent
}
#schedule .v780-client-photo{
  display:block;width:108px;height:108px;padding:0;border:0;border-radius:17px;overflow:hidden;background:#fff;cursor:pointer;box-shadow:none
}
#schedule .v780-client-photo img{display:block;width:100%;height:100%;object-fit:contain;background:#fff}
#schedule .v780-client-photo-empty{width:108px;height:108px;border-radius:17px;display:grid;place-items:center;background:var(--theme-card,rgba(255,255,255,.045));color:var(--theme-muted,var(--muted));font-size:11px;font-weight:800}
#schedule .v780-client-exercise-copy{min-width:0}
#schedule .v780-client-exercise-title{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}
#schedule .v780-client-exercise-title>div{min-width:0}
#schedule .v780-client-exercise-title strong{display:block;font-size:18px;line-height:1.15;overflow-wrap:break-word}
#schedule .v780-client-exercise-title span{display:block;margin-top:4px;color:var(--theme-muted,var(--muted,#98a09d));font-size:12px}
#schedule .v780-client-order{flex:0 0 auto;width:28px;height:28px;border:1px solid var(--theme-primary,#b6ff2e);border-radius:50%;display:grid;place-items:center;color:var(--theme-primary,#b6ff2e);font-size:12px;font-weight:950}
#schedule .v780-client-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px;min-width:0}
#schedule .v780-client-stat{min-width:0}
#schedule .v780-client-stat span,#schedule .v780-client-load span{display:block;color:var(--theme-muted,var(--muted,#98a09d));font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
#schedule .v780-client-stat b,#schedule .v780-client-load b{display:block;margin-top:3px;font-size:15px;line-height:1.15;overflow-wrap:anywhere}
#schedule .v780-client-load{margin-top:11px}
#schedule .v780-client-note{margin-top:12px;padding:9px 11px;border-left:2px solid var(--theme-primary,#b6ff2e);background:var(--theme-primary-08,rgba(182,255,46,.06));border-radius:0 10px 10px 0;color:var(--theme-text,#f5f7f6);font-size:11px;line-height:1.45}
#schedule .v780-client-note span{display:block;margin-bottom:3px;color:var(--theme-muted,var(--muted));font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}
#schedule .v780-client-start{
  width:100%!important;min-height:60px!important;margin:18px 0 2px!important;border-radius:17px!important;
  font-size:16px!important;letter-spacing:.01em!important
}
#schedule .v780-client-day-focus{color:var(--theme-muted,var(--muted,#98a09d));font-size:12px;margin-top:5px}
#schedule .v780-client-day-nav{display:flex;gap:7px;overflow:auto;padding:0 0 12px;margin:0 0 2px;scrollbar-width:none}
#schedule .v780-client-day-nav::-webkit-scrollbar{display:none}
#schedule .v780-client-day-nav button{flex:0 0 auto;min-height:38px;padding:0 12px;border:1px solid var(--theme-text-09,rgba(255,255,255,.12));border-radius:12px;background:var(--theme-card,rgba(255,255,255,.04));color:var(--theme-text,#fff);font-weight:850;cursor:pointer}
#schedule .v780-client-day-nav button:first-child{border-color:var(--theme-primary,#b6ff2e);color:var(--theme-primary,#b6ff2e)}

@media(max-width:720px){
  #schedule .client-schedule-card{padding:14px 14px 20px!important}
  #schedule .v780-client-day-head{align-items:flex-start;flex-direction:column;gap:5px}
  #schedule .v780-client-day-meta{white-space:normal}
  #schedule .v780-client-exercise{grid-template-columns:96px minmax(0,1fr);gap:13px;padding:16px 0}
  #schedule .v780-client-photo,#schedule .v780-client-photo-empty{width:96px;height:96px;border-radius:16px}
  #schedule .v780-client-exercise-title strong{font-size:16px}
  #schedule .v780-client-stats{gap:7px}
  #schedule .v780-client-stat b,#schedule .v780-client-load b{font-size:14px}
}
@media(max-width:430px){
  #schedule .v780-client-exercise{grid-template-columns:86px minmax(0,1fr);gap:12px}
  #schedule .v780-client-photo,#schedule .v780-client-photo-empty{width:86px;height:86px;border-radius:15px}
  #schedule .v780-client-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
  #schedule .v780-client-stat span,#schedule .v780-client-load span{font-size:8px}
  #schedule .v780-client-stat b,#schedule .v780-client-load b{font-size:13px}
}
