/* ════════════════════════════════════════════════════════════════════
   ScoutApp · design tokens
   ════════════════════════════════════════════════════════════════════ */
:root {
    --sa-font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

    --sa-bg:            #111111;
    --sa-surface:       #1a1a1a;
    --sa-surface-hover: #252525;
    --sa-surface-2:     #1c1c1c;
    --sa-border:        #2e2e2e;
    --sa-border-soft:   #1e1e1e;
    --sa-input-bg:      #252525;
    --sa-input-border:  #3a3a3a;

    --sa-text:       #eeeeee;
    --sa-text-muted: #aaaaaa;
    --sa-text-dim:   #777777;

    --sa-accent:        #4caf50;
    --sa-accent-hover:  #66bb6a;
    --sa-accent-soft:   #1f2e1f;
    --sa-accent-dark:   #2e7d32;

    --sa-info:    #1565c0;
    --sa-info-hover: #1976d2;
    --sa-warn:    #ffb300;
    --sa-danger:  #c62828;
    --sa-danger-hover: #e53935;
    --sa-danger-soft: #5a2020;

    --sa-radius:    8px;
    --sa-radius-sm: 6px;
    --sa-radius-xs: 4px;
}

/* ════════════════════════════════════════════════════════════════════
   Base
   ════════════════════════════════════════════════════════════════════ */
html, body {
    font-family: var(--sa-font);
    background: var(--sa-bg);
    color: var(--sa-text);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { color: var(--sa-text); }
h1:focus { outline: none; }

a { color: var(--sa-accent); }
a:hover { color: var(--sa-accent-hover); }

code { color: #f48fb1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--sa-accent); }
.invalid { outline: 1px solid #ef5350; }
.validation-message { color: #ef9a9a; }

/* ════════════════════════════════════════════════════════════════════
   Admin / page sections (also used by routed admin pages)
   ════════════════════════════════════════════════════════════════════ */
.admin-section {
    padding: 0;
    width: 100%;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--sa-text);
}

.section-sub {
    font-size: 0.85rem;
    color: var(--sa-text-muted);
    margin: -0.6rem 0 0;
    flex-basis: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ════════════════════════════════════════════════════════════════════
   Buttons
   ════════════════════════════════════════════════════════════════════ */
.btn-primary {
    background: var(--sa-accent-dark);
    color: #fff;
    border: none;
    border-radius: var(--sa-radius-sm);
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-primary:hover:not(:disabled) { background: #388e3c; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
    background: var(--sa-info);
    color: #fff;
    border: none;
    border-radius: var(--sa-radius-sm);
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-secondary:hover { background: var(--sa-info-hover); }

.btn-ghost {
    background: transparent;
    color: var(--sa-text-muted);
    border: 1px solid #444;
    border-radius: var(--sa-radius-sm);
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.btn-ghost:hover { border-color: #888; color: var(--sa-text); }

.btn-danger {
    background: var(--sa-danger);
    color: #fff;
    border: none;
    border-radius: var(--sa-radius-sm);
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-danger:hover { background: var(--sa-danger-hover); }

.btn-danger-sm {
    background: transparent;
    color: #ef9a9a;
    border: 1px solid var(--sa-danger-soft);
    border-radius: var(--sa-radius-xs);
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-danger-sm:hover { background: #3a1010; }

.btn-sm-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--sa-accent-dark);
    color: #fff;
    border: 1px solid var(--sa-accent-dark);
    border-radius: var(--sa-radius-xs);
    padding: 0.2rem 0.55rem 0.2rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    margin-right: 0.25rem;
    transition: background 0.12s, border-color 0.12s;
}

.btn-sm-primary:hover { background: #388e3c; border-color: #388e3c; color: #fff; }
.btn-sm-primary svg,
.btn-sm svg,
.btn-danger-sm svg,
.btn-ghost svg { width: 11px; height: 11px; display: block; flex-shrink: 0; }

.btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #1e3a1e;
    color: #a5d6a7;
    border: 1px solid #2e5a2e;
    border-radius: var(--sa-radius-xs);
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
    margin-right: 0.25rem;
}
.btn-sm:hover { background: #254525; }

/* Override Bootstrap focus ring with our accent */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--sa-bg), 0 0 0 0.25rem var(--sa-accent);
}

/* ════════════════════════════════════════════════════════════════════
   Forms
   ════════════════════════════════════════════════════════════════════ */
.form-card {
    background: var(--sa-surface);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 160px;
}
.field-group-sm { max-width: 100px; min-width: 80px; }
.field-group label { font-size: 0.75rem; color: var(--sa-text-dim); }

.field-input {
    background: var(--sa-input-bg);
    border: 1px solid var(--sa-input-border);
    border-radius: var(--sa-radius-sm);
    color: var(--sa-text);
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
    transition: border-color 0.15s;
}
.field-input:focus { outline: none; border-color: var(--sa-accent); }

.field-select {
    background: var(--sa-input-bg);
    border: 1px solid var(--sa-input-border);
    border-radius: var(--sa-radius-sm);
    color: var(--sa-text);
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
}
.field-select-sm { padding: 0.2rem 0.4rem; font-size: 0.8rem; }

.field-textarea {
    background: var(--sa-input-bg);
    border: 1px solid var(--sa-input-border);
    border-radius: var(--sa-radius-sm);
    color: var(--sa-text);
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
    font-family: ui-monospace, monospace;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

.form-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.inline-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--sa-text-muted);
}

/* ════════════════════════════════════════════════════════════════════
   Tables
   ════════════════════════════════════════════════════════════════════ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.data-table th {
    text-align: left;
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--sa-text-dim);
    border-bottom: 1px solid var(--sa-border);
}

.data-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--sa-border-soft);
    vertical-align: middle;
}

.data-table tr:hover td { background: var(--sa-surface); }

.col-num     { text-align: right; width: 4rem; }
.col-actions { text-align: right; width: auto; white-space: nowrap; }
.date-cell   { white-space: nowrap; color: var(--sa-text-muted); }
.muted-cell  { color: var(--sa-text-dim); font-size: 0.82rem; }
.score-cell  { white-space: nowrap; font-variant-numeric: tabular-nums; }
.score-cell .score-value { font-weight: 600; color: var(--sa-text); }
.viewers-cell { white-space: nowrap; color: var(--sa-text-muted); font-variant-numeric: tabular-nums; }
.viewers-cell .viewers-value { display: inline-flex; align-items: center; }

.filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    margin: 0 0 0.85rem;
    flex-wrap: wrap;
}
.filter-bar .field-group { margin: 0; min-width: 12rem; }
.filter-bar .filter-count { margin-left: auto; font-size: 0.82rem; }

/* Profielfoto in admin/players */
.col-photo { width: 44px; padding-right: 0; }
.player-thumb {
    width: 36px; height: 36px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--sa-surface);
    border: 1px solid var(--sa-border-soft);
    display: inline-block;
}
.player-thumb-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--sa-text-muted);
    text-transform: uppercase;
}

.photo-edit-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--sa-border-soft);
}
.photo-preview img,
.photo-preview .photo-placeholder {
    width: 84px; height: 84px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--sa-surface);
    border: 1px solid var(--sa-border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--sa-text-muted);
    text-transform: uppercase;
}
.photo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
}
.photo-actions .photo-upload-btn {
    cursor: pointer;
    user-select: none;
}

