/* Modern application theme on top of Bootstrap 5.3.8. */
:root {
    --app-primary: #F2C300;
    --app-primary-dark: #111111;
    --app-ink: #172033;
    --app-muted: #6b7280;
    --app-bg: #f4f7fb;
    --app-surface: #ffffff;
    --app-border: #e5eaf1;
    --app-shadow: 0 10px 30px rgba(23, 32, 51, .07);
    --app-radius: 1rem;
}

html { overflow-y: auto; }
body {
    margin: 0;
    background: var(--app-bg) !important;
    color: var(--app-ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-top: 78px;
    line-height: 1.55;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-container { width: 100%; max-width: 1440px; padding-left: 1rem; padding-right: 1rem; flex: 1 0 auto; }
.dashboard-container { max-width: 1600px; }

/* Navigation */
.navbar.fixed-top {
    background: rgba(17, 25, 39, .96) !important;
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    border-bottom: 1px solid rgba(255,255,255,.08);
    min-height: 64px;
}
.navbar .container { max-width: 1440px; }
.navbar-brand { font-weight: 750; letter-spacing: -.02em; }
.navbar .nav-link {
    border-radius: .65rem;
    padding: .55rem .75rem !important;
    color: rgba(255,255,255,.78) !important;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus { color: #fff !important; background: rgba(255,255,255,.08); }
.navbar #currentpage { color: #fff !important; background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark)); }
.navbar .dropdown-menu {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .8rem;
    padding: .45rem;
    box-shadow: 0 16px 40px rgba(23,32,51,.14);
}
.navbar .dropdown-item { border-radius: .55rem; padding: .55rem .75rem; }
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus { background: #FFF8CC; color: var(--app-primary-dark); }

header { text-align: center; margin: 1.5rem 0 1rem; }
header h1, header h2, header h3 { font-weight: 750; letter-spacing: -.025em; }



/* Cards, forms and buttons */
.card {
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
}
.form-control, .form-select, .input-group-text {
    border-color: #dbe2ea;
    border-radius: .65rem;
}
.form-control:focus, .form-select:focus {
    border-color: rgba(59,171,236,.65);
    box-shadow: 0 0 0 .2rem rgba(59,171,236,.14);
}
.input-group > .form-control { border-radius: 0 .65rem .65rem 0; }
.input-group > .input-group-text { border-radius: .65rem 0 0 .65rem; }
.btn {
    border-radius: .65rem;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { border-color: var(--app-primary); background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark)); }
.btn-primary:hover, .btn-primary:focus { border-color: var(--app-primary-dark); }

/* Tables */
.app-table-wrap {
    width: 100%;
    margin: 0 0 1.25rem;
    border: 1px solid var(--app-border);
    border-radius: .85rem;
    background: var(--app-surface);
    box-shadow: 0 6px 18px rgba(23,32,51,.06);
}
.app-table-wrap > table {
    width: 100%;
    margin-bottom: 0;
    vertical-align: middle;
    border-color: transparent;
}
.app-table-wrap > table thead th {
    background: #f5f7fa;
    color: #374151;
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .045em;
    white-space: nowrap;
    border-bottom: 1px solid var(--app-border);
    padding: .75rem .85rem;
}
.app-table-wrap > table tbody td,
.app-table-wrap > table tbody th {
    padding: .7rem .85rem;
    border-color: #edf0f3;
}
.app-table-wrap > table tbody tr { transition: background-color .15s ease; }
.app-table-wrap > table.table-hover tbody tr:hover > * { background-color: #f5faff; }
.app-table-wrap > table.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: #fafbfd; }
.app-table-wrap > table > :not(caption) > * > *:first-child { border-left: 0; }
.app-table-wrap > table > :not(caption) > * > *:last-child { border-right: 0; }
.app-table-wrap > table > thead > tr:first-child > th:first-child { border-top-left-radius: .85rem; }
.app-table-wrap > table > thead > tr:first-child > th:last-child { border-top-right-radius: .85rem; }
.app-table-wrap > table > tbody > tr:last-child > td:first-child,
.app-table-wrap > table > tbody > tr:last-child > th:first-child { border-bottom-left-radius: .85rem; }
.app-table-wrap > table > tbody > tr:last-child > td:last-child,
.app-table-wrap > table > tbody > tr:last-child > th:last-child { border-bottom-right-radius: .85rem; }
/* Tables that need horizontal scrolling on smaller screens. */
@media (max-width: 767.98px) {
    .app-table-wrap {
        box-shadow: none;
    }
    .app-table-wrap > table {
    }
}

.alert { border-radius: .8rem; border-width: 1px; }
.modal-content { border: 0; border-radius: 1rem; box-shadow: 0 24px 70px rgba(23,32,51,.2); }
.modal-header { border-bottom-color: var(--app-border); }
.modal-footer { border-top-color: var(--app-border); }

/* Existing application-specific styles */
.table_button { padding-top: 2px; }
th.currentstand { background-color: var(--app-primary); }
a.currentstand:hover, a.currentstand:link, a.currentstand:visited { text-decoration: none; color: #fff; }
.font-tile { font-size: 190%; background: #111827; color: #fff; text-decoration: none; text-align: center; padding-top: 20%; padding-bottom: 20%; border-radius: .85rem; }
.linkindex { color: #000; display: block; width: 100%; }
.linkindex:visited { color: #000; }
.linkindex:hover { color: var(--app-primary); }
table.center { margin-left: auto; margin-right: auto; }
.btn-ok { text-decoration: none; }
.modal-header h1, .modal-header h2, .modal-header h3, .modal-header h4, .modal-header h5, .modal-header h6 { margin: 0; }
.text-nowrap { white-space: nowrap; }

/* Footer */
.site-footer { flex-shrink: 0; padding: 1.5rem 0 1rem; color: var(--app-muted); }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 0 1rem; text-align: center; }
.footer-line { height: 1px; background: var(--app-border); margin-bottom: .85rem; }

@media (min-width: 768px) {
    .app-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1200px) {
    .app-container { padding-left: 2rem; padding-right: 2rem; }
}
@media (max-width: 991.98px) {
    body { padding-top: 70px; }
    .navbar .navbar-collapse { padding: .75rem 0; }
    .navbar .nav-link { margin: .1rem 0; }
}
@media (max-width: 575.98px) {
    .app-container { padding-left: .75rem; padding-right: .75rem; }
    .table { font-size: .9rem; }
}

/* Refined page headers */
.page-header {
    text-align: center;
    margin: 1.75rem 0 2rem;
}
.page-header-inner {
    width: 100%;
}
.page-header h1 {
    margin: 0;
    color: var(--app-ink);
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -.035em;
}
.page-header-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1 12%, #cbd5e1 88%, transparent);
    margin-top: 1rem;
}

/* Player/team selection */
.team-selection-grid {
    margin-top: .25rem;
}
.team-selection-card {
    position: relative;
    min-height: 126px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    overflow: hidden;
    text-decoration: none;
    color: var(--app-ink);
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(23,32,51,.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.team-selection-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--app-primary), var(--app-primary-dark));
}
.team-selection-card:hover {
    color: var(--app-ink);
    transform: translateY(-3px);
    border-color: rgba(59,171,236,.35);
    box-shadow: 0 14px 32px rgba(23,32,51,.11);
}
.team-selection-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: .85rem;
    color: var(--app-primary-dark);
    background: #FFF8CC;
    font-size: 1.15rem;
}
.team-selection-name {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}
.team-selection-arrow {
    margin-left: auto;
    color: #94a3b8;
    transition: transform .18s ease, color .18s ease;
}
.team-selection-card:hover .team-selection-arrow {
    color: var(--app-primary);
    transform: translateX(4px);
}

/* Mijn Team */
.team-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}
.team-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.team-stat {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(23,32,51,.055);
}
.team-stat-formation {
    justify-content: flex-end;
}
.team-stat-label {
    color: var(--app-muted);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.team-stat-value {
    color: var(--app-ink);
    font-size: 1.35rem;
    font-weight: 800;
}
.team-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: .45rem;
    border-radius: .65rem;
    color: var(--app-primary);
    background: #FFF8CC;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color .15s ease, transform .15s ease;
}
.team-edit-link:hover {
    color: var(--app-primary-dark);
    background: #FFEF9A;
    transform: translateY(-1px);
}
.team-table-card {
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(23,32,51,.07);
}
.team-table-card .table-responsive {
    margin: 0;
}
.team-table {
    margin: 0 !important;
    border: 0 !important;
}
.team-table th,
.team-table td {
    border-color: #edf0f3 !important;
}
.team-table > tbody > tr:not(.team-section-row):not(:last-child):hover > * {
    background: #FFFDF0;
}
.team-table .team-section-row > td {
    padding: 1rem .9rem .65rem;
    color: var(--app-ink);
    background: #fff;
    border-top: 1px solid var(--app-border);
    border-bottom: 0;
}
.team-table .team-section-row:first-child > td {
    border-top: 0;
}
.team-table .team-section-row h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.015em;
}
.team-table > tbody > tr:not(.team-section-row) > th {
    padding: .7rem .85rem;
    background: #f7f9fb;
    color: #475569;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.team-table > tbody > tr:not(.team-section-row) > td {
    padding: .78rem .85rem;
}
.team-action-cell,
.team-action-head {
    width: 44px !important;
    padding-left: .25rem !important;
    padding-right: .25rem !important;
}
.team-action-cell a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: .55rem;
    text-decoration: none;
}
.team-action-cell a:hover {
    background: #FFF8CC;
}
.team-table .fa {
    font-size: 1rem;
}
.team-table .team-section-row + tr th {
    border-top: 0 !important;
}
.team-table .team-section-row + tr > * {
    white-space: nowrap;
}
.team-table tr[onclick] {
    cursor: pointer;
}
.team-table tr[onclick]:hover > * {
    background: #f5faff !important;
}

/* Keep wide tables inside the viewport instead of letting legacy row/table
   markup push the entire application sideways. */
.app-container,
.team-page {
    min-width: 0;
}
body {
    overflow-x: hidden;
}

@media (max-width: 767.98px) {
    .page-header {
        margin: 1.25rem 0 1.25rem;
    }
    .team-summary {
        grid-template-columns: 1fr;
    }
    .team-stat,
    .team-stat-formation {
        justify-content: space-between;
    }
    .team-table-card {
        border-radius: .8rem;
    }
    .team-selection-card {
        min-height: 104px;
    }
}


/* Pagination - Bootstrap 5 application styling */
.app-pagination {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0 2rem;
}
.app-pagination .pagination {
    gap: .4rem;
    flex-wrap: wrap;
}
.app-pagination .page-item .page-link {
    min-width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .75rem;
    border: 1px solid var(--app-border);
    border-radius: .7rem !important;
    background: var(--app-surface);
    color: var(--app-ink);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 7px rgba(23,32,51,.04);
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.app-pagination .page-item .page-link:hover {
    color: var(--app-primary-dark);
    background: #FFF8CC;
    border-color: rgba(59,171,236,.45);
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(23,32,51,.08);
}
.app-pagination .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary), #DCAE00);
    border-color: var(--app-primary);
    box-shadow: 0 5px 14px rgba(59,171,236,.28);
}
.app-pagination .page-item.active .page-link:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary), #DCAE00);
    transform: none;
}
@media (max-width: 575.98px) {
    .app-pagination .pagination { gap: .3rem; }
    .app-pagination .page-item .page-link {
        min-width: 2.25rem;
        height: 2.25rem;
        padding: .35rem .6rem;
    }
}


