/* ══════════════════════════════════════════════════════
   Teilnehmer Index + Details Styles
   ══════════════════════════════════════════════════════ */

/* ── Sticky Header (Details) ── */
.tn-sticky-header {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.tn-sticky-header .tn-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tn-sticky-header .tn-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

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

/* ── Tab Content (Details) ── */
.tn-tabs .nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1.25rem;
}

.tn-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tn-tabs .nav-link:hover {
    color: #0d6efd;
    border-bottom-color: #dee2e6;
}

.tn-tabs .nav-link.active {
    color: #0d6efd;
    border-bottom-color: #0d6efd;
    background: transparent;
}

.tn-tabs .tab-pane {
    min-height: 300px;
}

/* Technische Details Collapse */
.tn-tech-details summary {
    cursor: pointer;
    color: #6c757d;
    font-size: 0.85rem;
}

.tn-tech-details summary:hover {
    color: #495057;
}

/* ── Index: Filter Pills ── */
.tn-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tn-filter-pills .btn {
    border-radius: 50rem;
    padding: 0.25rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.15s;
}

.tn-filter-pills .btn-outline-secondary {
    border-color: #ced4da;
    color: #495057;
}

.tn-filter-pills .btn-outline-secondary:hover {
    background: #f8f9fa;
}

.tn-filter-pills .btn-primary {
    box-shadow: 0 1px 3px rgba(13, 110, 253, 0.3);
}

/* ── Index: Active Filter Chips ── */
.tn-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.tn-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 50rem;
    background: #e7f1ff;
    color: #0d6efd;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid #b6d4fe;
}

.tn-filter-chip .btn-close {
    font-size: 0.55rem;
    padding: 0.2rem;
    opacity: 0.6;
    filter: none;
}

.tn-filter-chip .btn-close:hover {
    opacity: 1;
}

/* ── Index: Compact Table ── */
.tn-table {
    margin-bottom: 0;
}

.tn-table thead th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    padding: 0.5rem 0.6rem;
    white-space: nowrap;
}

.tn-table tbody tr {
    cursor: pointer;
    transition: background 0.1s;
}

.tn-table tbody tr:hover {
    background-color: #f0f6ff !important;
}

.tn-table tbody td {
    padding: 0.5rem 0.6rem;
    vertical-align: middle;
    font-size: 0.88rem;
}

.tn-table .tn-name-cell {
    font-weight: 500;
}

.tn-table .tn-email-cell {
    color: #6c757d;
    font-size: 0.82rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Country badge */
.tn-land-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
    letter-spacing: 0.05em;
}

/* Payment status icons */
.tn-bezahlt-ok {
    color: #198754;
    font-size: 1rem;
}

.tn-bezahlt-offen {
    color: #dc3545;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Actions dropdown */
.tn-actions-dropdown .dropdown-toggle {
    padding: 0.2rem 0.5rem;
    border: none;
    background: transparent;
    color: #6c757d;
    font-size: 1.1rem;
    line-height: 1;
}

.tn-actions-dropdown .dropdown-toggle:hover,
.tn-actions-dropdown .dropdown-toggle:focus {
    color: #0d6efd;
    background: #e7f1ff;
    border-radius: 4px;
}

.tn-actions-dropdown .dropdown-toggle::after {
    display: none;
}

.tn-actions-dropdown .dropdown-menu {
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.tn-actions-dropdown .dropdown-item {
    padding: 0.4rem 1rem;
}

.tn-actions-dropdown .dropdown-item i {
    width: 1.2em;
    margin-right: 0.4rem;
}

/* ── Index: Button Bar ── */
.tn-button-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Index: Row inactive highlight ── */
.tn-table tr.tn-inactive {
    opacity: 0.6;
}

.tn-table tr.tn-inactive .tn-name-cell::after {
    content: 'Inaktiv';
    font-size: 0.7rem;
    font-weight: 600;
    color: #dc3545;
    background: #f8d7da;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-left: 0.4rem;
}

/* ── Badge Loading Overlay (kept from original) ── */
.badge-loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-loading-spinner {
    background: white;
    border-radius: 12px;
    padding: 2rem 3rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    text-align: center;
}

/* ── KPI Cards ── */
.tn-kpi-card .card-text.display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ── Pagination ── */
.tn-pagination {
    margin-top: 1rem;
}

/* ── Details: PDF Icon Grid ── */
.tn-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.tn-pdf-grid .btn {
    text-align: left;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
}

/* ── Details: Evaluierung Pipeline ── */
.tn-eval-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tn-eval-step {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.tn-eval-chevron {
    color: #dee2e6;
    font-size: 1.2rem;
}