/* Profielfoto op spelersprofiel-pagina */
.avatar.avatar-photo {
    object-fit: cover;
    background: var(--sa-surface);
    border-radius: 8px;
}

/* ── Favoriet-ster ──────────────────────────────────────────────────── */
.fav-star {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 3;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: #cfd2d6;
    background: rgba(0, 0, 0, 0.4);
    transition: color 0.12s, background 0.12s, transform 0.12s;
}
.fav-star:hover { color: #ffce54; background: rgba(0, 0, 0, 0.6); transform: scale(1.08); }
.fav-star svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.fav-star.is-fav { color: #ffce54; }
.fav-star.is-fav svg { fill: #ffce54; stroke: #ffce54; }

/* Inline-variant: voor gebruik buiten een kaart (bv. naast een paginatitel) */
.fav-star-inline {
    position: static;
    background: transparent;
    width: 34px;
    height: 34px;
    vertical-align: middle;
}
.fav-star-inline:hover { background: var(--sa-surface-hover); }
.fav-star-inline svg { width: 20px; height: 20px; }

/* Kleine variant voor in tabelrijen (naast de naam) */
.fav-star-sm { width: 26px; height: 26px; margin-right: 0.15rem; }
.fav-star-sm svg { width: 15px; height: 15px; }

/* ── Inzicht / spelers-grid ─────────────────────────────────────────── */
.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
}

.player-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    padding: 1.1rem 1rem 1rem;
    background: var(--sa-surface);
    border: 1px solid var(--sa-border-soft);
    border-radius: 12px;
    color: var(--sa-text);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.player-card:hover {
    border-color: var(--sa-accent);
    background: var(--sa-surface-2);
    transform: translateY(-2px);
}

.player-card-photo {
    position: relative;
    width: 88px; height: 88px;
}

.player-card-photo img,
.player-card-placeholder {
    width: 88px; height: 88px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--sa-surface-2);
    border: 1px solid var(--sa-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--sa-text-muted);
    text-transform: uppercase;
}

.player-card-jersey {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: #1a2e4a;
    color: #cfe3ff;
    border: 1px solid #2e4060;
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.72rem;
    font-weight: 700;
}

.player-card-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
}

