/* =============================================
   FlexiTrainer — marktplaatsschermen
   =============================================
   Alles wat niet bij de CMS-site hoort maar bij het platform zelf: registratie, login,
   trainersdashboard, clubdashboard, opdrachten. Site-breed geladen (zie main.php).
   Kleuren komen uit --sl-primary / --sl-accent, die de layout uit de instellingen zet. */

/* Zonder dit telt padding bij de breedte op, waardoor elk element met width:100% én
   binnenmarge buiten zijn kader steekt — knoppen in een zijkolom, invoervelden in een kaart.
   Dat is precies wat er gebeurde vóór deze regel er stond. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --ft-ink:        #14211b;
  --ft-ink-2:      #55635b;
  --ft-ink-3:      #8b978f;
  --ft-line:       #dfe5e0;
  --ft-line-soft:  #edf1ee;
  --ft-surface:    #ffffff;
  --ft-wash:       #f4f7f4;
  --ft-ok:         #1a7f4f;
  --ft-ok-wash:    #e7f3ec;
  --ft-warn:       #a8710f;
  --ft-warn-wash:  #fbf2e0;
  --ft-crit:       #a33526;
  --ft-crit-wash:  #f9eae7;
  --ft-radius:     10px;
}

/* ---------- layout ---------- */
.ft-shell      { max-width: 1120px; margin: 0 auto; padding: 40px 20px 80px; }
.ft-narrow     { max-width: 520px; margin: 0 auto; padding: 48px 20px 80px; }
.ft-wide       { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }

.ft-head       { margin-bottom: 28px; }
.ft-head h1    { font-size: 30px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; color: var(--ft-ink); }
.ft-head p     { margin: 0; color: var(--ft-ink-2); font-size: 16px; line-height: 1.55; max-width: 58ch; }
.ft-eyebrow    { font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
                 color: var(--sl-primary); font-weight: 600; margin: 0 0 10px; }

/* ---------- kaart ---------- */
.ft-card       { background: var(--ft-surface); border: 1px solid var(--ft-line);
                 border-radius: var(--ft-radius); padding: 26px; }
.ft-card + .ft-card { margin-top: 16px; }
.ft-card h2    { font-size: 18px; margin: 0 0 4px; color: var(--ft-ink); }
.ft-card .sub  { font-size: 14px; color: var(--ft-ink-3); margin: 0 0 18px; }

/* ---------- formulier ---------- */
.ft-field      { margin-bottom: 18px; }
.ft-field label{ display: block; font-size: 14px; font-weight: 600; color: var(--ft-ink);
                 margin-bottom: 6px; }
.ft-field .hint{ display: block; font-size: 13px; color: var(--ft-ink-3); margin-top: 5px; line-height: 1.45; }
.ft-field input[type="text"],
.ft-field input[type="email"],
.ft-field input[type="password"],
.ft-field input[type="date"],
.ft-field input[type="tel"],
.ft-field input[type="number"],
.ft-field select,
.ft-field textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15px;
  color: var(--ft-ink); background: var(--ft-surface);
  border: 1px solid var(--ft-line); border-radius: 8px;
  transition: border-color .12s, box-shadow .12s;
}
.ft-field input:focus, .ft-field select:focus, .ft-field textarea:focus {
  outline: none; border-color: var(--sl-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sl-primary) 18%, transparent);
}
.ft-field textarea { min-height: 110px; resize: vertical; }

.ft-row        { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .ft-row { grid-template-columns: 1fr; } }

