/* ── Shared Roster Management Styles ──────────────────────────────────── */
/* Used by: Roster.cshtml, HockeyRoster.cshtml, FootballRoster.cshtml     */

.selector-bar {
    background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 0.5rem;
    padding: 0.75rem 1rem; margin-bottom: 1.25rem;
    display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap;
}
.selector-bar select { min-width: 260px; flex: 1; }

.section-card {
    border: 1px solid #dee2e6; border-radius: 0.5rem; margin-bottom: 1.25rem;
}
.section-header {
    background: #f8f9fa; border-bottom: 1px solid #dee2e6;
    border-radius: 0.5rem 0.5rem 0 0; padding: 0.65rem 1rem;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em;
    text-transform: uppercase; color: #495057;
    display: flex; align-items: center; justify-content: space-between;
}
.badge-count {
    background: #6c757d; color: #fff; border-radius: 0.375rem;
    font-size: 0.72rem; padding: 0.2em 0.55em;
}

/* ── Table core ──────────────────────────────────────────────────────── */
.roster-table th {
    font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: #6c757d; font-weight: 600; white-space: nowrap;
    position: sticky; top: 0; background: #f8f9fa; z-index: 2;
}
.roster-table th.sortable { cursor: pointer; user-select: none; }
.roster-table th.sortable:hover { color: #343a40; background: #e9ecef !important; }
.roster-table th.sort-asc  { color: #0d6efd !important; }
.roster-table th.sort-desc { color: #0d6efd !important; }
.sort-icon { color: #ced4da; font-size: 0.6rem; margin-left: 2px; vertical-align: middle; }
.roster-table td { vertical-align: middle; padding: 0.2rem 0.3rem; font-size: 0.82rem; }
.roster-table tr.ia-row td { background: #f0f4ff !important; color: #555; }
.roster-table tr.dnp-row td { background: #fff8f0 !important; color: #888; }
.roster-table tr:nth-child(even):not(.ia-row):not(.dnp-row) td { background: #f8f9ff; }

/* ── Player name & badges ────────────────────────────────────────────── */
.player-name { font-weight: 600; white-space: nowrap; }
.player-name a { color: inherit; text-decoration: none; }
.player-name a:hover { color: #0d6efd; text-decoration: underline; }
.pos-badge {
    display: inline-block; min-width: 2em; text-align: center;
    font-size: 0.68rem; font-weight: 700; padding: 0.1em 0.35em;
    border-radius: 0.25rem; background: #dee2e6; color: #333;
}
.pos-badge.dnp { background: #f8d7da; color: #842029; }
.ia-badge {
    font-size: 0.65rem; background: #cfe2ff; color: #084298;
    border-radius: 0.25rem; padding: 0.1em 0.4em; font-weight: 700;
    vertical-align: middle;
}

/* ── Action buttons ──────────────────────────────────────────────────── */
.action-cell { white-space: nowrap; }
.action-cell form { display: inline; }
.btn-act {
    font-size: 0.72rem; padding: 0.15rem 0.45rem; line-height: 1.4;
    border-radius: 0.25rem; cursor: pointer; border: 1px solid transparent;
    font-weight: 600;
}
.btn-cut     { background: #f8d7da; color: #842029; border-color: #f5c2c7; }
.btn-cut:hover   { background: #f1aeb5; }
.btn-pos     { background: #d1ecf1; color: #0c5460; border-color: #bee5eb; }
.btn-pos:hover   { background: #b6dbde; }
.btn-ia      { background: #fff3cd; color: #664d03; border-color: #ffecb5; }
.btn-ia:hover    { background: #ffe69c; }
.btn-ia-rev  { background: #cfe2ff; color: #084298; border-color: #b6d4fe; }
.btn-ia-rev:hover { background: #b3d0ff; }

/* ── Column widths ───────────────────────────────────────────────────── */
.col-name { min-width: 130px; }
.col-pos  { width: 46px; text-align: center; }
.col-tm   { width: 44px; }
.col-age  { width: 38px; text-align: right; }
.col-b    { width: 30px; text-align: center; }
.col-num  { width: 44px; text-align: right; }
.col-dec  { width: 52px; text-align: right; }
.col-act  { width: 120px; }

/* ── Misc ────────────────────────────────────────────────────────────── */
.dim      { color: #adb5bd; }
.stat-divider { border-left: 2px solid #dee2e6 !important; }
.pm-pos   { color: #198754; font-weight: 600; }
.pm-neg   { color: #dc3545; font-weight: 600; }
#addLoadOverlay {
    display: none; position: fixed; inset: 0;
    background: rgba(255,255,255,0.78); z-index: 9999;
    align-items: center; justify-content: center; flex-direction: column; gap: 0.6rem;
}
#addLoadOverlay.show { display: flex; }