.player-card-meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 0.72rem;
    color: var(--sa-text-muted);
}

.player-card-pos {
    background: var(--sa-surface-2);
    border: 1px solid var(--sa-border);
    border-radius: 4px;
    padding: 1px 6px;
    font-weight: 600;
    color: var(--sa-text);
}

/* ── Inzicht / team-picker-grid ─────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.team-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.55rem;
    padding: 1.2rem 1rem 1rem;
    background: var(--sa-surface);
    border: 1px solid var(--sa-border-soft);
    border-radius: 12px;
    color: var(--sa-text);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.team-card:hover {
    border-color: var(--sa-accent);
    background: var(--sa-surface-2);
    transform: translateY(-2px);
}

.team-card-icon {
    width: 56px; height: 56px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: var(--sa-accent-soft);
    color: var(--sa-accent);
}
.team-card-icon svg { width: 26px; height: 26px; }

.team-card-name { font-weight: 700; font-size: 1rem; }

.team-card-meta {
    display: flex; gap: 0.4rem; flex-wrap: wrap;
    justify-content: center; align-items: center;
    font-size: 0.72rem;
    color: var(--sa-text-muted);
}

.team-card-tag {
    padding: 1px 7px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid;
}
.team-card-tag.tag-age    { background: #1a2e4a; color: #90caf9; border-color: #2e4060; }
.team-card-tag.tag-senior { background: #1b3a1b; color: #a5d6a7; border-color: #2e5a2e; }

/* (Team-dashboard styles staan in TeamProfile.razor.css als scoped CSS — duplicatie
    voorkomt dat scoped child-selectors uit lekken naar andere pagina's.) */

.match-team-cell {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    gap: 1px;
}

.match-team-cell .match-team-club {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--sa-text);
    letter-spacing: -0.005em;
}

.match-team-cell .match-team-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--sa-text-muted);
}

.match-team-cell-with-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.match-side-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 3px;
    flex-shrink: 0;
}