/* Consistent selection tiles */
.team-selection-grid {
    row-gap: 1rem !important;
}
.team-selection-grid > [class*="col-"],
.row > [class*="col-"] {
    min-width: 0;
}
.team-selection-card-content {
    width: 100%;
}

/* Dashboard: the old markup uses Bootstrap rows as visual cards.
   Reset those rows so headings/tables are not treated as flex columns. */
.dashboard-card {
    display: block !important;
    width: 100%;
    margin: 0 0 1rem !important;
    padding: 1rem 1.1rem !important;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(23,32,51,.06);
}
.dashboard-card > h1,
.dashboard-card > h2,
.dashboard-card > h3 {
    display: block;
    width: 100%;
    margin: 0 0 .75rem !important;
    color: var(--app-ink);
}
.dashboard-card > .table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 0;
}
.dashboard-card .table {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
}
.dashboard-card .table th,
.dashboard-card .table td {
    white-space: nowrap;
}
.dashboard-card.wedstrijden,
.dashboard-card.mvp,
.dashboard-card.spelers {
    overflow: hidden;
}
.dashboard-card > .row {
    margin-left: 0;
    margin-right: 0;
}
.dashboard-card a {
    text-decoration: none;
}
@media (max-width: 767.98px) {
    .dashboard-card {
        padding: .9rem !important;
    }
}


/* Auth tabs are navigation, not a responsive data table. */
.auth-tabs {
    width: 100%;
    overflow: hidden;
}
.auth-tabs table {
    width: 100%;
    table-layout: fixed;
    margin: 0;
}
.auth-tabs th {
    padding: 0 !important;
}
.auth-tabs .linkindex {
    display: block;
    padding: .9rem .75rem;
    font-size: 1.2rem;
    font-weight: 700;
}

/* Dashboard cards: prevent Bootstrap's .row flex behavior from turning
   headings and tables into separate columns. */
.dashboard-card {
    box-sizing: border-box;
}
.dashboard-card .table-responsive {
    max-width: 100%;
}
.dashboard-card .table-responsive > .table {
    width: 100% !important;
    table-layout: fixed;
}
.dashboard-card .table th,
.dashboard-card .table td {
    overflow: hidden;
    text-overflow: ellipsis;
}
.dashboard-card.wedstrijden h1,
.dashboard-card.mvp h1,
.dashboard-card.spelers h1 {
    font-size: 1.35rem;
}

/* The dashboard's period links should behave like two small cards. */
.dashboard-card .row > a {
    display: block;
}
.dashboard-card .row > a > .col-12 col-lg-6 {
    width: 100%;
    padding-left: .5rem;
    padding-right: .5rem;
}
.dashboard-card .row > a h2 {
    padding: .75rem;
    margin: 0 !important;
    border: 1px solid var(--app-border);
    border-radius: .75rem;
    background: #f8fafc;
}


/* Mobile table behaviour
   Tables use the full available width first. A horizontal scrollbar is only
   produced when the actual content cannot fit; it is not forced by a
   desktop-sized min-width. */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.table-responsive > .table {
    width: 100%;
    max-width: 100%;
}
@media (max-width: 767.98px) {
    .table-responsive > .table {
        margin-bottom: 0;
    }

    .table-responsive > .table th,
    .table-responsive > .table td {
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
        vertical-align: middle;
    }

    /* Compact cells give 3–5 column tables room to fit on phones. */
    .table-responsive > .table th,
    .table-responsive > .table td {
        padding: .55rem .5rem;
    }

    .team-table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto;
    }

    .team-table > tbody > tr:not(.team-section-row) > th,
    .team-table > tbody > tr:not(.team-section-row) > td {
        padding: .55rem .5rem;
    }

    .team-table .team-section-row > td {
        padding: .8rem .6rem .55rem;
    }

    .team-table .team-section-row + tr > * {
        white-space: normal !important;
    }

    .team-action-cell,
    .team-action-head {
        width: 42px !important;
        min-width: 42px !important;
    }

    /* Dashboard tables should never create a scrollbar merely because a
       desktop table width was inherited. */
    .dashboard-card .table-responsive > .table {
        min-width: 0 !important;
        table-layout: fixed;
    }

    .dashboard-card .table th,
    .dashboard-card .table td {
        white-space: normal !important;
        overflow-wrap: anywhere;
        padding: .55rem .4rem;
    }
}
@media (max-width: 420px) {
    .table-responsive > .table th,
    .table-responsive > .table td {
        padding: .48rem .35rem;
        font-size: .88rem;
    }

    .team-table .team-section-row h3 {
        font-size: 1rem;
    }
}


/* Shared tile component: all selection pages use this exact component. */
.team-selection-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}
.team-selection-grid > [class*="col-"] {
    display: flex;
    min-width: 0;
}
.team-selection-grid .team-selection-card {
    width: 100%;
    min-width: 0;
}
.team-selection-card {
    box-sizing: border-box;
}
@media (max-width: 767.98px) {
    .team-selection-grid {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    .team-selection-card {
        min-height: 96px;
        padding: 1rem 1.1rem;
        gap: .8rem;
    }
    .team-selection-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
    .team-selection-name {
        font-size: 1.1rem;
    }
}
@media (max-width: 420px) {
    .team-selection-card {
        min-height: 88px;
        padding: .85rem 1rem;
    }
    .team-selection-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }
    .team-selection-name {
        font-size: 1rem;
    }
}


/* -------------------------------------------------------------------------
   Dashboard v2
   KPI's and panels are deliberately separate. Tables sit visually inside
   the page rather than looking like white floating boxes.
   ------------------------------------------------------------------------- */
.dashboard-page {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.dashboard-kpi-grid,
.dashboard-content-grid {
    margin-left: 0;
    margin-right: 0;
}

.dashboard-kpi {
    min-height: 150px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    padding: 1.25rem;
    text-align: center;
    text-decoration: none;
    color: var(--app-ink);
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(229,234,241,.9);
    border-radius: 1rem;
    box-shadow: 0 7px 20px rgba(23,32,51,.045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-kpi:hover {
    color: var(--app-ink);
    transform: translateY(-2px);
    border-color: rgba(59,171,236,.3);
    box-shadow: 0 11px 26px rgba(23,32,51,.075);
}
.dashboard-kpi-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: .35rem;
    border-radius: .7rem;
    color: var(--app-primary);
    background: #FFF8CC;
    font-size: .85rem;
}
.dashboard-kpi-label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}
.dashboard-kpi-value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--app-primary);
}
.dashboard-kpi-inactive .dashboard-kpi-value {
    color: #ef4444;
}
.dashboard-kpi-online .dashboard-kpi-value {
    color: #16a34a;
}
.dashboard-kpi-note {
    font-size: .78rem;
    color: var(--app-muted);
}
.dashboard-kpi-matches {
    cursor: default;
}

.dashboard-content-grid {
    margin-top: .15rem;
}

.dashboard-panel {
    height: 100%;
    padding: 1.1rem 1.15rem;
    background: rgba(255,255,255,.28);
    border: 1px solid rgba(229,234,241,.72);
    border-radius: 1rem;
}
.dashboard-panel-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 42px;
    margin-bottom: .75rem;
    text-align: center;
}
.dashboard-panel-heading h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 750;
    letter-spacing: -.015em;
    color: var(--app-ink);
}
.dashboard-panel-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    border-radius: .65rem;
    font-size: .8rem;
}
.dashboard-panel-icon-warning {
    color: #d97706;
    background: #fff7df;
}

.dashboard-period-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .75rem;
}
.dashboard-period-tile {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    padding: .8rem;
    text-align: center;
    text-decoration: none;
    color: var(--app-ink);
    background: rgba(255,255,255,.5);
    border: 1px solid rgba(229,234,241,.8);
    border-radius: .8rem;
}
.dashboard-period-tile:hover {
    color: var(--app-ink);
    border-color: rgba(59,171,236,.3);
}
.dashboard-period-icon {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    margin-bottom: .15rem;
    border-radius: .6rem;
    color: var(--app-primary);
    background: #FFF8CC;
    font-size: .78rem;
}
.dashboard-period-name {
    font-size: .9rem;
    font-weight: 700;
}
.dashboard-period-tile strong {
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--app-primary);
}
.dashboard-danger {
    color: #ef4444 !important;
}

/* Dashboard tables are intentionally transparent: they should recede into
   the page instead of looking like white cards placed on top of it. */
.dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}
.dashboard-table {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0;
    background: transparent !important;
    border: 0 !important;
    table-layout: fixed;
}
.dashboard-table > :not(caption) > * > * {
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid rgba(203,213,225,.48);
    padding: .5rem .4rem;
}
.dashboard-table thead th {
    color: var(--app-ink);
    font-size: .78rem;
    font-weight: 750;
    border-bottom-color: rgba(148,163,184,.35) !important;
}
.dashboard-table tbody td {
    font-size: .84rem;
}
.dashboard-table tbody tr:last-child td {
    border-bottom: 0;
}
.dashboard-table th,
.dashboard-table td {
    text-align: center;
    overflow-wrap: anywhere;
}

/* Remove old dashboard component rules from influencing the new markup. */
.dashboard-page .dashboard-card {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .dashboard-kpi {
        min-height: 135px;
    }
}
@media (max-width: 575.98px) {
    .dashboard-page {
        padding-left: .15rem;
        padding-right: .15rem;
    }
    .dashboard-kpi {
        min-height: 122px;
        padding: 1rem;
    }
    .dashboard-kpi-icon {
        width: 34px;
        height: 34px;
    }
    .dashboard-kpi-value {
        font-size: 1.45rem;
    }
    .dashboard-panel {
        padding: .9rem;
    }
    .dashboard-period-grid {
        gap: .6rem;
    }
    .dashboard-period-tile {
        min-height: 105px;
    }
}


