/*
  Fyxdo — Instellingen › Agenda koppelen (Stap 7e, #243).
  Laadvolgorde: brand/fonts/fonts.css → brand/tokens.css → brand/icons/icons.css
               → screens/auth/auth.css → screens/app/app.css → screens/klanten/klanten.css
               → screens/auth/account.css → screens/online-betalen/online-betalen.css
               → screens/agenda-koppelen/agenda-koppelen.css
  Bouwt voort op de kaart per koppeling (fx-provider, online-betalen.css), velden en meldingen (auth.css),
  fx-tag, fx-confirm en fx-linkbtn (klanten.css) en fx-account-status (account.css).
  Alleen variabelen uit tokens.css. Geen gradiënten, geen schaduwen, geen inline stijl.
*/

/* ---------- Twee kaarten onder elkaar ---------- */
.fx-provider-page > .fx-provider + .fx-provider,
.fx-provider-page > .fx-provider-more + .fx-provider { margin-top: var(--space-6); }

/* ---------- De privélink (feed) ---------- */
.fx-feed-link .fx-input {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--text); background: var(--bg);
}
.fx-feed-actions { display: flex; flex-direction: column; gap: var(--space-3); }

/* Uitleg die je openklapt: Zo voeg je de link toe / Waar vind ik die link? */
.fx-steps { font-size: 14px; line-height: 20px; }
.fx-steps > summary {
  display: inline-flex; align-items: center; gap: var(--space-1);
  min-height: var(--size-touch); cursor: pointer; list-style: none;
  color: var(--green-text); font-weight: 600;
}
.fx-steps > summary::-webkit-details-marker { display: none; }
.fx-steps > summary .fx-ico,
.fx-steps > summary .fx-icon { transition: transform 120ms ease-out; }
.fx-steps[open] > summary .fx-ico,
.fx-steps[open] > summary .fx-icon { transform: rotate(180deg); }
.fx-steps > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.fx-steps h3 { margin: var(--space-3) 0 var(--space-1); font-size: 14px; line-height: 20px; font-weight: 600; }
.fx-steps ol { margin: 0; padding-left: var(--space-6); color: var(--text); }
.fx-steps li + li { margin-top: var(--space-1); }
.fx-provider-body .fx-steps .fx-note { margin-top: var(--space-3); }   /* niet tegen de lijst aan (online-betalen.css trekt een fx-note omhoog) */
@media (prefers-reduced-motion: reduce) { .fx-steps > summary .fx-ico, .fx-steps > summary .fx-icon { transition: none; } }

/* ---------- Eigen agenda's: een lijst in de kaart ---------- */
.fx-cal-list { list-style: none; margin: 0; padding: 0; }
.fx-cal-item { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.fx-cal-item + .fx-cal-item { border-top: 1px solid var(--border); }
.fx-cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.fx-cal-head h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; overflow-wrap: anywhere; }
.fx-cal-host { display: block; font-size: 14px; line-height: 20px; color: var(--text-muted); overflow-wrap: anywhere; }
.fx-cal-status { margin: 0; display: flex; align-items: flex-start; gap: var(--space-1); font-size: 14px; line-height: 20px; }
.fx-cal-status .fx-ico,
.fx-cal-status .fx-icon,
.fx-cal-status .fx-spinner { flex: none; margin-top: 2px; }
/* Spinner in tekst: klein en in de tekstkleur (de standaard is wit, voor in een knop). Zoals fx-combo-msg in klanten.css. */
.fx-cal-status .fx-spinner { width: 16px; height: 16px; border-color: var(--text-muted); border-right-color: transparent; }
.fx-cal-status--ok { color: var(--text-muted); }
.fx-cal-status--error { color: var(--danger); }
.fx-cal-actions { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); font-size: 14px; line-height: 20px; }
.fx-cal-actions .fx-linkbtn { min-height: var(--size-touch); }
.fx-cal-item .fx-confirm,
.fx-cal-item .fx-cal-form { margin: var(--space-2) 0 0; }

/* Formulier toevoegen of wijzigen, in de kaart */
.fx-cal-form { display: flex; flex-direction: column; gap: var(--space-4); margin: 0; }
.fx-cal-form .fx-field { margin: 0; }

/* Breed scherm: knoppen naast elkaar, zo breed als hun tekst. In de app: @media (min-width: 768px). */
@container (min-width: 768px) {
  .fx-feed-actions { flex-direction: row; flex-wrap: wrap; }
  .fx-feed-actions .fx-btn { width: auto; flex: none; }
  .fx-cal-form .fx-confirm-actions .fx-btn { width: auto; flex: none; }
}
