/* Klienti (lane B): the trainer's tab. Mockup: mockups/trener/index.html 3A. Only --f-* tokens.
   The three numbers reuse Ja's tiles (me.css .me-stats), the group labels are .f-label, the + is .f-icon-btn.
   Flat rows on the page grey: initials, name, one line, this week as seven marks. Ember only for today's planned day. */

.app .f-screen.kl { gap: 0; grid-template-columns: minmax(0, 1fr); padding: calc(var(--f-s3) + env(safe-area-inset-top, 0px)) 6px 0; }

/* the title where Ja has the name, the round + on the right */
.kl-head { display: flex; align-items: center; justify-content: space-between; gap: var(--f-s4); min-height: 64px; padding: var(--f-s4) 0 var(--f-s1); box-sizing: content-box; }
.kl-title { font-family: var(--f-font-display); font-size: var(--f-fs-display); font-weight: 600; letter-spacing: var(--f-track-display); line-height: 1.05; }
.kl-add { flex: none; }
.kl-add svg { width: 18px; height: 18px; }
.kl-note { margin: 0; padding-top: 2px; font-size: 14px; color: var(--f-text-3); }

/* two tiles when nobody pays yet */
.me-stats.kl-stats--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kl-stats .me-stat span { text-align: center; line-height: 1.25; }

/* a client: initials, name and one line, the week */
.kl-list { display: grid; }
.kl-row { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 68px; padding: 6px 0; text-align: left; color: var(--f-text); -webkit-tap-highlight-color: transparent; transition: opacity var(--f-dur-2) var(--f-ease); }
.kl-row.pressable.is-pressed, .kl-row.pressable:active { transform: none; opacity: 0.6; }
.kl-ini { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--f-surface-1); color: var(--f-text-2); font: 600 15px/1 var(--f-font-display); letter-spacing: 0.01em; }
.kl-row__main { min-width: 0; display: grid; }
.kl-row__main b { font-size: 16.5px; font-weight: 500; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kl-row__main small { margin-top: 3px; font-size: 14px; color: var(--f-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* this week, Monday first: trained cream, today's planned ember, missed grey, later a ring, no plan a tiny dot */
.kl-wk { display: flex; align-items: center; gap: 5px; }
.kl-wk i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--f-surface-3); }
.kl-wk i.is-done { background: var(--f-text); }
.kl-wk i.is-now { background: var(--f-accent); }
.kl-wk i.is-next { background: none; box-shadow: inset 0 0 0 1.5px var(--f-surface-3); }
.kl-wk i.is-off { width: 4px; height: 4px; margin: 0 3px; background: var(--f-surface-2); }

/* nobody yet: one line and the button */
.kl-empty { margin: 0; padding: var(--f-s5) 0 0; font-size: var(--f-fs-body); line-height: 1.45; color: var(--f-text-2); max-width: 30ch; text-wrap: balance; }
.kl-empty__btn { margin-top: var(--f-s5); }

@media (max-width: 360px) {
  .me-stats.kl-stats { gap: 8px; }
  .kl-row { gap: 12px; grid-template-columns: 42px minmax(0, 1fr) auto; }
  .kl-ini { width: 42px; height: 42px; font-size: 14px; }
  .kl-wk { gap: 4px; }
  .kl-wk i { width: 8px; height: 8px; }
  .kl-wk i.is-off { width: 4px; height: 4px; margin: 0 2px; }
}
