/* PrJ/public/assets/css/views/dashboard.css

/* ============================================= */
/* === DASHBOARD VIEW STYLES === */
/* ============================================= */
#dashboard-content-wrapper { width: 100%; }
.selector-button { background-color: var(--brand-gray-light); color: var(--text-accent); border-radius: var(--radius-full); padding: 0.1rem 1rem; font-weight: 500; font-size: var(--font-size-small); border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: all 0.2s ease; }
.selector-button:hover { background-color: var(--brand-gray-medium); }
.selector-button.active { background-color: var(--brand-orange); color: var(--text-on-accent); font-weight: 700; }
.info-bar { background-color: var(--bg-secondary); color: var(--text-primary); font-weight: 500; border-radius: 0; padding: 8px 16px; text-align: center; border-top: 1px solid var(--border-color-light); border-bottom: 1px solid var(--border-color-light); font-size: var(--font-size-lg); margin-bottom: 1rem; }


/* ============================================= */
/* === STILE FÜR MATCH-DETAILS OVERLAY === */
/* ============================================= */

/* Button in der Ergebnistabelle (unverändert) */
.results-details-btn {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}
.results-details-btn:hover {
    background-color: var(--brand-orange);
    color: var(--text-on-accent);
    border-color: var(--brand-orange);
}

/* Button in der Ergebnistabelle (unverändert) */
.upcoming-preview-btn {
    display: inline-block;
    padding: 0.05rem 0.5rem;
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}
.upcoming-preview-btn:hover {
    background-color: var(--brand-orange);
    color: var(--text-on-accent);
    border-color: var(--brand-orange);
}