.match-side-logo-placeholder {
    background: #2a2a2a;
    color: var(--sa-text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.match-side-logo-placeholder svg { width: 18px; height: 18px; }

/* ════════════════════════════════════════════════════════════════════
   NBB-koppeling
   ════════════════════════════════════════════════════════════════════ */
.nbb-card { margin-bottom: 1rem; }

.nbb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.nbb-title {
    margin: 0;
    font-size: 0.95rem;
    color: var(--sa-text);
}

.nbb-status {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
}
.nbb-status-linked   { background: var(--sa-accent-soft); color: var(--sa-accent); }
.nbb-status-unlinked { background: #2a2a2a;               color: var(--sa-text-dim); }

.nbb-linked-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nbb-club-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

.nbb-club-logo-placeholder {
    background: #1f1f1f;
    color: var(--sa-text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.nbb-club-logo-placeholder svg { width: 28px; height: 28px; }

/* ── Club-logo (topbar pill + switcher dropdown) ── */
.club-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #fff;
    color: var(--sa-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px;
    box-sizing: border-box;
}
.club-logo.lg {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
    border-radius: 6px;
    padding: 3px;
}
.club-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.club-logo.is-placeholder {
    background: var(--sa-accent-soft);
    padding: 0;
}
.club-logo-initial { line-height: 1; }

.nbb-linked-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}
.nbb-linked-meta strong { color: var(--sa-text); font-size: 1rem; }
.nbb-linked-sub         { color: var(--sa-text-dim); font-size: 0.78rem; }

/* ── Zoek-modal ─────────────────────────────────────────────────────── */
.nbb-search-card {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 1rem 1.1rem 1.1rem;
    width: min(560px, 100vw - 2rem);
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 48px rgba(0,0,0,0.6);
}

.nbb-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.nbb-search-head h3 { margin: 0; font-size: 1.05rem; color: var(--sa-text); }

.popup-close-btn {
    background: none;
    border: none;
    color: var(--sa-text-dim);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 6px;
}
.popup-close-btn:hover { background: var(--sa-surface-hover); color: var(--sa-text); }

.nbb-search-input {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.nbb-search-input svg {
    position: absolute;
    left: 0.6rem;
    width: 14px;
    height: 14px;
    color: var(--sa-text-dim);
    pointer-events: none;
}
.nbb-search-input .field-input { padding-left: 2rem; flex: 1; }

.nbb-spinner {
    position: absolute;
    right: 0.6rem;
    width: 14px;
    height: 14px;
    border: 2px solid var(--sa-border);
    border-top-color: var(--sa-accent);
    border-radius: 50%;
    animation: nbb-spin 0.8s linear infinite;
}
@keyframes nbb-spin { to { transform: rotate(360deg); } }

.nbb-search-results {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0 -0.4rem;
    padding: 0 0.4rem 0.2rem;
}

.nbb-result-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.6rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    text-align: left;
    color: var(--sa-text);
    transition: background 0.12s, border-color 0.12s;
}
.nbb-result-row:hover {
    background: #1c1c1c;
    border-color: #2e2e2e;
}

.nbb-result-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 3px;
    flex-shrink: 0;
}
.nbb-result-logo-placeholder {
    background: #2a2a2a;
}

.nbb-result-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nbb-result-name { font-weight: 600; color: var(--sa-text); }
.nbb-result-sub  { font-size: 0.78rem; color: var(--sa-text-dim); }

.nbb-results-hint {
    font-size: 0.78rem;
    text-align: center;
    margin: 0.5rem 0 0;
}

/* ── Teams-tabel ────────────────────────────────────────────────────── */
.col-logo { width: 50px; padding-right: 0; }

.team-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    padding: 3px;
    display: block;
}

.team-logo-placeholder {
    background: #2a2a2a;
    color: var(--sa-text-dim);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.team-logo-placeholder svg { width: 18px; height: 18px; }

.team-source-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
}
.team-source-badge.nbb    { background: var(--sa-accent-soft); color: var(--sa-accent); }
.team-source-badge.manual { background: #2a2a2a;               color: var(--sa-text-dim); }

/* ── NBB-import lijst ──────────────────────────────────────────────── */
.nbb-import-hint {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
}

.nbb-import-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-height: 50vh;
    overflow-y: auto;
    border: 1px solid var(--sa-border-soft);
    border-radius: 6px;
}

.nbb-import-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.5rem 0.7rem;
    background: transparent;
    cursor: pointer;
    transition: background 0.12s;
}
.nbb-import-row:hover:not(.is-disabled) { background: var(--sa-surface-hover); }
.nbb-import-row.is-disabled { cursor: not-allowed; opacity: 0.5; }

.nbb-import-row input[type="checkbox"] { accent-color: var(--sa-accent); margin-top: 0.15rem; }

.nbb-import-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.nbb-import-name { font-weight: 500; }
.nbb-import-comp { font-size: 0.78rem; color: var(--sa-text-dim); }

.nbb-import-comps { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.nbb-comp-chip {
    font-size: 0.7rem;
    color: var(--sa-text-muted);
    background: var(--sa-surface-2);
    border: 1px solid var(--sa-border-soft);
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
    white-space: nowrap;
}
.nbb-import-already { margin-top: 0.15rem; }
.nbb-import-already {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sa-accent);
}

/* ── Cascade-delete checkbox ────────────────────────────────────────── */
.warn-msg {
    margin: 0 0 0.85rem;
    color: var(--sa-text);
    font-size: 0.92rem;
    line-height: 1.45;
}

.cascade-checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    background: var(--sa-surface-2);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-sm);
    cursor: pointer;
    margin-bottom: 0.85rem;
    font-size: 0.875rem;
    color: var(--sa-text);
}
.cascade-checkbox:hover { border-color: var(--sa-danger); }
.cascade-checkbox input[type="checkbox"] {
    accent-color: var(--sa-danger);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ── Form-card title (add/edit modus) + edit-row highlight ───────────── */
.form-card-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--sa-text);
}

.row-editing {
    background: var(--sa-accent-soft) !important;
}

.row-selected {
    background: rgba(33, 150, 243, 0.08) !important;
}

.col-check {
    width: 32px;
    text-align: center;
    padding-right: 0;
}
.col-check input[type="checkbox"] {
    accent-color: var(--sa-accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Op een <td> blijft display: table-cell — anders rekt de rij ongelijk uit
   t.o.v. de andere kolommen. Spacing tussen team-naam en badges via margin. */
.team-cell {
    white-space: normal;
}

.sub-team-badge {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 7px;
    background: var(--sa-surface-2);
    border: 1px solid var(--sa-border);
    border-radius: 999px;
    color: var(--sa-text-muted);
    vertical-align: middle;
}

/* ── Bulk-actie bar ─────────────────────────────────────────────────── */
.bulk-bar {
    position: sticky;
    top: 48px; /* onder de top-app-bar */
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    padding: 0.55rem 0.9rem;
    background: var(--sa-accent-soft);
    border: 1px solid var(--sa-accent-dark);
    border-radius: var(--sa-radius);
    margin: 0 0 0.85rem;
    color: var(--sa-text);
}

.bulk-count {
    font-weight: 700;
    color: var(--sa-accent);
}

.bulk-action-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.bulk-action-group label { font-size: 0.85rem; color: var(--sa-text-muted); }

.field-select-sm {
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
    height: auto;
}

.bulk-discard-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--sa-text-dim);
    cursor: pointer;
}
.bulk-discard-label input[type="checkbox"] {
    accent-color: var(--sa-warn);
    width: 14px;
    height: 14px;
}

