@font-face {
    font-family: 'NexaLight';
    src: url('../fonts/nexaLight/nexalight.eot');
    src: url('../fonts/nexaLight/nexalight.eot') format('embedded-opentype'), url('../fonts/nexaLight/nexalight.woff2') format('woff2'), url('../fonts/nexaLight/nexalight.woff') format('woff'), url('../fonts/nexaLight/nexalight.ttf') format('truetype'), url('../fonts/nexaLight/nexalight.svg#NexaLightRegular') format('svg');
}

@font-face {
    font-family: 'NexaBold';
    src: url('../fonts/nexaBold/nexabold.eot');
    src: url('../fonts/nexaBold/nexabold.eot') format('embedded-opentype'), url('../fonts/nexaBold/nexabold.woff2') format('woff2'), url('../fonts/nexaBold/nexabold.woff') format('woff'), url('../fonts/nexaBold/nexabold.ttf') format('truetype'), url('../fonts/nexaBold/nexabold.svg#NexaLightRegular') format('svg');
}

/* ── VCM Custom Styles ─────────────────────────────────────────────────────── */

.fbLink {
    display: inline-block;
    font-size: 14px;
    color: #424242;
    border-radius: 50%;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #424242;
    margin: 0 5px;
    -webkit-transition: all 0.3s linear;
    -o-transition: all 0.3s linear;
    transition: all 0.3s linear;
    background-color: #305891;
    color: white;
    float: right;
}

    .fbLink:hover {
        color: #a0a0a0;
        border: 1px solid #a0a0a0;
    }

.inscriptionList li {
    margin-bottom: 5px;
}

ul.inscriptionList li {
    padding: 5px 0 0 10px;
    margin-bottom: 0px;
    text-align: left;
    display: list-item;
}

    ul.inscriptionList li a {
        margin-left: 5px;
    }

.comparationTable td {
    border: solid black 1px;
    padding: 5px 0 5px 5px;
}

.textImageFull, .textImageFull2 {
    margin-left: -30px;
}

.imageHeader {
    margin-top: -30px;
    margin-left: -30px;
}

/* ── Result tables ───────────────────────────────────────────────────────── */
.resultTable {
    width: 100%;
    border: solid 1px silver;
    font-size: 12px;
    table-layout: fixed;
}

    .resultTable td {
        padding: 2px 6px;
        border-color: gray;
        background-color: lightblue;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 12px;
    }

        .resultTable td.right {
            text-align: right;
        }

/* Alternating row backgrounds */
.resultTable tr.rt-odd  td { background-color: MistyRose; }
.resultTable tr.rt-even td { background-color: LightYellow; }

/* Header rows */
.resultTableHeader,
.resultTableHeader td {
    background-color: #d92a2b;
    color: beige;
    line-height: 10px;
}

.toPlayTableHeader,
.toPlayTableHeader td {
    background-color: #cf7a03;
    color: beige;
    line-height: 10px;
}