.ft-check      { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.ft-check input{ margin-top: 3px; flex-shrink: 0; width: 17px; height: 17px; }
.ft-check label{ font-size: 14.5px; line-height: 1.5; color: var(--ft-ink-2); font-weight: 400; }

/* ---------- knoppen ---------- */
.ft-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; font: inherit; font-size: 15px; font-weight: 600;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: opacity .12s, background .12s;
}
.ft-btn--primary { background: var(--sl-primary); color: #fff; }
.ft-btn--primary:hover { opacity: .9; }
.ft-btn--ghost   { background: transparent; color: var(--ft-ink); border-color: var(--ft-line); }
.ft-btn--ghost:hover { background: var(--ft-wash); }
.ft-btn--block   { width: 100%; }
.ft-btn:focus-visible { outline: 2px solid var(--sl-primary); outline-offset: 2px; }

/* ---------- keuzekaarten (registreren als...) ---------- */
.ft-choice     { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .ft-choice { grid-template-columns: 1fr; } }
.ft-choice a {
  display: block; text-decoration: none; color: inherit;
  background: var(--ft-surface); border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius); padding: 26px;
  transition: border-color .14s, transform .14s;
}
.ft-choice a:hover { border-color: var(--sl-primary); transform: translateY(-2px); }
.ft-choice h3  { font-size: 18px; margin: 0 0 8px; color: var(--ft-ink); }
.ft-choice p   { font-size: 14.5px; line-height: 1.55; color: var(--ft-ink-2); margin: 0 0 14px; }
.ft-choice ul  { list-style: none; padding: 0; margin: 0; }
.ft-choice li  { font-size: 14px; color: var(--ft-ink-2); padding-left: 20px; position: relative; margin-bottom: 6px; }
.ft-choice li::before { content: "→"; position: absolute; left: 0; color: var(--sl-primary); }

/* ---------- meldingen binnen een formulier ---------- */
.ft-note {
  border-radius: 8px; padding: 14px 16px; font-size: 14.5px; line-height: 1.55;
  margin-bottom: 20px;
}
.ft-note--info { background: var(--ft-wash);      color: var(--ft-ink-2);  border-left: 3px solid var(--sl-primary); }
.ft-note--warn { background: var(--ft-warn-wash); color: var(--ft-warn);   border-left: 3px solid var(--ft-warn); }
.ft-note strong { color: var(--ft-ink); }

/* ---------- statusbadges ---------- */
.ft-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
}
.ft-badge--ok   { background: var(--ft-ok-wash);   color: var(--ft-ok); }
.ft-badge--warn { background: var(--ft-warn-wash); color: var(--ft-warn); }
.ft-badge--crit { background: var(--ft-crit-wash); color: var(--ft-crit); }
.ft-badge--mute { background: var(--ft-line-soft); color: var(--ft-ink-3); }

/* ---------- kleine dingen ---------- */
.ft-alt        { text-align: center; font-size: 14.5px; color: var(--ft-ink-2); margin-top: 22px; }
.ft-alt a      { color: var(--sl-primary); font-weight: 600; }
.ft-legal      { font-size: 13px; color: var(--ft-ink-3); line-height: 1.5; margin-top: 18px; }
.ft-legal a    { color: var(--ft-ink-2); }

/* =============================================
   App-shell — club- en trainersgedeelte
   =============================================
   Desktop: vaste zijbalk links. Mobiel: zijbalk schuift in, onderaan een tabbalk zoals in
   het app-ontwerp. Eén codebase voor allebei; dit is de PWA. */

.ft-app-body { margin: 0; background: var(--ft-wash); font-family: "Inter", system-ui, -apple-system, sans-serif;
               color: var(--ft-ink); -webkit-font-smoothing: antialiased; }
.ft-app      { display: flex; min-height: 100vh; }

/* ---------- zijbalk ---------- */
.ft-side {
  width: 244px; flex-shrink: 0; background: var(--ft-surface);
  border-right: 1px solid var(--ft-line); padding: 20px 14px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.ft-side-logo {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--ft-ink);
  padding: 4px 8px 18px;
}
.ft-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--sl-primary);
           color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ft-mark svg { width: 15px; height: 15px; }

.ft-side-org { display: flex; align-items: center; gap: 10px; padding: 10px 8px;
               border-radius: 9px; background: var(--ft-wash); margin-bottom: 6px; }
