/* ════════════════════════════════════════════════════════════
   DoubleEliminationBracket — gedeelde CSS
   Eén keer opnemen in MijnToernooi.master of een aparte .css
   ════════════════════════════════════════════════════════════ */

:root {
    --bk-card: #ffffff;
    --bk-border: #e0e4ea;
    --bk-border2: #c8cdd6;
    --bk-text: #1a2030;
    --bk-muted: #7a8799;
    --bk-green: #22c55e;
}

/* ── Control wrapper ─────────────────────────────────────── */
.de-bracket-ctrl {
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 0px;
    margin-bottom: 24px;
    overflow: hidden;
}

.de-toolbar {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fb;
    border-bottom: 1px solid #e0e4ea;
    align-items: center;
}

.de-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a8799;
    flex: 1;
}

/* ── Scroll-container ────────────────────────────────────── */
.de-outer-fix {
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .de-outer-fix {
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }
}

.de-wrap {
    display: block;
    /*min-width: max-content;*/
    padding: 20px;
    box-sizing: border-box;  /*NIEUW*/
}

.de-scale {
    transform-origin: 0 0;
    display: inline-block;
}

/* ── Legenda ─────────────────────────────────────────────── */
.de-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 14px 10px;
    border-top: 1px solid #e0e4ea;
}

.de-leg {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #7a8799;
}

.de-ldot {
    width: 14px;
    height: 2px;
    border-radius: 1px;
}

/* ── Stage ───────────────────────────────────────────────── */
.bk-stage {
    position: relative;
    overflow: visible;
}

/* ── Wedstrijdkaart ──────────────────────────────────────── */
.bk-mc {
    position: absolute;
    background: #fff;
    border: 0.5px solid #c8cdd6;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /*box-shadow: 0 2px 8px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.06);*/
    box-shadow: 0px 4px 8px rgba(0,0,0,.18);
    animation: bk-fi .2s ease both;
}

.bk-mc {
    box-shadow: 0px 4px 8px rgba(0,0,0,.18);
    transition: all 0.2s ease;
}

/* ── Kaart header ────────────────────────────────────────── */
.mc-header {
    display: flex;
    align-items: flex-start;
    padding: 5px 8px;
    gap: 8px;
    border-bottom: 0.5px solid #e0e4ea;
}

.mc-cat-block {
    width: 36px;
    height: 30px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.mc-header-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 30px;
}

.mc-poulenaam {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.mc-row2 {
    display: flex;
    align-items: center;
    gap: 3px;
}

.mc-veldnaam {
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.mc-veld-icon {
    width: 21px;
    height: 12px;
    flex-shrink: 0;
    opacity: 0.7;
    margin-top:1px;
}

/* ── Kaart body ──────────────────────────────────────────── */
.mc-body {
    display: flex;
    flex-direction: column;
    padding-bottom: 4px;
}

.mc-body-inner {
    display: flex;
    align-items: stretch;
}

.mc-tijd-col {
    width: 36px;
    flex-shrink: 0;
    margin: 0 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mc-tijd {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mc-eindtijd {
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    text-align: center;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.mc-teams {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mc-team {
    display: flex;
    align-items: center;
    padding: 3px 8px 1px 0;
    min-height: 26px;
    gap: 0;
}

.mc-logo-cel {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    overflow: hidden;
}

.mc-logo {
    max-width: 25px;
    max-height: 25px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.mc-team-naam {
    flex: 1;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.mc-score {
    width: 38px;
    flex-shrink: 0;
    height: 18px;
    background: #f0f2f5;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
    padding-bottom: 2px;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    margin-left: 4px;
}

.mc-ps {
    font-size: 13px;
    color: inherit;
    margin-right: auto;
    margin-left: 2px;
    line-height: 1;
    margin-top: 2px;
}

/* ── Bracket labels en lijnen ────────────────────────────── */
.bk-sec-lbl {
    position: absolute;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #7a8799;
    text-align: center;
}

.bk-bracket-lbl {
    position: absolute;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #7a8799;
}

.bk-separator {
    position: absolute;
    border: none;
    border-top: 1px dashed #c8cdd6;
}

.bk-conn-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: visible;
}

@keyframes bk-fi {
    from {
        opacity: 0;
        transform: translateY(3px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ── Gebruik op de pagina ────────────────────────────────────
   <%@ Register TagPrefix="mti" TagName="DEBracket" Src="~/Controls/DoubleEliminationBracket.ascx" %>

   <mti:DEBracket ID="bracket1" runat="server"
       AantalTeams="17"
       ToernooiId="42"
       Titel="Hoofdtoernooi"
       WinnaarLabel="Winners bracket"
       VerliezerLabel="Losers bracket"
       IsoCode="NL"
       MeerdaagsToernooi="true" />

   <mti:DEBracket ID="bracket2" runat="server"
       AantalTeams="9"
       ToernooiId="42"
       Titel="Plaatsingstoernooi" />
   ════════════════════════════════════════════════════════════ */