/* ═══════════════════════════════════════════════════════════════════════
   Etap 8 — Parent Panel (mobile-first)
   ═══════════════════════════════════════════════════════════════════════ */

/* Club context block */
.dink-pp-club-icon {
    width: 40px; height: 40px; border-radius: 11px;
    background: var(--c-primary); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Child card */
.dink-child-card {
    background: #fff; border: 1px solid var(--c-border); border-radius: 16px; overflow: hidden;
}
.dink-child-card__head {
    display: flex; align-items: center; gap: 11px;
    padding: 14px 15px; background: #FAFBFC; border-bottom: 1px solid #EEF2F6;
}
.dink-child-card__avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--c-primary-tint); color: var(--c-primary);
    font-size: 13px; font-weight: 750;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dink-child-card__body { padding: 12px 15px 15px; }
.dink-child-card__sessions-link {
    color: var(--c-primary); font-size: 12.5px; font-weight: 700;
    text-decoration: none; flex-shrink: 0; white-space: nowrap;
}

/* "Do potwierdzenia" strip (fragments/clubschedule/pending-rsvp-card.html) — aggregates every
   session across children + self-card with no RSVP yet, so a multi-child parent doesn't have to
   scroll each card to find what's unanswered. Distinct light-blue tint keeps it visually separate
   from the (white) child cards below it despite reusing the same row/button components. */
.dink-pending-card {
    background: linear-gradient(180deg, #F6FAFF, #EFF6FE);
    border: 1px solid #CFE0F4; border-radius: 16px;
    padding: 13px 15px 6px; margin-bottom: 14px;
}
.dink-pending-card__head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-bottom: 4px;
}
.dink-pending-card__title {
    display: flex; align-items: center; gap: 7px;
    font-size: 13.5px; font-weight: 800; color: var(--c-primary);
}
.dink-pending-card__badge {
    background: var(--c-primary); color: #fff;
    font-size: 11px; font-weight: 800; line-height: 1;
    border-radius: 999px; min-width: 18px; height: 18px; padding: 0 6px;
    display: flex; align-items: center; justify-content: center;
}
.dink-pending-row { padding: 2px 0; }
.dink-pending-row__owner {
    display: block; font-size: 11.5px; font-weight: 700; color: var(--c-text-muted);
    margin-top: 8px;
}
.dink-pending-row .dink-psession-row { border-top-color: #DCE9F8; }
.dink-pending-card__more {
    font-size: 12px; color: var(--c-text-muted); text-align: center;
    padding: 8px 0 6px; border-top: 1px dashed #DCE9F8; margin-top: 2px;
}

/* Compact row (Etap 3) — a child without an assigned group has nothing to show yet, so it
   collapses to one line instead of a full card with a large empty state. Several of these
   in a row (3-4+ children) stay scannable where repeated big cards did not. */
.dink-child-card--compact { border-style: dashed; }
.dink-child-row {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 15px; text-decoration: none;
}
.dink-child-card__avatar--sm { width: 30px; height: 30px; font-size: 11.5px; }

/* Empty state within child card */
.dink-pp-empty { text-align: center; padding: 22px 10px; }
.dink-pp-empty__icon {
    width: 46px; height: 46px; border-radius: 13px;
    background: #F1F4F7; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 11px;
}

/* Session row inside child card / child sessions page */
.dink-psession-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
    padding: 11px 0; border-top: 1px solid #F0F3F6;
}
.dink-psession-row:first-child { border-top: none; }
.dink-psession-row--cancelled { background: #FAFBFC; }
.dink-psession-cancelled-badge {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
}
.dink-psession-cancelled-label {
    font-size: 11px; font-weight: 800; letter-spacing: 0.3px;
    color: #fff; background: #C13333; padding: 2px 8px; border-radius: 6px;
}
.dink-psession-cancelled-reason { font-size: 12px; color: var(--c-text-muted); }
.dink-psession-changed-badge {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
    font-size: 11px; font-weight: 700; color: #8A5A0C;
    background: #FBEFD9; padding: 2px 8px; border-radius: 6px;
}

/* Attendance buttons */
.dink-att-btn {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1.5px solid #E1E7ED; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0; padding: 0;
    transition: border-color 0.15s, background 0.15s;
}
.dink-att-btn--confirm { }
.dink-att-btn--confirm.active { border-color: #157A3F; background: #157A3F; }
.dink-att-btn--decline { }
.dink-att-btn--decline.active { border-color: #C13333; background: #C13333; }

/* Fee chips (składki) */
.dink-sk-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 11px; border-radius: 999px;
    border: none; font-size: 12.5px; font-weight: 700; line-height: 1;
}
.dink-sk-chip--ok { background: #E7F4EC; color: #157A3F; }
.dink-sk-chip--due { background: #FBEFD9; color: #8A5A0C; }
/* Neutral, not red — a suspended month (docs/skladki-zawieszenie-plan.md §2 decision, confirmed
   with Mariusz 2026-08-28) is deliberate, not overdue; same pairing as .dink-status-chip--muted,
   already verified against the WCAG-AA contrast tokens elsewhere in this file. */
.dink-sk-chip--suspended { background: #F1F4F7; color: #5E6A76; }

/* Athlete list search + gap filter — the search wrap's flex:1 1 220px lets it shrink and stay
   next to the 220px select instead of wrapping to its own line, truncating the placeholder on
   phones roughly 445-575px wide. Force both to full width below the sm breakpoint; !important
   is needed because the shrinking flex-basis is set via inline style on the elements. */
@media (max-width: 575.98px) {
    #athlete-filters .dink-search-wrap,
    #athlete-filters select {
        flex-basis: 100% !important;
    }
}

/* Fee list pagination — Bootstrap's .pagination is flex/nowrap by default, so a club with many
   fee rows (many pages) overflows the viewport horizontally on mobile instead of wrapping. */
.pagination { flex-wrap: wrap; row-gap: 6px; }

/* ---- Onboarding hint / welcome card (fragments/onboarding/hint.html) ---- */
.onboarding-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 1rem;
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-left: 3px solid var(--c-accent);
    border-radius: 10px;
}
.onboarding-hint__icon {
    color: var(--c-accent);
    font-size: 1.1rem;
    line-height: 1.4;
    flex-shrink: 0;
}
.onboarding-hint__body { flex: 1; min-width: 0; }
.onboarding-hint__title {
    display: block;
    color: var(--c-text);
    font-size: var(--fs-base);
}
.onboarding-hint__text {
    margin: 2px 0 0;
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
}
.onboarding-hint__close {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: .7rem;
}