/* NEUER Header-Stil im Overlay */
.match-details-header {
    text-align: center;
    margin-bottom: 1rem; /* Etwas weniger Abstand */
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color-medium);
}
.match-details-header .week-info { /* Für "Week X" oder "Match Details" */
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.match-details-header h3 { /* Teamnamen */
    font-size: var(--font-size-xxxl);
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}
.match-details-header .final-score { /* Endergebnis */
    font-size: var(--font-size-xxl);
    font-weight: 700;
    color: var(--text-primary);
}
            
/* * Die alten .games-list-Stile sind nicht mehr nötig.
 * Die Tabelle .data-table (aus main.css) übernimmt das Styling.
 * Wir fügen nur einen Wrapper hinzu, damit die Tabelle im Overlay scrollen kann.
 */
.overlay-table-wrapper {
    flex-grow: 1;     /* <--- NEU: Nimm allen restlichen Platz ein */
    overflow-y: auto; /* <--- Behalten: Scrolle, wenn zu voll */
    min-height: 0;    /* <--- NEU: Wichtiger Flexbox-Fix für Scrolling */
    
    /* max-height: 45vh; */ /* <--- ALT: Wird entfernt */
}


/* ============================================= */
/* === STILE FÜR MATCH-DETAILS (Events Schritt 2) === */
/* ============================================= */

/* Icon für B&R / GB (neben dem Spielernamen) */
.special-event-icon {
    display: inline-block;
    margin-left: 4px;
    font-size: 1.2rem; /* Mache das Icon etwas größer */
    vertical-align: middle;
    cursor: help; /* Zeigt an, dass man hovern kann (für den Title-Tag) */
}

/* Gilt für Header (<th>) und Zellen (<td>) der Game-Kind-Spalte */
.match-details-table th.col-type-text-short,
.match-details-table td.col-type-text-short {
    width: 16%; /* Setzt eine feste, schmale Breite (Wert anpassen!) */
    max-width: 20px; /* Verhindert, dass sie breiter wird */
    text-align: center; /* Zentriert den Header (auch wenn leer) und die Zelle */
    padding-left: 4px !important;  /* Reduziert den linken Innenabstand */
    padding-right: 4px !important; /* Reduziert den rechten Innenabstand */
    overflow: hidden; /* Verhindert Überlaufen, falls doch mal was länger ist */
    text-overflow: ellipsis; /* Fügt "..." hinzu, wenn zu lang */
    white-space: nowrap; /* Verhindert Umbruch */
}

/* Spezifische Anpassungen für die Zelle (<td>) */
.match-details-table td.game-kind-cell {
    /* Die meisten Stile werden von oben geerbt */
    /* Ggf. Schriftgröße anpassen, falls nötig */
    /* font-size: var(--font-size-xs); */
    /*font-weight: 500; /* Etwas weniger fett als 600 */
    opacity: 0.6;    /* Etwas sichtbarer als 0.6 */
}

/* Zeilengruppen (Unverändert) */
.data-table .game-kind-group-a td {
    border-bottom: 1px solid var(--border-color-light);
}
.data-table .game-kind-group-b td {
    border-bottom: 1px solid var(--border-color-light);
}
.data-table .game-kind-group-a + .game-kind-group-b td,
.data-table .game-kind-group-b + .game-kind-group-a td {
    border-top: 2px solid var(--brand-orange, #ed8936);
}
.data-table .game-kind-group-a:hover td,
.data-table .game-kind-group-b:hover td {
     background-color: var(--table-row-hover, #f0f0f0);
}

/* Zentrierung "#"-Spalte (Unverändert) */
.match-details-table th.col-type-numeric-short,
.match-details-table td.col-type-numeric-short {
    text-align: center;
    vertical-align: middle;
}

/* NEU: Stil für die Tie-Break-Zeile (im TFOOT) */
.data-table tfoot .tie-break-row .custom-event-row {
    background-color: var(--brand-orange-accent, #fffaf5);
    border: 2px solid var(--brand-orange, #ed8936);
    text-align: center;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px;
}
/* Stil für die W/L-Ratio (jetzt hinter dem Namen) */
.player-wl-ratio {
    display: inline; /* <-- Kein Zeilenumbruch mehr */
    font-size: var(--font-size-xs);
    color: var(--text-secondary); /* Hellgrau (wie gewünscht) */
    font-style: italic;
    margin-left: 6px; /* Kleiner Abstand zum Namen/Icon */
    /* margin-top: 2px; ENTFERNT */
}

/* ============================================= */
/* === STILE FÜR TEAM FORM (Upcoming Table) === */
/* ============================================= */

/* Stil für Header und Zellen der Form-Spalten */
.data-table th.col-type-form,
.data-table td.col-type-form {
    width: 16%; min-width:40px; /* Breite für 5 Zeichen + etwas Abstand */
    max-width: 60px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 1px; /* Etwas mehr Abstand zwischen Buchstaben */
    font-family: monospace; /* Sorgt für gleiche Breite der Zeichen */
    font-size: var(--font-size-xs);
    font-weight: 700; /* Fett */
    padding-left: 2px;  /* Minimaler Innenabstand */
    padding-right: 2px; /* Minimaler Innenabstand */
}

/* Einzelne Buchstaben stylen */
.data-table td.col-type-form span {
    display: inline-block;
    padding: 0 1px; /* Minimaler Abstand zwischen Spans */
}

/* Farben für W/D/L/- */
.form-W { color: var(--status-success, #38a169); } /* Grün */
.form-D { color: var(--text-secondary, #a0aec0); } /* Grau */
.form-L { color: var(--status-error, #e53e3e); }   /* Rot */
.form-N, .form-na { color: var(--border-color-medium, #d1d5db); } /* Hellgrau für '-' oder '-----' */

/* Fallback '-----' stylen */
.form-na {
    letter-spacing: 0; /* Kein extra Abstand für den Fallback */
    font-weight: 400; /* Nicht fett */
    font-family: system-ui, sans-serif; /* Normale Schrift */
}
/* Stil für die W/L-Ratio (Prozentzahl) */
.upcoming-wl-ratio {
    display: inline;
    font-size: var(--font-size-xs); /* Kleinere Schrift */
    color: var(--text-secondary);   /* Hellerer Text (grau) */
    font-style: italic;
    margin-left: 4px; /* Abstand zum Teamnamen */
    margin-right: 4px;
    }

/* Stellt sicher, dass das " - " auch die Sekundärfarbe nutzt */
.text-secondary {
    color: var(--text-secondary);
}

/* ============================================= */
/* === STILE FÜR WEEK NAVIGATOR (Weeks View) === */
/* ============================================= */
/*#week-navigator {
    /* Container ist bereits flex, justify-center, items-center */
/*}

/* Stil für die Navigations-Pfeile */
#week-navigator .selector-button {
    padding: 0.1rem 1rem; /* Etwas kleiner als Divisions-Buttons */
    font-weight: 700;
    font-size: var(--font-size-lg); /* Größere Pfeile */
}

/* Deaktivierte Buttons */
#week-navigator .selector-button:disabled {
    background-color: var(--brand-gray-light);
    color: var(--text-secondary);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Text "Week X" */
#week-nav-label {
    color: var(--text-primary);
    min-width: 80px; /* Platz halten, damit es nicht springt */
    text-align: center;
    white-space: nowrap;
}