/* Winner, teams, result, points */
.resultTable td.rt-winner               { font-weight: bold; }
.resultTable td.rt-teams                { text-align: left; }
.resultTable td.rt-result               { text-align: center; font-weight: bold; }
.resultTable td.rt-points               { text-align: left; color: #555; }
.resultTable td.rt-score                { white-space: nowrap; }
.resultTable td.rt-score .rt-result     { font-weight: bold; }
.resultTable td.rt-score .rt-points     { color: #666; font-size: 11px; }
.resultTable a                          { color: inherit; }

/* Standings — compact width */
.resultTable-standings                  { width: auto; table-layout: auto; }
.resultTable-standings td,
.resultTable-standings th               { min-width: 32px; text-align: center; }
.resultTable-standings td:first-child,
.resultTable-standings th:first-child   { text-align: left; min-width: 100px; padding-right: 8px; }

/* Standings — left-aligned, constrained width, background extends full row */
.rt-standings-wrap                      { width: 100%; background-color: antiquewhite; }
.rt-standings-wrap .resultTable         { width: 100%; min-width: 320px; }

/* Group label */
.rt-group-label {
    padding: 2px 4px;
    margin-top: 2px;
    font-size: 11px;
    color: #555;
}

/* Disclaimer */
.rt-disclaimer {
    text-align: center;
    font-size: 10px !important;
    line-height: 1.4;
}

/* ── Section headers ─────────────────────────────────────────────────────── */
.section        { margin: 0; padding: 0; }
.section-header { margin-top: 20px; margin-bottom: 4px; }
.section-header h4 { margin-bottom: 2px; }
.section-header hr { margin: 0; }

/* ── Responsive overrides ────────────────────────────────────────────────── */
@media (max-width: 1200px) {
    .textImageFull  { width: 562px; }
    .textImageFull2 { width: 723px; }
    .imageHeader    { width: 400px; }
}

@media (max-width: 480px) {
    .textImageFull, .textImageFull2 { margin-left: 0px; width: 100%; }
    .imageHeader                    { margin-left: 0px; width: 100%; }
}

@media (max-width: 767px) {
    .resultTable, .scheduleGrid {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .container { padding-left: 15px; padding-right: 15px; }

    /* Filter bar — allow buttons to wrap and shrink label */
    #filterBar .filter-buttons  { flex-wrap: wrap; }
    #filterBar .filter-label    { font-size: 11px; padding-right: 6px; width: 44px; }
    .filter-btn                 { flex: 0 1 auto; padding: 4px 6px; font-size: 11px; }
    .filter-input               { font-size: 11px; }

    /* nextGames table — scroll wrapper */
    #nextGamesWrap {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Tighten table cell padding on small screens */
    .resultTable td { padding: 2px 3px; font-size: 11px; }
}

/* ── Filter Bar ──────────────────────────────────────────────────────────── */
#filterBar {
    background-color: #eaeaea;
    padding: 8px 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-bottom: 2px solid #d92a2b;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

#filterBar td { padding: 3px 0; vertical-align: middle; background: transparent; }

#filterBar .filter-label {
    color: #555;
    font-size: 12px;
    font-weight: bold;
    text-align: right;
    padding-right: 10px;
    white-space: nowrap;
    width: 55px;
}

#filterBar .filter-buttons { display: flex; gap: 4px; flex-wrap: nowrap; }

.filter-btn {
    flex: 1 1 0;
    background-color: #fff;
    color: #555;
    border: 2px solid #ccc;
    padding: 5px 0;
    text-align: center;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.filter-btn:hover { background-color: #f5f5f5; color: #333; border-color: #999; }

.filter-btn.active {
    background-color: #fff;
    color: #4169E1;
    font-weight: bold;
    border: 2px solid #4169E1;
}

.filter-input {
    width: 100%;
    padding: 5px 8px;
    font-size: 12px;
    border: 2px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.filter-input:focus { border-color: #4169E1; }

.filter-btn-clear {
    background-color: #fff;
    color: #999;
    border: 2px solid #ccc;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    border-radius: 3px;
    white-space: nowrap;
    box-sizing: border-box;
    margin-left: 4px;
    flex-shrink: 0;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.filter-btn-clear:hover { background-color: #f5f5f5; color: #4169E1; border-color: #4169E1; }

mark.team-match { background-color: #add8f6; color: #000; padding: 0 1px; border-radius: 2px; }

/* ── Venue table ─────────────────────────────────────────────────────────── */
.venueTable { width: 100%; border-collapse: collapse; font-size: 80%; margin-bottom: 10px; }
.venueTable td { padding: 3px 6px; vertical-align: top; background-color: transparent; border: none; }
.venueTable .venue-courts { white-space: nowrap; color: #888; width: 60px; font-size: 90%; }
.venueTable .venue-name { white-space: normal; }
.venueTable .venue-name a { color: #4169E1; text-decoration: none; }
.venueTable .venue-name a:hover { text-decoration: underline; }

/* ── Venue map ───────────────────────────────────────────────────────────── */
.venue-map-wrap { position: relative; width: 100%; padding-bottom: 75%; height: 0; overflow: hidden; }
.venue-map { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* ── Attendance report ───────────────────────────────────────────────────── */
.attR-day, .attR-name:first-child { border-bottom: 2px solid #555; }
.attR-footer, .attR-footer + td, .attR-total.attR-footer-row { border-top: 2px solid #555; }
.attR-header-days td:not(.attR-name), .attR-header-days th:not(.attR-name) { border-bottom: 3px solid #555; }
.attR-footer-row td:not(.attR-name), .attR-footer-row th:not(.attR-name) { border-top: 3px solid #555; }

/* ── Misc ────────────────────────────────────────────────────────────────── */
.wow { opacity: 0; transition: opacity 0.6s ease; }
.wow.fadeIn { opacity: 1; }
.pull-center { display: block; margin: 0 auto; text-align: center; }
.pull-left   { float: left; }
.pull-right  { float: right; margin-right: 0; }
.linkbutton  { -moz-border-radius: 1px; -webkit-border-radius: 1px; border-radius: 1px; -moz-box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.5); -webkit-box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.5); box-shadow: 2px 2px 2px 2px rgba(0,0,0,0.5); background-color: lightgray; border: 2px solid silver; margin: 2px; padding: 2px; text-align: center; }
.hidden      { display: none; }

/* ── Schedule grid ───────────────────────────────────────────────────────── */
.scheduleGrid { width: 100%; border-collapse: collapse; font-size: 10px; margin-bottom: 12px; font-weight: normal; }
.scheduleGrid td, .scheduleGrid th { border: 1px solid #bbb; padding: 2px 3px; text-align: center; vertical-align: middle; font-weight: normal; }
.scheduleGrid tbody tr { height: 10px; }
.scheduleGrid tbody tr:not(:has(.sg-time-minor)) td,
.scheduleGrid tbody tr:not(:has(.sg-time-minor)) th { border-bottom: none; }
.scheduleGrid tbody tr:has(.sg-time-minor) td,
.scheduleGrid tbody tr:has(.sg-time-minor) th       { border-top: none; }
.sg-time-minor { color: transparent; }
.sg-venue  { background: #ddd; font-size: 10px; }
.sg-day    { background: #eee; }
.sg-court  { background: #f5f5f5; color: #555; }
.sg-time   { background: #f9f9f9; color: #888; white-space: nowrap; text-align: right; padding-right: 4px; min-width: 32px; }
.sg-empty  { background: #fff; }
.sg-male   { background: #ADD8E6; color: #333; border: 2px solid #1565C0 !important; }
.sg-female { background: #FFFACD; color: #333; border: 2px solid #F9A800 !important; }
.sg-mix    { background: #90EE90; color: #333; border: 2px solid #2E7D32 !important; }
.sg-ext    { background: #f44336; color: #fff; font-style: italic; border: 2px solid #b71c1c !important; }
.sg-team   { display: block; }
.sg-staff  { display: block; color: #666; }
.sg-day-first { border-left: 2px solid #000 !important; }

/* ── Staff login ─────────────────────────────────────────────────────────── */
#loginBox { display: inline-flex; flex-direction: column; gap: 4px; }
#loginBox input.field  { width: 200px; box-sizing: border-box; }
#loginBox .linkbutton  { width: 200px; box-sizing: border-box; display: block; text-align: center; }

/* ── Container ───────────────────────────────────────────────────────────── */
.container { max-width: 1600px; width: 100%; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
@media (min-width: 1200px) {
    .container { width: 96%; padding-left: 2%; padding-right: 2%; }
}