.bulk-error {
    flex-basis: 100%;
    margin-top: 0.4rem;
}

/* ── Invaller-modal ─────────────────────────────────────────────────── */
.sub-team-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sub-team-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    background: var(--sa-surface-2);
    border: 1px solid var(--sa-border);
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--sa-text);
    transition: border-color 0.12s, background 0.12s;
}
.sub-team-pill:hover {
    border-color: var(--sa-danger);
    background: var(--sa-danger-soft);
    color: var(--sa-text);
}

.sub-team-pill-x {
    color: var(--sa-text-dim);
    font-size: 0.85rem;
    line-height: 1;
}
.sub-team-pill:hover .sub-team-pill-x { color: var(--sa-danger); }

.discard-checkbox {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.75rem;
    margin: 0 0 0.85rem;
    background: var(--sa-surface-2);
    border: 1px solid var(--sa-border-soft);
    border-left: 3px solid var(--sa-warn);
    border-radius: var(--sa-radius-sm);
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--sa-text);
}

.discard-checkbox input[type="checkbox"] {
    accent-color: var(--sa-warn);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.discard-checkbox small {
    color: var(--sa-text-dim);
    font-size: 0.78rem;
    margin-left: 0.35rem;
}

/* ── Match-side editor ──────────────────────────────────────────────── */
.match-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 720px) {
    .match-side-grid { grid-template-columns: 1fr; }
}

.match-side-card {
    background: var(--sa-surface-2);
    border: 1px solid var(--sa-border-soft);
    border-radius: var(--sa-radius);
    padding: 0.85rem;
}

.match-side-title {
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sa-text-dim);
}

.side-mode-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.side-mode-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.6rem;
    background: var(--sa-bg);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s;
}
.side-mode-option:has(input:checked) {
    border-color: var(--sa-accent);
    background: var(--sa-accent-soft);
}
.side-mode-option input[type="radio"] {
    accent-color: var(--sa-accent);
}

.match-side-tag {
    display: inline-block;
    margin-left: 0.45rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1px 6px;
    background: #2a2a2a;
    color: var(--sa-text-dim);
    border-radius: 999px;
    vertical-align: 1px;
}

.nbb-custom-team {
    margin-top: 0.4rem;
}

/* ── NBB Club Picker — inline typeahead binnen forms ────────────────── */
.nbb-club-input-wrap {
    position: relative;
}

.nbb-club-input-row {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
}

.nbb-club-input {
    flex: 1;
    min-width: 0;
}

.nbb-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.55rem;
    background: var(--sa-accent-soft);
    border: 1px solid var(--sa-accent-dark);
    border-radius: var(--sa-radius-sm);
    color: var(--sa-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.nbb-link-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
}

.nbb-link-text {
    text-transform: uppercase;
}

.nbb-link-clear {
    background: none;
    border: none;
    color: var(--sa-accent);
    cursor: pointer;
    padding: 0 2px;
    font-size: 0.85rem;
    line-height: 1;
}
.nbb-link-clear:hover { color: var(--sa-danger); }

/* Dropdown met suggesties */
.nbb-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--sa-surface);
    border: 1px solid var(--sa-border);
    border-radius: var(--sa-radius-sm);
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    max-height: 280px;
    overflow-y: auto;
    z-index: 30;
    padding: 4px;
}

.nbb-autocomplete-status {
    padding: 0.55rem 0.7rem;
    font-size: 0.82rem;
}

.nbb-autocomplete-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.45rem 0.55rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    color: var(--sa-text);
    transition: background 0.1s, border-color 0.1s;
}
.nbb-autocomplete-row:hover {
    background: var(--sa-surface-hover);
    border-color: var(--sa-border);
}

.nbb-autocomplete-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: #fff;
    border-radius: 4px;
    padding: 2px;
    flex-shrink: 0;
}
.nbb-autocomplete-logo-placeholder { background: #2a2a2a; }

.nbb-autocomplete-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}
.nbb-autocomplete-name { font-weight: 500; font-size: 0.85rem; }
.nbb-autocomplete-sub  { color: var(--sa-text-dim); font-size: 0.75rem; }