.ft-side-crest { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
                 background: var(--ft-ink); color: #fff; display: grid; place-items: center;
                 font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.ft-side-org-txt { min-width: 0; }
.ft-side-org-txt strong { display: block; font-size: 13.5px; font-weight: 600;
                          white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-side-org-txt span { display: block; font-size: 11.5px; color: var(--ft-ink-3); }
.ft-side-switch { margin: 0 0 8px; }
.ft-side-switch select { width: 100%; padding: 7px 9px; font: inherit; font-size: 13px;
                         border: 1px solid var(--ft-line); border-radius: 7px; background: var(--ft-surface); }

.ft-side-nav { display: flex; flex-direction: column; gap: 2px; }
.ft-side-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px;
  border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500;
  color: var(--ft-ink-2); transition: background .12s, color .12s;
}
.ft-side-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.ft-side-link:hover { background: var(--ft-wash); color: var(--ft-ink); }
.ft-side-link.is-active { background: var(--ft-ok-wash); color: var(--sl-accent); font-weight: 600; }
.ft-side-out { margin-top: auto; color: var(--ft-ink-3); }

/* ---------- hoofdkolom ---------- */
.ft-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.ft-topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 26px; background: var(--ft-surface);
  border-bottom: 1px solid var(--ft-line); position: sticky; top: 0; z-index: 20;
}
.ft-topbar h1 { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin: 0; flex: 1; min-width: 0; }
.ft-topbar-actions { display: flex; align-items: center; gap: 10px; }
.ft-btn--sm { padding: 8px 14px; font-size: 13.5px; }

.ft-icon-btn { position: relative; width: 36px; height: 36px; border-radius: 8px;
               display: grid; place-items: center; color: var(--ft-ink-2);
               border: 1px solid var(--ft-line); background: var(--ft-surface); text-decoration: none; }
.ft-icon-btn svg { width: 17px; height: 17px; }
.ft-icon-btn:hover { background: var(--ft-wash); }
.ft-dot { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
          border-radius: 9px; background: var(--ft-crit); color: #fff; font-size: 10.5px;
          font-weight: 700; display: grid; place-items: center; }

.ft-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--ft-ink); color: #fff;
             display: grid; place-items: center; font-size: 12.5px; font-weight: 600;
             text-decoration: none; flex-shrink: 0; }

.ft-content { padding: 26px; flex: 1; }

.ft-flash { padding: 12px 16px; border-radius: 9px; font-size: 14.5px; margin-bottom: 16px; }
.ft-flash--success { background: var(--ft-ok-wash);   color: var(--ft-ok); }
.ft-flash--error   { background: var(--ft-crit-wash); color: var(--ft-crit); }
.ft-flash--info    { background: var(--ft-wash);      color: var(--ft-ink-2); }

/* ---------- statkaarten ---------- */
.ft-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.ft-stat  { background: var(--ft-surface); border: 1px solid var(--ft-line);
            border-radius: var(--ft-radius); padding: 18px 18px 15px; }
.ft-stat-label { font-size: 13px; color: var(--ft-ink-3); margin: 0 0 8px; font-weight: 500; }
.ft-stat-value { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1;
                 margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.ft-stat-link  { font-size: 13px; color: var(--sl-accent); text-decoration: none; font-weight: 600; }
.ft-stat-link:hover { text-decoration: underline; }

/* ---------- panelen ---------- */
.ft-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 940px) { .ft-cols { grid-template-columns: 1fr; } }

.ft-panel { background: var(--ft-surface); border: 1px solid var(--ft-line);
            border-radius: var(--ft-radius); overflow: hidden; }
.ft-panel + .ft-panel { margin-top: 16px; }
.ft-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
                 padding: 16px 18px; border-bottom: 1px solid var(--ft-line-soft); }
.ft-panel-head h2 { font-size: 15.5px; font-weight: 700; margin: 0; }
.ft-panel-head a  { font-size: 13px; color: var(--sl-accent); text-decoration: none; font-weight: 600; }
.ft-panel-body { padding: 18px; }

/* ---------- lijstrijen ---------- */
.ft-listrow { display: flex; align-items: center; gap: 12px; padding: 14px 18px;
          border-bottom: 1px solid var(--ft-line-soft); text-decoration: none; color: inherit; }
.ft-listrow:last-child { border-bottom: none; }
.ft-listrow:hover { background: var(--ft-wash); }
.ft-listrow-crest { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; background: var(--ft-wash);
                border: 1px solid var(--ft-line); display: grid; place-items: center;
                font-size: 11.5px; font-weight: 700; color: var(--ft-ink-2); }
.ft-listrow-main { flex: 1; min-width: 0; }
.ft-listrow-title { font-size: 14.5px; font-weight: 600; margin: 0 0 2px; }
.ft-listrow-sub   { font-size: 13px; color: var(--ft-ink-3); margin: 0; }
.ft-listrow-side  { text-align: right; flex-shrink: 0; }
.ft-listrow-side .meta { display: block; font-size: 12px; color: var(--ft-ink-3); margin-top: 4px; }