/* Login/register tabs: flex navigation instead of a table.
   This prevents the tiny horizontal scrollbar that could appear on narrow
   screens because the table border/box sizing exceeded its parent by pixels. */
.auth-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--app-border);
    border-radius: .9rem;
    background: rgba(255,255,255,.78);
}
.auth-tabs .linkindex {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: .85rem .5rem;
    margin: 0;
    text-align: center;
    text-decoration: none !important;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}
.auth-tabs .linkindex + .linkindex {
    border-left: 1px solid var(--app-border);
}
@media (max-width: 575.98px) {
    .auth-tabs .linkindex {
        padding: .75rem .35rem;
        font-size: 1.05rem;
    }
}


/* Dashboard final layout correction.
   The KPI cards are deliberately explicit so generic link styles can never
   collapse them into inline content. */
.dashboard-page .dashboard-kpi {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 142px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}
.dashboard-page .dashboard-kpi > span {
    display: block;
    width: auto;
    max-width: 100%;
}
.dashboard-page .dashboard-kpi-icon {
    display: grid !important;
    place-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}
.dashboard-page .dashboard-kpi-label,
.dashboard-page .dashboard-kpi-value,
.dashboard-page .dashboard-kpi-note {
    text-align: center !important;
}
.dashboard-page .dashboard-content-grid {
    align-items: stretch;
}
.dashboard-page .dashboard-panel {
    box-sizing: border-box;
}
.dashboard-page .dashboard-table-wrap {
    overflow-x: auto;
}
.dashboard-page .dashboard-matches-table {
    table-layout: fixed;
}
.dashboard-page .dashboard-matches-table th:first-child,
.dashboard-page .dashboard-matches-table td:first-child {
    width: 24%;
}
.dashboard-page .dashboard-matches-table th:last-child,
.dashboard-page .dashboard-matches-table td:last-child {
    width: 24%;
}
.dashboard-empty {
    color: var(--app-muted);
    padding: 1rem !important;
}
@media (max-width: 1199.98px) {
    .dashboard-page .dashboard-kpi {
        min-height: 132px !important;
    }
}
@media (max-width: 575.98px) {
    .dashboard-page .dashboard-kpi {
        min-height: 116px !important;
    }
    .dashboard-page .dashboard-matches-table {
        table-layout: auto;
    }
    .dashboard-page .dashboard-matches-table th,
    .dashboard-page .dashboard-matches-table td {
        white-space: normal !important;
    }
}


/* Dropdown indicator
   Bootstrap 5 normally supplies a caret via .dropdown-toggle::after.
   Give it an explicit, slightly larger chevron so it remains visible with
   the site's navigation typography and custom theme. */
.navbar .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
}
.navbar .dropdown-toggle::after {
    display: inline-block !important;
    width: .48rem !important;
    height: .48rem !important;
    margin: 0 0 .18rem .15rem !important;
    vertical-align: middle !important;
    content: "" !important;
    border: 0 !important;
    border-right: 1.5px solid currentColor !important;
    border-bottom: 1.5px solid currentColor !important;
    transform: rotate(45deg) !important;
    transition: transform .15s ease;
}
.navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(225deg) !important;
    margin-bottom: -.05rem !important;
}


/* Consistent select dropdown indicator */
.form-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-repeat: no-repeat !important;
    background-position: right .85rem center !important;
    background-size: .65rem .65rem !important;
    padding-right: 2.5rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 5.8 8 10.6l4.8-4.8' fill='none' stroke='%233babea' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") !important;
}
.form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 5.8 8 10.6l4.8-4.8' fill='none' stroke='%233babea' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.8'/%3E%3C/svg%3E") !important;
}


/* Global table design
   Tables are information layers, not floating cards: transparent body,
   understated headers and separators, no zebra striping or shadow. */
.app-table-wrap,
.team-table-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

table.table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: rgba(255,255,255,.38);
    --bs-table-border-color: rgba(148,163,184,.28);
    width: 100%;
    margin-bottom: 0;
    background: transparent !important;
    border: 0 !important;
    color: var(--app-ink);
}

table.table > :not(caption) > * > * {
    background: transparent !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-color: rgba(148,163,184,.28) !important;
}