/* ── NBB-match-import preview ────────────────────────────────────────── */
.nbb-import-card {
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 1rem 1.1rem 1.1rem;
    width: min(840px, 100vw - 2rem);
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    box-shadow: 0 18px 48px rgba(0,0,0,0.6);
}

.nbb-import-section { margin-bottom: 0.85rem; }

.nbb-import-section-title {
    margin: 0.7rem 0 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--sa-text-dim);
    border-bottom: 1px solid var(--sa-border-soft);
    padding-bottom: 0.3rem;
}

.nbb-import-rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nbb-import-row {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.55rem 0.6rem;
    background: var(--sa-surface-2);
    border: 1px solid var(--sa-border-soft);
    border-radius: var(--sa-radius-sm);
}

.nbb-import-row input[type="checkbox"] {
    accent-color: var(--sa-accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.nbb-import-row-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.nbb-import-row-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
}

.nbb-import-date {
    color: var(--sa-text);
    font-weight: 600;
}

.nbb-import-teams {
    font-size: 0.85rem;
    color: var(--sa-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nbb-import-teams .muted { color: var(--sa-text-dim); }

.nbb-import-vs {
    color: var(--sa-text-dim);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nbb-import-loc {
    font-size: 0.78rem;
    color: var(--sa-text-muted);
}

.nbb-import-change {
    font-size: 0.78rem;
    color: var(--sa-warn);
    font-weight: 500;
}

.nbb-import-collapse {
    margin: 0.5rem 0;
    border: 1px solid var(--sa-border-soft);
    border-radius: var(--sa-radius-sm);
    padding: 0.4rem 0.6rem;
}
.nbb-import-collapse summary {
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--sa-text-muted);
    user-select: none;
}
.nbb-import-empty summary { color: var(--sa-text-dim); }

/* ════════════════════════════════════════════════════════════════════
   Status badges
   ════════════════════════════════════════════════════════════════════ */
.status-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: var(--sa-radius-xs);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.status-gepland   { background: #1a2e4a; color: #90caf9; }
.status-live      { background: #4a1a1a; color: #ef9a9a; animation: sa-pulse 1.5s infinite; }
.status-afgelopen { background: #1a2e1a; color: #a5d6a7; }

@keyframes sa-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.6; }
}

/* ════════════════════════════════════════════════════════════════════
   Season stats specifics
   ════════════════════════════════════════════════════════════════════ */
.table-scroll { overflow-x: auto; }
.stats-table .col-num { width: 3.5rem; }
.stat-pts { font-weight: 700; color: var(--sa-warn); }
.player-jersey {
    color: var(--sa-warn);
    font-weight: 700;
    font-size: 0.78rem;
    margin-right: 0.35rem;
}
.top-row td { background: #1a2a1a; }
.rank       { color: var(--sa-text-dim); font-size: 0.8rem; }

/* ── Seizoenbeheer (/admin/seasons) ── */
.data-table tr.row-highlight td { background: rgba(76, 175, 80, 0.12); }
.season-label { font-weight: 700; color: #eee; }
.season-chip {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    vertical-align: middle;
}
.season-chip-current { background: #1b3a1b; color: #69f0ae; }
.season-chip-active  { background: #2a2410; color: #ffce54; }

.sort-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}
.sort-btn {
    background: var(--sa-border-soft);
    border: 1px solid #333;
    border-radius: var(--sa-radius-xs);
    color: var(--sa-text-muted);
    padding: 0.2rem 0.55rem;
    font-size: 0.78rem;
    cursor: pointer;
}
.sort-active { background: var(--sa-accent-soft); border-color: var(--sa-accent); color: #a5d6a7; }

/* ════════════════════════════════════════════════════════════════════
   Confirm overlay
   ════════════════════════════════════════════════════════════════════ */
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.confirm-box {
    background: var(--sa-border-soft);
    border: 1px solid var(--sa-input-border);
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 360px;
    width: 90%;
}
.confirm-box p { margin: 0 0 1rem; font-size: 0.9rem; }
.confirm-box-wide { max-width: 480px; }
.confirm-box .dep-list {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    font-size: .85rem;
    color: var(--sa-text-dim, #aaa);
}

/* ════════════════════════════════════════════════════════════════════
   Player archive (smart delete + archive)
   ════════════════════════════════════════════════════════════════════ */
.archive-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: 1rem;
    font-size: .82rem;
    color: var(--sa-text-dim, #aaa);
    cursor: pointer;
}
.archive-toggle input { cursor: pointer; }

.archived-badge {
    display: inline-block;
    margin-left: .5rem;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    background: rgba(255, 165, 0, .15);
    color: #ffb347;
    border: 1px solid rgba(255, 165, 0, .35);
    vertical-align: middle;
}

tr.row-archived { opacity: .55; }
tr.row-archived:hover { opacity: .85; }

/* ════════════════════════════════════════════════════════════════════
   Brand-logo (topbar) — global zodat de SVG-children gegarandeerd
   begrensd zijn, ongeacht of scoped CSS de attribute wel/niet plaatst.
   ════════════════════════════════════════════════════════════════════ */
.brand-logo {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sa-accent);
    flex-shrink: 0;
}
.brand-logo svg { width: 100%; height: 100%; display: block; }

/* Navbar-lockup (basketbal + ScoutApp) — vervangt het losse icoon + tekst.
   Op hoogte geschaald zodat het in de 48px-topbar past. */
.brand-img {
    height: 26px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* Compacte icoon-variant — alleen zichtbaar op mobiel (zie 640px-blok). */
.brand-icon {
    display: none;
    height: 30px;
    width: auto;
    border-radius: 6px;
    flex-shrink: 0;
}

.waffle-btn svg { width: 20px; height: 20px; display: block; }
.topbar-btn:not(.waffle-btn) svg { width: 18px; height: 18px; display: block; }

.chevron { width: 12px; height: 12px; color: #888; flex-shrink: 0; }

/* User-avatar in topbar — globaal omdat de img via render-quirks soms geen
   scoped attribuut krijgt (zelfde issue als bij .club-logo). */
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1c2632;
    color: #58a6ff;
    flex-shrink: 0;
}
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-avatar.is-placeholder { color: #8aafd4; }
.user-avatar-initial { font-size: .95rem; font-weight: 700; line-height: 1; }

/* ── Impersonate-banner ─────────────────────────────────────────────── */
.impersonate-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: .55rem 1rem;
    background: linear-gradient(90deg, #5a4a0e, #6e5a18);
    color: #ffe57f;
    font-size: .85rem;
    font-weight: 600;
    border-bottom: 1px solid #8a6f1c;
}
.impersonate-banner strong { color: #fff7c2; font-weight: 800; }
.impersonate-stop {
    background: #ffe57f;
    color: #2a1f00;
    border: none;
    padding: .25rem .7rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    font-size: .8rem;
}
.impersonate-stop:hover { background: #fff099; }

/* Seizoen-banner: zelfde stijl als impersonate maar groen i.p.v. amber */
.season-banner {
    background: linear-gradient(90deg, #1c3a1c, #244a24);
    color: #c8f0c8;
    border-bottom-color: #2e6a2e;
}
.season-banner strong { color: #fff; }
.season-banner .impersonate-stop {
    background: #c8f0c8;
    color: #0a2a0a;
}
.season-banner .impersonate-stop:hover { background: #def5de; }

/* Seizoen-pill — bouwt op .club-pill (zelfde stijl + maten). Eigen mini-cirkel
   met "25", "24" etc. als icoon i.p.v. een echt logo. */
.season-pill-icon {
    background: #1c2632 !important;
    color: #58a6ff !important;
}
.season-pill-icon .club-logo-initial {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

/* ════════════════════════════════════════════════════════════════════
   Cross-navigatie links in tabellen
   ════════════════════════════════════════════════════════════════════ */
.team-name-link,
.team-cell-link,
.team-players-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: border-color .15s, color .15s;
}
.team-name-link:hover,
.team-cell-link:hover,
.team-players-link:hover {
    color: var(--sa-accent, #4ea1ff);
    border-bottom-color: currentColor;
}
.team-players-link { font-variant-numeric: tabular-nums; }
.sub-team-badge-link { text-decoration: none; cursor: pointer; }
.sub-team-badge-link:hover { filter: brightness(1.2); }

/* ════════════════════════════════════════════════════════════════════
   Danger zone (admin/settings)
   ════════════════════════════════════════════════════════════════════ */
.danger-card {
    border: 1px solid var(--sa-input-border, #333);
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    background: var(--sa-border-soft, #1a1a1a);
}
.danger-card-warning {
    border-color: rgba(255, 80, 80, .45);
    background: rgba(255, 80, 80, .05);
}
.danger-card-head h3 {
    margin: 0 0 .4rem;
    font-size: 1.05rem;
}
.danger-card-head p { margin: 0; font-size: .85rem; }
.danger-card-body { margin-top: 1rem; }

/* ════════════════════════════════════════════════════════════════════
   Seizoens-rollover wizard
   ════════════════════════════════════════════════════════════════════ */
.rollover-teams {
    display: flex;
    flex-direction: column;
    gap: .85rem;
    max-height: 55vh;
    overflow-y: auto;
    padding: .25rem;
}
.rollover-team {
    background: #131c28;
    border: 1px solid #1f2a38;
    border-radius: 8px;
    padding: .6rem .75rem;
}
.rollover-team-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    margin-bottom: .4rem;
}
.rollover-team-head strong { color: #fff; font-size: .95rem; }
.rollover-team-head .muted { font-size: .76rem; }

.rollover-player-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .3rem;
}
.rollover-player-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .5rem;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .12s, border-color .12s;
}
.rollover-player-row:hover { background: #161616; }
.rollover-player-row.is-archived { opacity: .45; cursor: not-allowed; }
.rollover-player-row.is-already  { background: rgba(76,175,80,.06); }
.rp-num  { font-weight: 700; color: #58a6ff; min-width: 2.2rem; font-size: .82rem; }
.rp-name { flex: 1; font-size: .85rem; }

/* ════════════════════════════════════════════════════════════════════
   Feedback
   ════════════════════════════════════════════════════════════════════ */
.success-msg { color: #a5d6a7; font-size: 0.82rem; margin: 0; }
.error-msg   { color: #ef9a9a; font-size: 0.82rem; margin: 0; }
.muted       { color: #666; font-size: 0.85rem; }
.csv-hint    { font-size: 0.78rem; color: #666; margin: 0; }

/* ════════════════════════════════════════════════════════════════════
   Blazor framework UI (loading indicator & error pane)
   ════════════════════════════════════════════════════════════════════ */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #333;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: var(--sa-danger);
    padding: 1rem;
    color: white;
    border-radius: var(--sa-radius-sm);
}
.blazor-error-boundary::after { content: "Er is een fout opgetreden."; }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress circle {
    fill: none;
    stroke: #2a2a2a;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--sa-accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    color: var(--sa-text-muted);
}
.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Laden"); }

/* ════════════════════════════════════════════════════════════════════
   Mobiel (≤640px)
   ─ Lijst-tabellen met class .cards-mobile klappen om naar kaartjes:
     elke rij = één kaart, elke cel = "label · waarde" (via data-label).
   ─ Dense/numerieke tabellen in .table-scroll scrollen horizontaal
     i.p.v. samen te knijpen.
   ─ Scout- en coach-schermen zijn desktop-only en worden hier NIET
     geraakt (geen .cards-mobile, geen brede admin-tabellen).
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    /* ── Navbar: lockup → compact icoon (logo heeft geen prio op mobiel) ── */
    .brand-img  { display: none; }
    .brand-icon { display: block; }

    /* ── A · dense tabellen: écht horizontaal scrollen ── */
    .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-scroll .data-table { min-width: 540px; }
    .stats-table, .standings-table { min-width: 680px; }

    /* ── B · lijst-tabellen → kaartjes ── */
    .data-table.cards-mobile,
    .data-table.cards-mobile tbody { display: block; width: 100%; }
    .data-table.cards-mobile thead { display: none; }

    .data-table.cards-mobile tr {
        display: block;
        background: var(--sa-surface);
        border: 1px solid var(--sa-border);
        border-radius: var(--sa-radius-sm);
        padding: 0.5rem 0.8rem;
        margin-bottom: 0.6rem;
    }
    .data-table.cards-mobile tr:hover td { background: transparent; }

    .data-table.cards-mobile td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: auto !important;        /* override .col-num / .col-actions vaste breedtes */
        padding: 0.32rem 0;
        border: none;
        text-align: right;
        white-space: normal;
    }
    .data-table.cards-mobile td[data-label]::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--sa-text-dim);
        text-align: left;
    }

    /* niet-gelabelde / decoratieve cellen (checkbox, foto, logo) links */
    .data-table.cards-mobile td:not([data-label]) {
        justify-content: flex-start;
        text-align: left;
    }
    .data-table.cards-mobile td:empty { display: none; }

    /* actie-knoppen: onderaan het kaartje, volle breedte, wrappen */
    .data-table.cards-mobile td.col-actions {
        flex-wrap: wrap;
        gap: 0.4rem;
        margin-top: 0.4rem;
        padding-top: 0.55rem;
        border-top: 1px solid var(--sa-border-soft);
    }
    .data-table.cards-mobile td.col-actions .btn-sm,
    .data-table.cards-mobile td.col-actions .btn-sm-primary,
    .data-table.cards-mobile td.col-actions .btn-danger-sm { margin: 0; }

    /* ── Touch targets + iOS voorkomt auto-zoom bij font ≥16px ── */
    .btn-sm, .btn-sm-primary, .btn-danger-sm, .btn-ghost,
    .btn-primary, .btn-secondary, .btn-danger {
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .field-input, .field-select, .field-textarea, .field-select-sm {
        min-height: 40px;
        font-size: 16px;
    }
}