.ft-empty { text-align: center; padding: 40px 20px; color: var(--ft-ink-3); font-size: 14.5px; }
.ft-empty strong { display: block; color: var(--ft-ink); font-size: 15.5px; margin-bottom: 6px; font-weight: 600; }

/* ---------- snelle acties ---------- */
.ft-quick a { display: flex; align-items: center; gap: 10px; padding: 11px 18px;
              text-decoration: none; color: var(--ft-ink-2); font-size: 14px; font-weight: 500;
              border-bottom: 1px solid var(--ft-line-soft); }
.ft-quick a:last-child { border-bottom: none; }
.ft-quick a:hover { background: var(--ft-wash); color: var(--ft-ink); }
.ft-quick svg { width: 16px; height: 16px; color: var(--sl-primary); flex-shrink: 0; }

/* ---------- promo ---------- */
.ft-promo { background: var(--ft-ok-wash); border: 1px solid color-mix(in srgb, var(--sl-primary) 25%, transparent);
            border-radius: var(--ft-radius); padding: 20px; margin-top: 16px; }
.ft-promo h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--sl-accent); }
.ft-promo p  { font-size: 13.5px; line-height: 1.5; color: var(--ft-ink-2); margin: 0 0 14px; }

/* ---------- mobiel ---------- */
.ft-burger  { display: none; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--ft-line);
              background: var(--ft-surface); color: var(--ft-ink-2); place-items: center; cursor: pointer; }
.ft-burger svg { width: 18px; height: 18px; }
.ft-tabbar  { display: none; }

@media (max-width: 860px) {
  .ft-side { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%);
             transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.14); }
  .ft-side.is-open { transform: translateX(0); }
  .ft-burger { display: grid; }
  .ft-content { padding: 18px 16px calc(76px + env(safe-area-inset-bottom)); }
  .ft-topbar { padding: 12px 16px; }
  .ft-topbar h1 { font-size: 17px; }
  /* De "Nieuwe aanvraag"-knop verliest zijn label op smalle schermen; het plusje volstaat. */
  .ft-topbar .ft-btn--sm { padding: 8px 10px; font-size: 0; gap: 0; }
  .ft-topbar .ft-btn--sm svg { width: 17px; height: 17px; }

  .ft-tabbar { display: grid; grid-template-columns: repeat(4, 1fr);
               position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
               background: var(--ft-surface); border-top: 1px solid var(--ft-line);
               padding-bottom: env(safe-area-inset-bottom); }
  .ft-tabbar a { padding: 11px 4px 12px; text-align: center; text-decoration: none;
                 font-size: 11.5px; font-weight: 600; color: var(--ft-ink-3); }
  .ft-tabbar a.is-active { color: var(--sl-primary); }
}

@media (max-width: 860px) {
  /* Vier volle-breedte statkaarten duwen de echte inhoud onder de vouw. Op telefoon
     passen ze prima naast elkaar in twee kolommen. */
  .ft-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ft-stat  { padding: 14px 14px 12px; }
  .ft-stat-value { font-size: 24px; margin-bottom: 6px; }
  .ft-stat-label { font-size: 12px; margin-bottom: 6px; }
  .ft-stat-link  { font-size: 12px; }

  /* Titel en "bekijk alles" naast elkaar houden in plaats van over twee regels breken. */
  .ft-panel-head { padding: 14px; gap: 8px; }
  .ft-panel-head h2 { font-size: 14.5px; }
  .ft-panel-head a  { font-size: 12.5px; white-space: nowrap; }
  .ft-listrow { padding: 12px 14px; }
}

/* =============================================
   Aanvraagwizard
   ============================================= */