table.table > thead > tr > th,
table.table > tbody > tr > th {
    background: rgba(255,255,255,.34) !important;
    color: var(--app-ink);
    border-top: 0 !important;
    border-bottom: 1px solid rgba(148,163,184,.38) !important;
    font-size: .76rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

table.table > tbody > tr > td {
    border-bottom: 1px solid rgba(148,163,184,.24) !important;
}

table.table > tbody > tr:last-child > td,
table.table > tbody > tr:last-child > th {
    border-bottom: 0 !important;
}

table.table.table-striped > tbody > tr:nth-of-type(odd) > *,
table.table.table-striped > tbody > tr:nth-of-type(even) > * {
    background: transparent !important;
}

table.table.table-hover > tbody > tr:hover > * {
    background: rgba(255,255,255,.38) !important;
}

.app-table-wrap > table,
.team-table-card > .table-responsive > table,
.table-responsive > table.table {
    border-radius: 0 !important;
    overflow: hidden;
}

.app-table-wrap > table thead th,
.team-table-card > .table-responsive > table thead th {
    background: rgba(255,255,255,.34) !important;
}

@media (max-width: 767.98px) {
    table.table > thead > tr > th,
    table.table > tbody > tr > th {
        font-size: .68rem;
        letter-spacing: .025em;
    }
}


/* FINAL: identical Bootstrap tile grid spacing on every selection page. */
.team-selection-grid {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}
.team-selection-grid > [class*="col-"] {
    min-width: 0;
}
.team-selection-grid .team-selection-card {
    width: 100%;
}
@media (max-width: 767.98px) {
    .team-selection-grid {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}


/* UNIVERSAL DATA TABLE CARD STYLE
   All regular Bootstrap data tables share the same quiet, layered appearance:
   page background -> subtle panel -> white table surface. */
.table-responsive:has(> table.table):not(:has(> table.team-table)) {
    width: 100%;
    padding: 1.1rem;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(248,250,252,.72);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
}

.table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table {
    width: 100%;
    margin: 0 !important;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: .9rem;
    box-shadow: 0 8px 22px rgba(23,32,51,.055);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table > :not(caption) > * > * {
    border-bottom: 1px solid #e8edf2;
    background: transparent;
    vertical-align: middle;
}

.table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table > thead > tr > th {
    background: #f7f9fb;
    color: #475569;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
    padding: .72rem .8rem;
    border-bottom: 1px solid #dfe6ed;
}

.table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table > tbody > tr > td,
.table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table > tbody > tr > th {
    padding: .72rem .8rem;
}

.table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table > tbody > tr:last-child > * {
    border-bottom: 0;
}

.table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table > tbody > tr:hover > * {
    background: #FFFDF0;
}

/* Stand/period navigation tables are navigation, not data tables. */
.table-responsive:has(> table.table-striped.table-bordered):not(:has(> table.table)) {
    background: transparent;
    border: 0;
    padding: 0;
}

@media (max-width: 767.98px) {
    .table-responsive:has(> table.table):not(:has(> table.team-table)) {
        padding: .7rem;
        border-radius: .85rem;
    }

    .table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table {
        border-radius: .75rem;
        font-size: .84rem;
    }

    .table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table > thead > tr > th {
        padding: .62rem .55rem;
        font-size: .66rem;
    }

    .table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table > tbody > tr > td,
    .table-responsive:has(> table.table):not(:has(> table.team-table)) > table.table > tbody > tr > th {
        padding: .65rem .55rem;
        overflow-wrap: anywhere;
    }
}

/* Tables that are not inside .table-responsive. */
table.table:not(.team-table):not(.dashboard-table) {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: .9rem;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 8px 22px rgba(23,32,51,.055);
    overflow: hidden;
}

table.table:not(.team-table):not(.dashboard-table) > thead > tr > th {
    background: #f7f9fb;
    color: #475569;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
}

table.table:not(.team-table):not(.dashboard-table) > :not(caption) > * > * {
    border-bottom-color: #e8edf2;
}


/* Align dashboard and team tables with the universal table surface. */
.dashboard-table-wrap {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}
.dashboard-table {
    background: var(--app-surface) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: .9rem;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 8px 22px rgba(23,32,51,.055);
    overflow: hidden;
}
.dashboard-table > :not(caption) > * > * {
    background: transparent !important;
}
.dashboard-table thead th {
    background: #f7f9fb !important;
}
.dashboard-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.team-table-card {
    padding: 1.1rem;
    background: rgba(248,250,252,.72);
}
.team-table-card .table-responsive {
    border-radius: .9rem;
}
.team-table {
    background: var(--app-surface) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: .9rem;
    box-shadow: 0 8px 22px rgba(23,32,51,.055);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
@media (max-width: 767.98px) {
    .dashboard-table-wrap {
    padding: 0;
}
}


/* LITERAL ALL-TABLE OVERRIDE
   Every table in the application uses the same quiet card/table language.
   This also catches legacy tables that do not have a Bootstrap .table class. */
table {
    width: 100%;
    max-width: 100%;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: .9rem;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 8px 22px rgba(23,32,51,.055);
    overflow: hidden;
}

table > thead > tr > th,
table > tbody > tr > th {
    background: #f7f9fb;
    color: #475569;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .045em;
    border-bottom: 1px solid #dfe6ed;
}

table > :not(caption) > * > * {
    border-bottom: 1px solid #e8edf2;
    background: transparent;
    vertical-align: middle;
}

table > tbody > tr:last-child > * {
    border-bottom: 0;
}

table > tbody > tr:hover > * {
    background: #FFFDF0;
}

/* Keep the existing special team/dashboard tables in the same family. */
table.team-table,
table.dashboard-table {
    box-shadow: 0 8px 22px rgba(23,32,51,.055);
}

@media (max-width: 767.98px) {
    table {
        font-size: .84rem;
    }
    table > thead > tr > th,
    table > tbody > tr > th {
        font-size: .66rem;
        padding: .62rem .55rem;
    }
    table > tbody > tr > td,
    table > tbody > tr > th {
        padding: .65rem .55rem;
        overflow-wrap: anywhere;
    }
}


/* Dashboard: equal three-column rhythm on desktop */
.dashboard-grid > [class*="col-"] {
    min-width: 0;
}
.dashboard-grid .dashboard-panel {
    min-width: 0;
}
.dashboard-grid .dashboard-table-wrap {
    max-width: 100%;
}
@media (min-width: 992px) {
    .dashboard-grid {
        align-items: stretch;
    }
}


/* FINAL UNIVERSAL DATA-TABLE SYSTEM
   All application data tables use one consistent Bootstrap 5-compatible visual language.
   Navigation/tab tables are explicitly excluded. */
.table-responsive:has(> table.table):not(:has(> table.table-navigation)) {
    width: 100%;
    max-width: 100%;
    padding: 1.1rem;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(248,250,252,.72);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
}
.table-responsive:has(> table.table):not(:has(> table.table-navigation)) > table.table {
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    background: var(--app-surface) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: .9rem !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 8px 22px rgba(23,32,51,.055) !important;
}
.table-responsive:has(> table.table):not(:has(> table.table-navigation)) > table.table > thead > tr > th {
    background: #f7f9fb !important;
    color: #475569 !important;
    padding: .72rem .8rem !important;
    border-bottom: 1px solid #dfe6ed !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .045em;
}
.table-responsive:has(> table.table):not(:has(> table.table-navigation)) > table.table > tbody > tr > td,
.table-responsive:has(> table.table):not(:has(> table.table-navigation)) > table.table > tbody > tr > th {
    padding: .72rem .8rem !important;
    border-bottom: 1px solid #e8edf2 !important;
    background: transparent !important;
    vertical-align: middle;
}
.table-responsive:has(> table.table):not(:has(> table.table-navigation)) > table.table > tbody > tr:last-child > * {
    border-bottom: 0 !important;
}
.table-responsive:has(> table.table):not(:has(> table.table-navigation)) > table.table > tbody > tr:hover > * {
    background: #FFFDF0 !important;
}

/* Covers Bootstrap tables that are not inside a responsive wrapper. */
table.table:not(.table-navigation) {
    background: var(--app-surface) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: .9rem !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 8px 22px rgba(23,32,51,.055) !important;
}
table.table:not(.table-navigation) > thead > tr > th {
    background: #f7f9fb !important;
    color: #475569 !important;
    border-bottom: 1px solid #dfe6ed !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .045em;
}
table.table:not(.table-navigation) > :not(caption) > * > * {
    border-bottom-color: #e8edf2 !important;
}
table.table:not(.table-navigation) > tbody > tr:last-child > * {
    border-bottom: 0 !important;
}
table.table:not(.table-navigation) > tbody > tr:hover > * {
    background: #FFFDF0 !important;
}

/* Legacy bare data tables (but not nested mini-tables used inside a data cell). */
table:not(.table):not(.table-navigation):not(.team-table):not(.dashboard-table) {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: .9rem;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 8px 22px rgba(23,32,51,.055);
}
@media (max-width: 767.98px) {
    .table-responsive:has(> table.table):not(:has(> table.table-navigation)) {
        padding: .7rem;
        border-radius: .85rem;
    }
    .table-responsive:has(> table.table):not(:has(> table.table-navigation)) > table.table {
        font-size: .84rem;
        border-radius: .75rem !important;
    }
    .table-responsive:has(> table.table):not(:has(> table.table-navigation)) > table.table > thead > tr > th {
        padding: .62rem .55rem !important;
        font-size: .66rem !important;
    }
    .table-responsive:has(> table.table):not(:has(> table.table-navigation)) > table.table > tbody > tr > td,
    .table-responsive:has(> table.table):not(:has(> table.table-navigation)) > table.table > tbody > tr > th {
        padding: .65rem .55rem !important;
        overflow-wrap: anywhere;
    }
}


/* Consistent dropdown affordance: a compact Bootstrap-style button on the right. */
.select-with-button {
    position: relative;
    width: 100%;
}
.select-with-button > select.form-control,
.select-with-button > select.form-select {
    width: 100%;
    padding-right: 3.25rem !important;
    appearance: none;
    -webkit-appearance: none;
    background-image: none !important;
}
.select-with-button::after {
    content: "⌄";
    position: absolute;
    top: 50%;
    right: .55rem;
    width: 2.05rem;
    height: 2.05rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    background: #eef7fc;
    color: var(--app-primary);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}
.select-with-button:focus-within::after {
    background: #e1f2fb;
    color: var(--app-primary-dark);
}
@media (max-width: 575.98px) {
    .select-with-button::after {
        right: .45rem;
        width: 1.9rem;
        height: 1.9rem;
    }
    .select-with-button > select.form-control,
    .select-with-button > select.form-select {
        padding-right: 3rem !important;
    }
}


/* FINAL TABLE OVERRIDE — browser-safe, no :has() dependency. */
table.table:not(.table-navigation) {
    width: 100% !important;
    margin: 0 !important;
    background: var(--app-surface) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: .9rem !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 8px 22px rgba(23,32,51,.055) !important;
    overflow: hidden;
}
table.table:not(.table-navigation) > thead > tr > th {
    background: #f7f9fb !important;
    color: #475569 !important;
    padding: .72rem .8rem !important;
    border-bottom: 1px solid #dfe6ed !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .045em;
}
table.table:not(.table-navigation) > tbody > tr > td,
table.table:not(.table-navigation) > tbody > tr > th {
    padding: .72rem .8rem !important;
    border-bottom: 1px solid #e8edf2 !important;
    background: transparent !important;
    vertical-align: middle;
}
table.table:not(.table-navigation) > tbody > tr:last-child > td,
table.table:not(.table-navigation) > tbody > tr:last-child > th {
    border-bottom: 0 !important;
}
table.table:not(.table-navigation) > tbody > tr:hover > td,
table.table:not(.table-navigation) > tbody > tr:hover > th {
    background: #FFFDF0 !important;
}
/* Every normal table-responsive gets the subtle background layer. */
.table-responsive > table.table:not(.table-navigation) {
    min-width: 0 !important;
}
.table-responsive > table.table:not(.table-navigation) + * {
    margin-top: 0;
}
@media (max-width: 767.98px) {
    table.table:not(.table-navigation) {
        font-size: .84rem;
        border-radius: .75rem !important;
    }
    table.table:not(.table-navigation) > thead > tr > th {
        padding: .62rem .55rem !important;
        font-size: .66rem !important;
    }
    table.table:not(.table-navigation) > tbody > tr > td,
    table.table:not(.table-navigation) > tbody > tr > th {
        padding: .65rem .55rem !important;
        overflow-wrap: anywhere;
    }
}

/* Dropdown button is an actual element, so it remains visible on mobile browsers. */
.select-with-button {
    position: relative !important;
    width: 100% !important;
}
.select-with-button > select {
    width: 100% !important;
    padding-right: 3.25rem !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: none !important;
}
.select-dropdown-button {
    position: absolute !important;
    z-index: 5 !important;
    top: 50% !important;
    right: .55rem !important;
    width: 2.05rem !important;
    height: 2.05rem !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: .55rem !important;
    background: #eef7fc !important;
    color: var(--app-primary) !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    pointer-events: none !important;
}
.select-with-button::after {
    display: none !important;
}
@media (max-width: 575.98px) {
    .select-dropdown-button {
        right: .45rem !important;
        width: 1.9rem !important;
        height: 1.9rem !important;
        font-size: .95rem !important;
    }
    .select-with-button > select {
        padding-right: 3rem !important;
    }
}


/* =========================================================
   FINAL FIX: no double table surfaces
   .table-responsive is a technical wrapper only. The table
   itself is the single visible card/surface.
   ========================================================= */
.table-responsive:has(> table.table) {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.table-responsive:has(> table.table) > table.table {
    width: 100% !important;
    margin: 0 !important;
}
/* Navigation tabs are not data tables and keep their own appearance. */
.table-responsive:has(> table.table-navigation) {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   SITE-WIDE TABLE SYSTEM — FINAL
   One visual surface per data table, identical everywhere.
   ========================================================= */
table.app-data-table,
table.table:not(.table-navigation):not(.team-mini-table),
table:not(.table-navigation):not(.team-mini-table):not(.auth-tabs table) {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    background: var(--app-surface) !important;
    color: var(--app-ink);
    border: 1px solid var(--app-border) !important;
    border-radius: .9rem !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    box-shadow: 0 8px 22px rgba(23,32,51,.055) !important;
    overflow: hidden;
}

table.app-data-table > thead > tr > th,
table.table:not(.table-navigation):not(.team-mini-table) > thead > tr > th {
    background: #f7f9fb !important;
    color: #475569 !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .045em;
    padding: .72rem .8rem !important;
    border-bottom: 1px solid #dfe6ed !important;
}

table.app-data-table > tbody > tr > td,
table.app-data-table > tbody > tr > th,
table.table:not(.table-navigation):not(.team-mini-table) > tbody > tr > td,
table.table:not(.table-navigation):not(.team-mini-table) > tbody > tr > th {
    padding: .72rem .8rem !important;
    border-bottom: 1px solid #e8edf2 !important;
    background: transparent !important;
    vertical-align: middle;
}

table.app-data-table > tbody > tr:last-child > *,
table.table:not(.table-navigation):not(.team-mini-table) > tbody > tr:last-child > * {
    border-bottom: 0 !important;
}

table.app-data-table > tbody > tr:hover > *,
table.table.table-hover:not(.table-navigation):not(.team-mini-table) > tbody > tr:hover > * {
    background: #FFFDF0 !important;
}

/* Responsive wrapper is never a second card. */
.table-responsive:has(> table.app-data-table),
.table-responsive:has(> table.table:not(.table-navigation)) {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Small supporting tables inside team details are data snippets,
   not cards nested inside the main table. */
table.team-mini-table {
    width: auto !important;
    max-width: 100%;
    margin: .15rem 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border-collapse: collapse !important;
}
table.team-mini-table td,
table.team-mini-table th {
    padding: .1rem .3rem !important;
    border: 0 !important;
    background: transparent !important;
    font-size: .82rem;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    table.app-data-table > thead > tr > th,
    table.table:not(.table-navigation):not(.team-mini-table) > thead > tr > th {
        padding: .62rem .55rem !important;
        font-size: .66rem !important;
    }
    table.app-data-table > tbody > tr > td,
    table.app-data-table > tbody > tr > th,
    table.table:not(.table-navigation):not(.team-mini-table) > tbody > tr > td,
    table.table:not(.table-navigation):not(.team-mini-table) > tbody > tr > th {
        padding: .65rem .55rem !important;
        overflow-wrap: anywhere;
    }
}


/* =========================================================
   UNIFORM CARD GRID — 3 columns on desktop
   ========================================================= */
.team-selection-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100%;
}

.team-selection-grid > [class*="col-"] {
    display: flex !important;
    min-width: 0;
}

@media (min-width: 1200px) {
    .team-selection-grid > .col-xl-4 {
        flex: 0 0 33.333333% !important;
        width: 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .team-selection-grid > .col-md-6 {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}

@media (max-width: 767.98px) {
    .team-selection-grid > .col-12 {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* Final dashboard table normalization: no nested table-card wrapper */
.dashboard-table-wrap {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow-x: auto;
    overflow-y: hidden;
}


/* Final layout correction: keep the shared application container wide enough
   for the intended 3-column card grid. */
.container.app-container {
    width: 100% !important;
    max-width: 1440px !important;
}

/* Dashboard tables: one visual container only (the table itself). */
.dashboard-panel {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}
.dashboard-table-wrap {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.team-selection-grid > .team-selection-col {
    min-width: 0;
    display: flex;
}
@media (min-width: 1200px) {
    .team-selection-grid > .team-selection-col {
        flex: 0 0 33.333333% !important;
        width: 33.333333% !important;
        max-width: 33.333333% !important;
    }
}
@media (min-width: 768px) and (max-width: 1199.98px) {
    .team-selection-grid > .team-selection-col {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}
@media (max-width: 767.98px) {
    .team-selection-grid > .team-selection-col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* Teams table: header and action columns align with the three body columns. */
table.app-data-table.teams-table {
    table-layout: fixed;
}
table.app-data-table.teams-table th:first-child,
table.app-data-table.teams-table td:first-child {
    width: auto;
}
table.app-data-table.teams-table th:nth-child(2),
table.app-data-table.teams-table th:nth-child(3),
table.app-data-table.teams-table td:nth-child(2),
table.app-data-table.teams-table td:nth-child(3) {
    width: 3.25rem;
    white-space: nowrap;
}


/* FINAL: selection pages are exactly 3 columns on desktop */
body .team-selection-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
}
@media (max-width: 1199.98px) {
    body .team-selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 767.98px) {
    body .team-selection-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* CONSISTENT PAGE TITLES
   All page-level h1 headings use the same spacing/alignment. */
h1.page-title {
    margin: 0 0 1.5rem !important;
    line-height: 1.15 !important;
    text-align: center;
}
h1.page-title > a,
h1.page-title > a > i,
h1.page-title > i {
    vertical-align: middle;
}
@media (max-width: 767.98px) {
    h1.page-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
        margin-bottom: 1.25rem !important;
    }
}

/* TEAM PAGE TABLE ALIGNMENT
   Keep the table as one clean surface and make action cells compact. */
.team-composition-table,
.team-composition-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.team-composition-table {
    border: 1px solid var(--app-border, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
}
.team-composition-table td,
.team-composition-table th {
    vertical-align: middle;
}
.team-composition-table .team-action-col,
.team-composition-table .team-action-cell {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center !important;
}
.team-composition-table .team-action-cell a {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
}
.team-composition-table .team-action-cell i {
    font-size: 15px !important;
    line-height: 1;
}
.team-composition-table .team-name-cell {
    text-align: left !important;
}
.team-composition-table .team-elftal-cell,
.team-composition-table .team-value-cell {
    text-align: center !important;
}
@media (max-width: 767.98px) {
    .team-composition-table .team-action-col,
    .team-composition-table .team-action-cell {
        width: 34px !important;
        min-width: 34px !important;
        max-width: 34px !important;
        padding-left: 2px !important;
        padding-right: 2px !important;
    }
    .team-composition-table .team-action-cell a {
        width: 24px;
        height: 24px;
    }
    .team-composition-table .team-action-cell i {
        font-size: 13px !important;
    }
}

/* FINAL PUBLIC TEAM TABLE TUNING
   Three content columns + two compact icon columns. */
.team-table.team-composition-table {
    table-layout: fixed !important;
    width: 100% !important;
}
.team-table.team-composition-table > tbody > tr > th:nth-child(1),
.team-table.team-composition-table > tbody > tr > td:nth-child(1) {
    width: 42%;
}
.team-table.team-composition-table > tbody > tr > th:nth-child(2),
.team-table.team-composition-table > tbody > tr > td:nth-child(2) {
    width: 27%;
}
.team-table.team-composition-table > tbody > tr > th:nth-child(3),
.team-table.team-composition-table > tbody > tr > td:nth-child(3) {
    width: 21%;
}
.team-table.team-composition-table > tbody > tr > th:nth-child(4),
.team-table.team-composition-table > tbody > tr > td:nth-child(4),
.team-table.team-composition-table > tbody > tr > th:nth-child(5),
.team-table.team-composition-table > tbody > tr > td:nth-child(5) {
    width: 5%;
    min-width: 34px;
    max-width: 40px;
    padding: .45rem .15rem !important;
    text-align: center !important;
}
.team-table.team-composition-table .team-action-cell a {
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    background: transparent !important;
}
.team-table.team-composition-table .team-action-cell a:hover {
    background: #FFF8CC !important;
    border-radius: .35rem !important;
}
.team-table.team-composition-table .team-action-cell i {
    font-size: .82rem !important;
}
.team-table.team-composition-table .team-section-row > td {
    text-align: center !important;
}
.team-table.team-composition-table > tbody > tr:not(.team-section-row) > th:nth-child(1),
.team-table.team-composition-table > tbody > tr:not(.team-section-row) > td:nth-child(1) {
    text-align: center !important;
}
@media (max-width: 767.98px) {
    .team-table.team-composition-table > tbody > tr > th:nth-child(1),
    .team-table.team-composition-table > tbody > tr > td:nth-child(1) {
        width: 38%;
    }
    .team-table.team-composition-table > tbody > tr > th:nth-child(2),
    .team-table.team-composition-table > tbody > tr > td:nth-child(2) {
        width: 28%;
    }
    .team-table.team-composition-table > tbody > tr > th:nth-child(3),
    .team-table.team-composition-table > tbody > tr > td:nth-child(3) {
        width: 20%;
    }
    .team-table.team-composition-table > tbody > tr > th:nth-child(4),
    .team-table.team-composition-table > tbody > tr > td:nth-child(4),
    .team-table.team-composition-table > tbody > tr > th:nth-child(5),
    .team-table.team-composition-table > tbody > tr > td:nth-child(5) {
        width: 7%;
        min-width: 28px;
        max-width: 32px;
        padding: .35rem .05rem !important;
    }
    .team-table.team-composition-table .team-action-cell a {
        width: 22px !important;
        height: 22px !important;
    }
    .team-table.team-composition-table .team-action-cell i {
        font-size: .75rem !important;
    }
}

/* TEAM TABLE — FINAL COLUMN ALIGNMENT
   One shared column grid for every position section.
   Action columns are only as wide as the controls. */
.team-table.team-composition-table {
    width: 100% !important;
    table-layout: fixed !important;
}
.team-table.team-composition-table col.team-col-action {
    width: 34px !important;
}
.team-table.team-composition-table col.team-col-name {
    width: 40% !important;
}
.team-table.team-composition-table col.team-col-team {
    width: 28% !important;
}
.team-table.team-composition-table col.team-col-value {
    width: auto !important;
}
.team-table.team-composition-table .team-action-cell,
.team-table.team-composition-table .team-action-head {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    padding: .35rem 0 !important;
    text-align: center !important;
}
.team-table.team-composition-table .team-action-cell a {
    display: inline-flex !important;
    width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    margin: 0 !important;
    align-items: center;
    justify-content: center;
}
.team-table.team-composition-table .team-action-cell i {
    font-size: .78rem !important;
}
.team-table.team-composition-table > tbody > tr:not(.team-section-row) > th:nth-child(1),
.team-table.team-composition-table > tbody > tr:not(.team-section-row) > td:nth-child(1),
.team-table.team-composition-table > tbody > tr:not(.team-section-row) > th:nth-child(2),
.team-table.team-composition-table > tbody > tr:not(.team-section-row) > td:nth-child(2),
.team-table.team-composition-table > tbody > tr:not(.team-section-row) > th:nth-child(3),
.team-table.team-composition-table > tbody > tr:not(.team-section-row) > td:nth-child(3) {
    text-align: center !important;
}
@media (max-width: 767.98px) {
    .team-table.team-composition-table col.team-col-action {
        width: 28px !important;
    }
    .team-table.team-composition-table .team-action-cell,
    .team-table.team-composition-table .team-action-head {
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        padding: .25rem 0 !important;
    }
    .team-table.team-composition-table .team-action-cell a {
        width: 20px !important;
        height: 20px !important;
    }
    .team-table.team-composition-table .team-action-cell i {
        font-size: .7rem !important;
    }
}


/* MATCH RESULT FORM — compact, consistent admin styling */
.match-result-page {
    width: 100%;
    max-width: 560px;
    margin: 1.5rem auto 2.25rem;
}
.match-result-form {
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow);
    padding: 1.5rem 1.75rem;
}
.match-result-field + .match-result-field {
    margin-top: 1.35rem;
}
.match-result-label {
    margin-bottom: .7rem;
    font-weight: 750;
    text-align: left;
}
.match-result-options {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}
.match-result-option {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    padding: .45rem .8rem;
    border: 1px solid var(--app-border);
    border-radius: .65rem;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.match-result-option:hover {
    border-color: rgba(59,171,236,.45);
    background: #f2f9fd;
}
.match-result-option input {
    margin: 0;
    accent-color: var(--app-primary);
}
.match-result-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--app-border);
}
.match-result-actions .btn {
    min-width: 132px;
    padding: .65rem 1.1rem;
}
@media (max-width: 575.98px) {
    .match-result-page {
        margin-top: 1rem;
        padding: 0 .15rem;
    }
    .match-result-form {
        padding: 1.15rem;
    }
    .match-result-options {
        gap: .45rem;
    }
    .match-result-option {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 38px;
        padding: .4rem .65rem;
    }
}


/* FINAL: consistent spacing and alignment for page form action buttons.
   Keep the existing button size; only the action group gets breathing room. */
form center:has(> .btn.btn-lg) {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
}
form center:has(> .btn.btn-lg) > .btn.btn-lg {
    margin-top: 0;
}

@media (max-width: 575.98px) {
    form center:has(> .btn.btn-lg) {
        margin-top: 1.25rem;
    }
}


/* Page headings stay independent of the selection-card grid. */
.page-header {
    width: 100%;
    display: block;
}
.page-header-inner {
    width: 100%;
    display: block;
}
.page-header h1.page-title {
    width: 100%;
    display: block;
    text-align: center !important;
}


/* Deelnemers: delete action uses the same blue action color as edit. */
.participant-status-table .participant-delete-action {
    color: #F2C300 !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.participant-status-table .participant-delete-action:hover,
.participant-status-table .participant-delete-action:focus {
    color: #DCAE00 !important;
    background: transparent !important;
    text-decoration: none !important;
}
.participant-status-table .participant-delete-action i {
    color: inherit !important;
}

/* ========================================================================
   MIJN TEAM — canonical layout
   Keep all team-specific table rules in this single block. Do not add
   later overrides for .team-position-table; that was the source of the
   column/header overlap on desktop and mobile.
   ======================================================================== */
.team-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    min-width: 0;
}

.team-page .team-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.team-page .team-stat {
    min-width: 0;
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--app-surface, #fff);
    border: 1px solid var(--app-border, #e5eaf1);
    border-radius: 1rem;
    box-shadow: var(--app-shadow, 0 10px 30px rgba(23,32,51,.07));
}

.team-page .team-stat-formation { justify-content: flex-start; }
.team-page .team-stat-label {
    color: var(--app-muted, #6b7280);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}
.team-page .team-stat-value {
    margin-left: auto;
    color: var(--app-ink, #172033);
    font-size: 1.35rem;
    font-weight: 800;
    white-space: nowrap;
}
.team-page .team-stat-formation .team-stat-value { display: inline-flex; align-items: center; }

.team-page .team-stat-icon,
.team-page .team-budget-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: .75rem;
    color: #F2C300;
    background: #FFF8CC;
}

.team-page .team-edit-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: .4rem;
    border-radius: .65rem;
    color: #F2C300;
    background: #FFF8CC;
    text-decoration: none;
}
.team-page .team-edit-link:hover,
.team-page .team-edit-link:focus {
    color: #DCAE00;
    background: #FFEF9A;
}

.team-page .team-positions-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.team-page .team-position-card {
    min-width: 0;
    min-height: 246px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--app-surface, #fff);
    border: 1px solid var(--app-border, #e2e8f0);
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(23,32,51,.07);
}

.team-page .team-position-header {
    min-width: 0;
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .75rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--app-border, #e2e8f0);
}
.team-page .team-position-header h2 {
    margin: 0;
    color: var(--app-ink, #172033);
    font-size: 1rem;
    font-weight: 800;
}
.team-page .team-position-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #F2C300;
    background: transparent;
    font-size: 1.05rem;
}

.team-page .team-position-table-wrap {
    flex: 1 1 auto;
    min-width: 0;
    padding: .7rem;
}

/* The colgroup is authoritative. Five columns = 100%; four columns when
   actions are disabled = 100%. This prevents the browser/Bootstrap from
   squeezing Points and Actions into the same visual space. */
.team-page table.team-position-table {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    table-layout: fixed !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: 1px solid #dfe7ef !important;
    border-radius: .85rem !important;
    background: #fff !important;
    overflow: hidden !important;
}

/* Desktop/tablet: enough room for both action buttons and a readable Points
   heading. */
.team-page table.team-position-table col.team-col-name    { width: 27% !important; }
.team-page table.team-position-table col.team-col-team    { width: 20% !important; }
.team-page table.team-position-table col.team-col-value   { width: 18% !important; }
.team-page table.team-position-table col.team-col-points  { width: 14% !important; }
.team-page table.team-position-table col.team-col-actions { width: 21% !important; }

.team-page table.team-position-table.team-no-actions col.team-col-name   { width: 38% !important; }
.team-page table.team-position-table.team-no-actions col.team-col-team   { width: 24% !important; }
.team-page table.team-position-table.team-no-actions col.team-col-value  { width: 22% !important; }
.team-page table.team-position-table.team-no-actions col.team-col-points { width: 16% !important; }

.team-page table.team-position-table > thead > tr > th,
.team-page table.team-position-table > tbody > tr > td {
    box-sizing: border-box !important;
    min-width: 0 !important;
    vertical-align: middle !important;
}

/* Blue table header. */
.team-page table.team-position-table > thead > tr > th {
    height: 44px !important;
    padding: .55rem .45rem !important;
    background: #F2C300 !important;
    color: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #DCAE00 !important;
    text-align: center !important;
    font-size: .67rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}
.team-page table.team-position-table > thead > tr > th:first-child {
    border-top-left-radius: .8rem !important;
}
.team-page table.team-position-table > thead > tr > th:last-child {
    border-top-right-radius: .8rem !important;
}

.team-page table.team-position-table > tbody > tr > td {
    height: 48px !important;
    padding: .5rem .4rem !important;
    background: #fff !important;
    color: var(--app-ink, #172033) !important;
    border: 0 !important;
    border-bottom: 1px solid #e4eaf0 !important;
    text-align: center !important;
    font-size: .86rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.team-page table.team-position-table > tbody > tr:last-child > td {
    border-bottom: 0 !important;
}

.team-page .team-points-cell,
.team-page .team-points-value {
    white-space: nowrap !important;
}
.team-page .team-points-value { font-weight: 700 !important; }

/* Actions are a real column, never positioned over Points. */
.team-page table.team-position-table.team-has-actions th:last-child,
.team-page table.team-position-table.team-has-actions td.team-actions-cell {
    width: 21% !important;
    min-width: 92px !important;
    max-width: 21% !important;
    padding: .3rem .25rem !important;
    overflow: visible !important;
    white-space: nowrap !important;
}
.team-page .team-actions-cell .team-actions-inner {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    overflow: visible !important;
    white-space: nowrap !important;
}
.team-page .team-actions-inner > a {
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: .55rem !important;
    text-decoration: none !important;
}
.team-page .team-actions-inner > a i {
    display: block !important;
    line-height: 1 !important;
    font-size: .85rem !important;
}
.team-page .team-action-edit {
    color: #F2C300 !important;
    background: transparent !important;
}
.team-page .team-action-edit:hover,
.team-page .team-action-edit:focus {
    color: #DCAE00 !important;
    background: #FFF8CC !important;
}
.team-page .team-action-delete {
    color: #dc3545 !important;
    background: #fff0f2 !important;
}
.team-page .team-action-delete i { color: #dc3545 !important; }
.team-page .team-action-delete:hover,
.team-page .team-action-delete:focus,
.team-page .team-action-delete:active {
    color: #b02a37 !important;
    background: #ffe2e6 !important;
}
.team-page .team-action-delete:hover i,
.team-page .team-action-delete:focus i,
.team-page .team-action-delete:active i { color: #b02a37 !important; }
.team-page .team-action-add {
    color: #F2C300 !important;
    background: #FFF8CC !important;
}
.team-page .team-action-add:hover,
.team-page .team-action-add:focus {
    color: #DCAE00 !important;
    background: #FFEF9A !important;
}

.team-page .team-player-row-clickable { cursor: pointer; }
.team-page .team-player-row-clickable:hover > td { background: #FFFDF0 !important; }
.team-page .team-empty-row td,
.team-page .team-add-row td { height: 56px !important; }

.team-page .team-budget-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1rem;
    overflow: hidden;
    background: var(--app-surface, #fff);
    border: 1px solid var(--app-border, #e2e8f0);
    border-radius: 1rem;
    box-shadow: 0 10px 28px rgba(23,32,51,.07);
}
.team-page .team-budget-item {
    min-width: 0;
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.1rem;
    border-right: 1px solid var(--app-border, #e2e8f0);
}
.team-page .team-budget-item:last-child { border-right: 0; }
.team-page .team-budget-label {
    color: #526b88;
    white-space: nowrap;
}
.team-page .team-budget-item strong {
    margin-left: auto;
    color: var(--app-ink, #172033);
    font-size: 1rem;
    white-space: nowrap;
}
.team-page .team-budget-item .team-budget-remaining { color: #14833b; }

@media (max-width: 767.98px) {
    .team-page .team-summary {
        grid-template-columns: 1fr;
        gap: .85rem;
    }
    .team-page .team-stat {
        min-height: 78px;
        padding: .8rem 1rem;
    }
    .team-page .team-stat-icon,
    .team-page .team-budget-icon {
        width: 34px;
        height: 34px;
    }
    .team-page .team-positions-grid {
        grid-template-columns: 1fr;
        gap: .85rem;
    }
    .team-page .team-position-card { min-height: 0; }
    .team-page .team-position-header {
        min-height: 52px;
        padding: .65rem .8rem;
    }
    .team-page .team-position-table-wrap { padding: .55rem; }

    /* Mobile still keeps five distinct columns. The action column is wide
       enough for edit/delete, while Points gets enough width for its header. */
    .team-page table.team-position-table col.team-col-name    { width: 27% !important; }
    .team-page table.team-position-table col.team-col-team    { width: 18% !important; }
    .team-page table.team-position-table col.team-col-value   { width: 16% !important; }
    .team-page table.team-position-table col.team-col-points  { width: 14% !important; }
    .team-page table.team-position-table col.team-col-actions { width: 25% !important; }

    .team-page table.team-position-table.team-no-actions col.team-col-name   { width: 35% !important; }
    .team-page table.team-position-table.team-no-actions col.team-col-team   { width: 23% !important; }
    .team-page table.team-position-table.team-no-actions col.team-col-value  { width: 22% !important; }
    .team-page table.team-position-table.team-no-actions col.team-col-points { width: 20% !important; }

    .team-page table.team-position-table > thead > tr > th {
        height: 42px !important;
        padding: .5rem .2rem !important;
        font-size: .6rem !important;
        letter-spacing: .025em !important;
    }
    .team-page table.team-position-table > tbody > tr > td {
        height: 46px !important;
        padding: .48rem .18rem !important;
        font-size: .8rem !important;
    }
    .team-page table.team-position-table.team-has-actions th:last-child,
    .team-page table.team-position-table.team-has-actions td.team-actions-cell {
        width: 25% !important;
        min-width: 76px !important;
        max-width: 25% !important;
        padding-left: .1rem !important;
        padding-right: .1rem !important;
    }
    .team-page .team-actions-cell .team-actions-inner { gap: 3px !important; }
    .team-page .team-actions-inner > a {
        flex-basis: 25px !important;
        width: 25px !important;
        min-width: 25px !important;
        height: 25px !important;
        min-height: 25px !important;
        border-radius: .5rem !important;
    }
    .team-page .team-actions-inner > a i { font-size: .72rem !important; }

    .team-page .team-budget-card {
        grid-template-columns: 1fr;
        margin-top: .85rem;
    }
    .team-page .team-budget-item {
        min-height: 70px;
        border-right: 0;
        border-bottom: 1px solid var(--app-border, #e2e8f0);
    }
    .team-page .team-budget-item:last-child { border-bottom: 0; }
}

@media (max-width: 420px) {
    .team-page table.team-position-table > thead > tr > th {
        font-size: .56rem !important;
        padding-left: .12rem !important;
        padding-right: .12rem !important;
    }
    .team-page table.team-position-table > tbody > tr > td {
        font-size: .76rem !important;
    }
    .team-page table.team-position-table col.team-col-name    { width: 26% !important; }
    .team-page table.team-position-table col.team-col-team    { width: 17% !important; }
    .team-page table.team-position-table col.team-col-value   { width: 16% !important; }
    .team-page table.team-position-table col.team-col-points  { width: 15% !important; }
    .team-page table.team-position-table col.team-col-actions { width: 26% !important; }
}

/* ADMIN TEAM PAGES — use the canonical public/team.php presentation */
.admin-team-page .team-section-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:1rem!important;width:100%!important}
.admin-team-page .team-section-card{min-width:0!important;background:#fff!important;border:1px solid #e2e8f0!important;border-radius:14px!important;overflow:hidden!important;box-shadow:0 8px 24px rgba(23,32,51,.06)!important}
.admin-team-page .team-section-card-header{display:flex!important;align-items:center!important;gap:.65rem!important;padding:.85rem 1rem!important;background:#fff!important;color:#0f172a!important;font-weight:800!important;border-bottom:1px solid #e2e8f0!important}
.admin-team-page .team-section-card-header i{color:#F2C300!important}
.admin-team-page .team-section-table{width:100%!important;table-layout:fixed!important;margin:0!important}
.admin-team-page .team-section-table thead th{background:#F2C300!important;color:#fff!important;border:0!important}
.admin-team-page .team-section-table th:nth-child(4),.admin-team-page .team-section-table td:nth-child(4){width:15%!important;min-width:72px!important}
.admin-team-page .team-actions{display:flex!important;justify-content:center!important;align-items:center!important;gap:.35rem!important}
.admin-team-page .team-action-cell a{width:28px!important;height:28px!important;flex:0 0 28px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.admin-team-page .participant-delete-action{color:#dc3545!important}
@media(max-width:767.98px){.admin-team-page .team-section-grid{grid-template-columns:1fr!important;gap:.85rem!important}}

/* Admin opstelling: table header alignment */
.app-data-table .app-table-header th{
    background:#F2C300!important;
    color:#fff!important;
    font-weight:700!important;
    border-color:#F2C300!important;
    vertical-align:middle!important;
}
.app-data-table .app-table-header th:nth-child(1){width:43%!important}
.app-data-table .app-table-header th:nth-child(2){width:25%!important}
.app-data-table .app-table-header th:nth-child(3){width:20%!important}
.app-data-table .app-table-header th:nth-child(4){width:12%!important}
.app-data-table td:nth-last-child(-n+2){
    width:42px;
    white-space:nowrap;
}
@media(max-width:575.98px){
    .app-data-table .app-table-header th:nth-child(1){width:38%!important}
    .app-data-table .app-table-header th:nth-child(2){width:27%!important}
    .app-data-table .app-table-header th:nth-child(3){width:20%!important}
    .app-data-table .app-table-header th:nth-child(4){width:15%!important}
}

/* =========================================================
   Admin punten-toekennen teamselectie
   Eén duidelijke layout; geen Bootstrap row/col interference.
   ========================================================= */
.selection-page{
    width:100%;
    max-width:1260px;
    margin:0 auto;
    min-width:0;
}
.selection-page-header{
    text-align:left;
    margin:1.5rem 0 1.75rem;
}
.selection-page-header h1{
    margin:0;
    color:var(--app-ink);
    font-size:clamp(1.9rem,3vw,2.35rem);
    font-weight:800;
    letter-spacing:-.035em;
}
.selection-page-header h1 .fa-info-circle{
    color:var(--app-primary);
    margin-left:.2rem;
}
.selection-page-rule{
    width:400px;
    max-width:100%;
    height:2px;
    margin-top:1rem;
    background:#b9c1ca;
}
.selection-team-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:24px!important;
    width:100%!important;
}
.selection-team-grid .team-selection-col{
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    display:block!important;
}
.selection-team-grid .team-selection-card{
    min-height:100px;
    width:100%!important;
    box-sizing:border-box;
    padding:1.1rem 1.35rem;
}
.selection-team-grid .team-selection-name{
    font-size:1.15rem;
}
@media(max-width:1199.98px){
    .selection-page{max-width:100%}
    .selection-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:767.98px){
    .selection-page-header{margin:1.25rem 0 1.25rem}
    .selection-team-grid{grid-template-columns:1fr!important;gap:16px!important}
    .selection-page-rule{width:100%}
}

/* Admin player-selection pages */
.admin-selection-page .selection-page-header {
    margin-bottom: 1.75rem;
}
.admin-selection-page .selection-page-header h1 {
    margin: 0;
    color: var(--app-ink);
    font-size: clamp(1.9rem, 3vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -.035em;
}
.admin-selection-page .selection-page-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1 12%, #cbd5e1 88%, transparent);
    margin-top: 1rem;
}
.admin-selection-page .team-selection-grid {
    margin-left: 0;
    margin-right: 0;
}
.admin-selection-page .team-selection-col {
    display: flex;
}
.admin-selection-page .team-selection-card {
    width: 100%;
}

.player-selection-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}
.player-selection-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.player-selection-card {
    min-width: 0;
    overflow: hidden;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 1rem;
    box-shadow: var(--app-shadow);
}
.player-selection-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--app-border);
}
.player-selection-card-header h2 {
    margin: 0;
    color: var(--app-ink);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.015em;
    text-align: center;
}
.team-tabs {
    display: flex;
    gap: .25rem;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--app-border);
    background: #f8fafc;
}
.team-tab {
    flex: 1 1 0;
    min-width: 110px;
    padding: .65rem .7rem;
    border-radius: .65rem;
    color: #475569;
    text-align: center;
    font-size: .92rem;
    font-weight: 750;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.team-tab:hover {
    color: var(--app-primary-dark);
    background: #FFF8CC;
}
.team-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--app-primary), var(--app-primary-dark));
}
.player-list-row,
.selected-player-row {
    min-height: 48px;
    display: grid;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1rem;
    border-bottom: 1px solid #edf0f3;
}
.player-list-row {
    grid-template-columns: minmax(0, 1fr) 36px;
}
.player-list-row:last-child,
.selected-player-row:last-child {
    border-bottom: 0;
}
.player-list-row:hover,
.selected-player-row:hover {
    background: #FFFDF0;
}
.player-list-name,
.selected-player-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.player-add-button,
.player-delete-button {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: end;
    border-radius: .55rem;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.player-add-button {
    color: var(--app-primary);
    background: #FFF8CC;
}
.player-add-button:hover {
    color: var(--app-primary-dark);
    background: #FFEF9A;
    transform: translateY(-1px);
}
.player-delete-button {
    color: #dc3545;
    background: #fff0f1;
}
.player-delete-button:hover {
    color: #b42332;
    background: #ffe0e3;
    transform: translateY(-1px);
}
.selected-player-row {
    grid-template-columns: minmax(0, 1fr) minmax(90px, .35fr) 36px;
}
.selected-player-team {
    color: #64748b;
    text-align: left;
    white-space: nowrap;
    font-size: .9rem;
}
.selected-player-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1rem;
    background: #f8fafc;
    border-top: 1px solid var(--app-border);
    font-size: .9rem;
}
.selected-player-total strong {
    color: var(--app-ink);
    font-size: 1rem;
}
.player-selection-confirm {
    display: flex;
    justify-content: center;
    margin: 1.25rem 0 0;
}
@media (max-width: 767.98px) {
    .player-selection-grid {
        grid-template-columns: 1fr;
    }
    .team-tabs {
        flex-direction: column;
    }
    .team-tab {
        flex-basis: auto;
    }
}
@media (max-width: 479.98px) {
    .selected-player-row {
        grid-template-columns: minmax(0, 1fr) 36px;
    }
    .selected-player-team {
        display: none;
    }
}


/* =========================================================
   VV Stedum — final black/yellow overrides
   ========================================================= */
:root{
    --app-primary:#f2c300;
    --app-primary-dark:#111111;
    --app-secondary:#111111;
    --app-accent:#f2c300;
    --app-accent-soft:#fff8cc;
    --app-nav:#0b0b0b;
}

/* Navigation: black, with a clear yellow active state */
.navbar.fixed-top,
.navbar.bg-dark{
    background:#0b0b0b!important;
    border-bottom:3px solid #f2c300!important;
    box-shadow:0 6px 24px rgba(0,0,0,.18)!important;
}
.navbar .navbar-brand,
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus{
    color:#fff!important;
}
.brand-with-logo{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:.6rem!important;
    height:100%!important;
}
.nav-club-logo{
    width:40px!important;
    height:40px!important;
    object-fit:contain!important;
    display:block!important;
    flex:0 0 40px!important;
    border:0!important;
    border-radius:0!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    /* One subtle contour follows the PNG alpha/transparency. */
    filter:drop-shadow(0 0 1px #f2c300)!important;
}
.navbar .nav-link{
    color:#fff!important;
    background:transparent!important;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus{
    color:#f2c300!important;
    background:rgba(242,195,0,.10)!important;
}
.navbar #currentpage,
.navbar #currentpage:hover,
.navbar #currentpage:focus,
.navbar .nav-link.active,
.navbar .nav-link.active:hover,
.navbar .nav-link.active:focus{
    color:#111!important;
    background:#f2c300!important;
}
.navbar .dropdown-menu{
    border-top:3px solid #f2c300!important;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.navbar .dropdown-item#currentpage{
    color:#111!important;
    background:#fff8cc!important;
}

/* Yellow separators — exactly one footer separator */
hr{
    border:0!important;
    border-top:1px solid #f2c300!important;
    opacity:1!important;
}
.page-header-rule,
.selection-page-rule{
    background:#f2c300!important;
    height:1px!important;
}
.site-footer{
    border-top:0!important;
}
.site-footer .footer-line{
    display:block!important;
    height:1px!important;
    width:100%!important;
    margin-bottom:.85rem!important;
    background:#f2c300!important;
    border:0!important;
    opacity:1!important;
}

/* Tables */
.table thead th,
.table-header,
.team-section-table thead th{
    background:#f2c300!important;
    color:#111!important;
}
.table-hover>tbody>tr:hover>*{
    --bs-table-hover-bg:#fff8cc!important;
}

/* Primary controls */
.btn-primary,
.btn.btn-primary{
    --bs-btn-color:#111;
    --bs-btn-bg:#f2c300;
    --bs-btn-border-color:#f2c300;
    --bs-btn-hover-color:#111;
    --bs-btn-hover-bg:#dcae00;
    --bs-btn-hover-border-color:#dcae00;
    --bs-btn-active-color:#111;
    --bs-btn-active-bg:#dcae00;
    --bs-btn-active-border-color:#dcae00;
}
.form-control:focus,
.form-select:focus{
    border-color:#f2c300!important;
    box-shadow:0 0 0 .2rem rgba(242,195,0,.22)!important;
}

/* Other active tabs/pills */
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active{
    color:#111!important;
    background:#f2c300!important;
}
.nav-tabs .nav-link:hover{
    color:#111!important;
    background:#fff8cc!important;
}

/* Selection cards */
.team-selection-card:hover,
.team-tab.is-active{
    border-color:#f2c300!important;
}
.team-tab.is-active{
    color:#111!important;
    background:#f2c300!important;
}
.team-selection-arrow,
.player-add-button{
    color:#b38b00!important;
}
.player-add-button{
    background:#fff8cc!important;
}
.player-add-button:hover{
    background:#ffef9a!important;
}

/* Destructive actions stay red */
.btn-danger,
.btn-danger i,
.team-page .team-action-delete,
.team-page .team-action-delete i{
    color:#dc3545!important;
}

@media(max-width:767.98px){
    .brand-with-logo{gap:.45rem!important}
    .nav-club-logo{
        width:34px!important;
        height:34px!important;
        flex-basis:34px!important;
    }
}

/* =========================================================
   Login page — final alignment and controls
   ========================================================= */
.auth-page{
    width:100%;
    max-width:760px;
    margin:0 auto!important;
    padding:0!important;
}
.auth-page .auth-logo-row{
    margin-left:0!important;
    margin-right:0!important;
    margin-bottom:2.25rem!important;
}
.auth-page .auth-logo-column,
.auth-page .auth-form-column{
    margin-left:auto!important;
    margin-right:auto!important;
}
.auth-page .auth-logo-column img{
    display:block!important;
    width:180px!important;
    max-width:55%!important;
    height:auto!important;
    margin:0 auto!important;
}
.auth-page .auth-form-column{
    width:100%!important;
    max-width:640px!important;
}
.auth-page .auth-tabs{
    margin-bottom:.6rem!important;
}
.auth-page #showhide{
    color:#f2c300!important;
}
.auth-page #showhide:hover,
.auth-page #showhide:focus{
    color:#b38b00!important;
}
.auth-page .input-group-text{
    background:#fff!important;
}
.auth-page .auth-form-column .site-footer{
    margin-top:2.5rem!important;
}

/* Do not add another separator underneath the footer. */
.auth-page .site-footer hr,
.auth-page .site-footer > hr,
.auth-page .site-footer .footer-line + .footer-line{
    display:none!important;
}

@media(max-width:767.98px){
    .auth-page{
        max-width:100%;
    }
    .auth-page .auth-logo-row{
        margin-bottom:1.75rem!important;
    }
    .auth-page .auth-logo-column img{
        width:145px!important;
        max-width:48%!important;
    }
}

/* =========================================================
   MVP tables — remove the outer "table inside a card" effect.
   The data table itself is the single visual surface.
   ========================================================= */
.mvp-table-wrap{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow-x:auto;
    overflow-y:hidden;
}
.mvp-table-wrap > table.app-data-table{
    margin:0!important;
    width:100%!important;
}


/* Final confirmation-modal corrections */
#confirm-delete .modal-content { overflow:hidden; }
#confirm-delete .modal-header { justify-content:center!important; text-align:center!important; }
#confirm-delete .modal-header h3 { width:100%!important; margin:0!important; text-align:center!important; }
#confirm-delete .modal-body { text-align:center!important; }
#confirm-delete .modal-footer { justify-content:flex-end!important; gap:.5rem!important; }
#confirm-delete .modal-footer .btn-ok,
#confirm-delete .modal-footer .btn-ok:hover,
#confirm-delete .modal-footer .btn-ok:focus,
#confirm-delete .modal-footer .btn-ok:active { color:#fff!important; background-color:#dc3545!important; border-color:#dc3545!important; text-decoration:none!important; }
#confirm-delete .modal-footer .btn-secondary { color:#fff!important; }

/* Navigation logo — final authoritative styling.
   The PNG remains transparent; a single 1px alpha-based drop shadow
   creates a subtle yellow contour around the actual shield silhouette. */
.navbar .brand-with-logo{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    height:100%!important;
    line-height:1!important;
}
.navbar .brand-with-logo .nav-club-logo{
    width:40px!important;
    height:40px!important;
    flex:0 0 40px!important;
    display:block!important;
    object-fit:contain!important;
    border:0!important;
    border-radius:0!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    filter:drop-shadow(0 0 1px #f2c300)!important;
}
@media(max-width:767.98px){
    .navbar .brand-with-logo .nav-club-logo{
        width:34px!important;
        height:34px!important;
        flex-basis:34px!important;
    }
}


/* Index/register logo: true viewport-column centering */
.auth-logo-row{
    width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    display:flex!important;
    justify-content:center!important;
}
.auth-logo-row .auth-logo-column{
    width:100%!important;
    max-width:none!important;
    flex:0 0 100%!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:0!important;
    padding-right:0!important;
    text-align:center!important;
}
.auth-logo-row .auth-logo-column img{
    display:block!important;
    margin-left:auto!important;
    margin-right:auto!important;
}


/* v13 final fixes: registration parity + admin opstelling colors */
/* Registration uses the same centered geometry as the login page. */
.auth-page .auth-form-column{
    width:100%!important;
    max-width:640px!important;
    flex:0 0 100%!important;
    margin-left:auto!important;
    margin-right:auto!important;
}
.auth-page .auth-logo-row{
    width:100%!important;
    display:flex!important;
    justify-content:center!important;
}
.auth-page .auth-logo-column{
    width:100%!important;
    max-width:none!important;
    flex:0 0 100%!important;
    padding-left:0!important;
    padding-right:0!important;
}

/* Admin opstelling: use black/yellow, never Bootstrap blue, for action icons. */
.admin-opstelling-page a:not(.btn),
.admin-opstelling-page a:not(.btn) i{
    color:#f2c300!important;
}
.admin-opstelling-page a:not(.btn):hover,
.admin-opstelling-page a:not(.btn):hover i,
.admin-opstelling-page a:not(.btn):focus,
.admin-opstelling-page a:not(.btn):focus i{
    color:#111111!important;
}
.admin-opstelling-page .fa-trash{
    color:#dc3545!important;
}
.admin-opstelling-page .fa-trash:hover{
    color:#b42332!important;
}
.admin-opstelling-page h1.page-title > a,
.admin-opstelling-page h1.page-title > a > i{
    color:#f2c300!important;
}
.admin-opstelling-page > header hr{
    display:block!important;
    height:1px!important;
    margin:0 0 5px!important;
    background:#f2c300!important;
    border:0!important;
    opacity:1!important;
}



/* =========================================================
   FINAL RESPONSIVE TABLE CLEANUP
   ========================================================= */

/* Page separators are structural elements, not styled <hr> tags. */
.page-header-rule {
    height: 1px !important;
    margin-top: 1rem !important;
    background: #f2c300 !important;
    border: 0 !important;
}
.app-section-rule {
    margin-bottom: 5px !important;
}

/* Player-team mobile table: preserve a readable value/action column. */
.speler-team-table {
    table-layout: fixed !important;
}
.speler-team-table th,
.speler-team-table td {
    min-width: 0 !important;
}
.speler-team-table th:last-child,
.speler-team-table td:last-child {
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}
@media (max-width: 767.98px) {
    .speler-team-table th:first-child,
    .speler-team-table td:first-child {
        width: 58% !important;
    }
    .speler-team-table th:nth-child(2),
    .speler-team-table td:nth-child(2) {
        width: 12% !important;
    }
    .speler-team-table th:last-child,
    .speler-team-table td:last-child {
        width: 30% !important;
        text-align: right !important;
    }
}

/* MVP: pagination follows the table instead of a forced full-height row. */
.mvp-page,
.mvp-page > .row,
.mvp-page .mvp-table-wrap,
.mvp-page .mvp-table-wrap > table {
    height: auto !important;
    min-height: 0 !important;
}
.mvp-page .app-pagination {
    margin-top: .75rem !important;
    margin-bottom: 1.25rem !important;
}
.mvp-page .mvp-table-wrap {
    display: block !important;
    flex: none !important;
}

/* MVP mobile: rankings 10, 11, 12, ... stay on one line. */
@media (max-width: 767.98px) {
    .mvp-page table.app-data-table {
        table-layout: fixed !important;
    }
    .mvp-page table.app-data-table > thead > tr > th:first-child,
    .mvp-page table.app-data-table > tbody > tr > td:first-child {
        width: 13% !important;
        min-width: 2.6rem !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
    .mvp-page table.app-data-table > thead > tr > th:nth-child(2),
    .mvp-page table.app-data-table > tbody > tr > td:nth-child(2) {
        width: 72% !important;
        white-space: nowrap !important;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .mvp-page table.app-data-table > thead > tr > th:last-child,
    .mvp-page table.app-data-table > tbody > tr > td:last-child {
        width: 15% !important;
        min-width: 2.6rem !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}


/* v17 global black/yellow action-icon cleanup */
/* Legacy Bootstrap/Font Awesome links can retain the default blue link color.
   Keep icons in tables/action areas black or yellow across admin and public pages. */
.app-data-table td > a:not(.btn) > i,
.app-data-table th > a:not(.btn) > i,
.app-table-wrap td > a:not(.btn) > i,
.app-table-wrap th > a:not(.btn) > i,
.table td > a:not(.btn) > i,
.table th > a:not(.btn) > i {
    color:#f2c300!important;
}

.app-data-table td > a:not(.btn):hover > i,
.app-data-table td > a:not(.btn):focus > i,
.app-table-wrap td > a:not(.btn):hover > i,
.app-table-wrap td > a:not(.btn):focus > i,
.table td > a:not(.btn):hover > i,
.table td > a:not(.btn):focus > i {
    color:#111111!important;
}

/* Delete/remove icons remain the one intentional exception. */
.app-data-table td > a[data-bs-target="#confirm-delete"] > i,
.app-data-table td > a[href*="delete"] > i,
.app-table-wrap td > a[data-bs-target="#confirm-delete"] > i,
.app-table-wrap td > a[href*="delete"] > i,
.table td > a[data-bs-target="#confirm-delete"] > i,
.table td > a[href*="delete"] > i {
    color:#dc3545!important;
}


/* v18: restore full-width selection tiles */
/* Some older selection pages use .team-selection-col without Bootstrap
   col-* classes. Make those grid items stretch so the cards keep their
   intended full column width. */
.team-selection-grid > .team-selection-col {
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    display:flex!important;
}

.team-selection-grid > .team-selection-col > .team-selection-card {
    width:100%!important;
    min-width:0!important;
}

.page-title .fa-info-circle,
.selection-page-header h1 .fa-info-circle {
    color:#f2c300!important;
}


/* v18.1: selection-page separator must span the complete content width.
   The old 400px limit caused the yellow line on punten_team_selecteren.php
   to stop after the first column. */
.selection-page .selection-page-rule {
    width: 100% !important;
    max-width: none !important;
    height: 1px !important;
    margin-top: 1rem !important;
    background: #f2c300 !important;
}