.ft-steps { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.ft-step  { display: flex; align-items: center; gap: 9px; padding: 9px 15px 9px 10px;
            border-radius: 999px; background: var(--ft-surface); border: 1px solid var(--ft-line);
            font-size: 13.5px; font-weight: 500; color: var(--ft-ink-3); }
.ft-step b { width: 21px; height: 21px; border-radius: 50%; background: var(--ft-line-soft);
             color: var(--ft-ink-3); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; }
.ft-step.is-done b   { background: var(--sl-primary); color: #fff; }
.ft-step.is-active   { border-color: var(--sl-primary); color: var(--ft-ink); font-weight: 600; }
.ft-step.is-active b { background: var(--sl-primary); color: #fff; }

.ft-wizard { display: grid; grid-template-columns: 1fr 306px; gap: 16px; align-items: start; }
@media (max-width: 980px) { .ft-wizard { grid-template-columns: 1fr; } }

/* Dagkiezer — zeven chips die als checkbox werken */
.ft-days { display: flex; gap: 7px; flex-wrap: wrap; }
.ft-days input { position: absolute; opacity: 0; pointer-events: none; }
.ft-days label { min-width: 44px; padding: 9px 4px; text-align: center; cursor: pointer;
                 border: 1px solid var(--ft-line); border-radius: 8px; background: var(--ft-surface);
                 font-size: 13.5px; font-weight: 600; color: var(--ft-ink-2);
                 transition: background .12s, border-color .12s, color .12s; }
.ft-days label:hover { border-color: var(--sl-primary); }
.ft-days input:checked + label { background: var(--sl-primary); border-color: var(--sl-primary); color: #fff; }
.ft-days input:focus-visible + label { outline: 2px solid var(--sl-primary); outline-offset: 2px; }

/* Radiokaarten */
.ft-radios { display: flex; flex-direction: column; gap: 9px; }
.ft-radio  { display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px;
             border: 1px solid var(--ft-line); border-radius: 9px; cursor: pointer;
             background: var(--ft-surface); transition: border-color .12s, background .12s; }
.ft-radio:hover { border-color: var(--sl-primary); }
.ft-radio input { margin-top: 2px; flex-shrink: 0; width: 17px; height: 17px; }
.ft-radio-txt strong { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.ft-radio-txt span   { display: block; font-size: 13px; color: var(--ft-ink-3); line-height: 1.45; }
.ft-radio:has(input:checked) { border-color: var(--sl-primary); background: var(--ft-ok-wash); }

/* Samenvatting rechts */
.ft-summary { position: sticky; top: 84px; }
.ft-summary dl { margin: 0; }
.ft-sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0;
              border-bottom: 1px solid var(--ft-line-soft); font-size: 13.5px; }
.ft-sum-row:last-child { border-bottom: none; }
.ft-sum-row dt { color: var(--ft-ink-3); flex-shrink: 0; }
.ft-sum-row dd { margin: 0; text-align: right; font-weight: 600; color: var(--ft-ink); }

.ft-rate { background: var(--ft-ok-wash); border: 1px solid color-mix(in srgb, var(--sl-primary) 25%, transparent);
           border-radius: var(--ft-radius); padding: 16px 18px; margin-top: 14px; }
.ft-rate .lbl { font-size: 12.5px; color: var(--sl-accent); font-weight: 600; margin: 0 0 5px; }
.ft-rate .amt { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 5px;
                color: var(--ft-ink); font-variant-numeric: tabular-nums; }
.ft-rate .sub { font-size: 12.5px; color: var(--ft-ink-2); margin: 0; line-height: 1.45; }

/* Prijsopbouw bij publiceren */
.ft-price-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0;
                border-bottom: 1px solid var(--ft-line-soft); font-size: 14px; }
.ft-price-row:last-child { border-bottom: none; }
.ft-price-row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.ft-price-row.is-total { border-top: 2px solid var(--ft-line); border-bottom: none;
                         margin-top: 4px; padding-top: 12px; font-size: 16px; font-weight: 700; }

.ft-actions { display: flex; gap: 10px; justify-content: space-between; align-items: center;
              margin-top: 22px; flex-wrap: wrap; }

.ft-blockers { background: var(--ft-crit-wash); border-left: 3px solid var(--ft-crit);
               border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; }
.ft-blockers strong { display: block; color: var(--ft-crit); font-size: 14.5px; margin-bottom: 6px; }
.ft-blockers li { font-size: 14px; color: var(--ft-ink-2); }

/* Banner tijdens "bekijken als". Bewust hard en niet weg te klikken — het gevaarlijkste
   scenario is dat je vergeet dat je in het account van iemand anders zit. */
.ft-impersonate {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 10px 26px; background: #7c2d12; color: #fde8d7;
  font-size: 13.5px; line-height: 1.4; position: sticky; top: 61px; z-index: 19;
}
.ft-impersonate strong { color: #fff; }
.ft-impersonate a { color: #fff; font-weight: 600; text-decoration: underline; white-space: nowrap; }
@media (max-width: 860px) { .ft-impersonate { padding: 10px 16px; top: 57px; } }

/* Begroetingskaart op het trainersdashboard */
.ft-hello { background: var(--sl-primary); color: #fff; border-radius: var(--ft-radius);
            padding: 20px 22px; margin-bottom: 18px; }
.ft-hello h2 { font-size: 19px; font-weight: 700; margin: 0 0 5px; letter-spacing: -.02em; }
.ft-hello p  { font-size: 14px; margin: 0; opacity: .92; line-height: 1.5; }
.ft-hello strong { font-weight: 700; }

/* ---------- chat ---------- */
.ft-chat { max-height: 460px; overflow-y: auto; padding: 18px; display: flex;
           flex-direction: column; gap: 12px; background: var(--ft-wash); }
.ft-msg  { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.ft-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.ft-msg-bubble { background: var(--ft-surface); border: 1px solid var(--ft-line);
                 border-radius: 12px 12px 12px 4px; padding: 11px 14px;
                 font-size: 14.5px; line-height: 1.5; color: var(--ft-ink); }
.ft-msg.is-mine .ft-msg-bubble { background: var(--sl-primary); border-color: var(--sl-primary);
                                 color: #fff; border-radius: 12px 12px 4px 12px; }
.ft-msg-from { display: block; font-size: 12px; font-weight: 600; color: var(--ft-ink-3); margin-bottom: 3px; }
.ft-msg-time { font-size: 11.5px; color: var(--ft-ink-3); margin-top: 4px; }
/* Een geblokkeerd bericht blijft zichtbaar voor de afzender, doorstreept, zodat duidelijk is
   dat het niet is aangekomen — stil laten verdwijnen is de snelste manier naar WhatsApp. */
.ft-msg.is-blocked .ft-msg-bubble { background: var(--ft-crit-wash); border-color: var(--ft-crit);
                                    color: var(--ft-crit); text-decoration: line-through; }
.ft-msg-blocked { display: block; margin-top: 7px; font-size: 12px; line-height: 1.45;
                  text-decoration: none; color: var(--ft-crit); font-weight: 600; }

/* ---------- rolvoorkeuren ---------- */
.ft-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (max-width: 700px) { .ft-roles { grid-template-columns: 1fr; } }
.ft-role { display: flex; align-items: center; gap: 10px; padding: 11px 13px;
           border: 1px solid var(--ft-line); border-radius: 9px;
           background: var(--ft-surface); transition: border-color .12s, background .12s; }
.ft-role:hover { border-color: var(--sl-primary); }
.ft-role.is-on { border-color: var(--sl-primary); background: var(--ft-ok-wash); }
/* Alleen dit deel schakelt de rol om; het tariefveld ernaast blijft een gewoon invoerveld. */
.ft-role-pick { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; margin: 0; }
.ft-role input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; margin: 0; }
.ft-role-name { font-size: 14.5px; font-weight: 500; color: var(--ft-ink); }
.ft-role-rate input:disabled { background: var(--ft-line-soft); color: var(--ft-ink-3); cursor: not-allowed; }
/* Het tariefveld hoort bij de rol, dus staat het ernaast en niet in een aparte tabel eronder. */
.ft-role-rate { display: flex; align-items: center; gap: 3px; font-size: 13px; color: var(--ft-ink-3); }
.ft-role-rate input { width: 62px; padding: 5px 7px; font: inherit; font-size: 13.5px;
                      border: 1px solid var(--ft-line); border-radius: 6px; text-align: right;
                      background: var(--ft-surface); color: var(--ft-ink); }
.ft-role-rate input:focus { outline: none; border-color: var(--sl-primary); }
.ft-role-net { font-size: 12px; color: var(--ft-ink-3); min-width: 76px; text-align: right;
               font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .ft-role-net { min-width: 0; } }
