/* ============================================================
   Ligaspielplan Admin-Styles
   Tabs und Pool: aus pokalauslosung.css wiederverwendet.
   ============================================================ */

/* ── Tab-Status-Indikatoren ─────────────────────────────── */
.lm-tab-check {
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
}
.lm-tab-warn {
    color: #d63638;
    font-size: 11px;
    font-weight: 700;
}

/* ── Spielplan-Liste ────────────────────────────────────── */
.lm-sp-liste {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: fit-content;
    min-width: 280px;
}

.lm-sp-spieltag {
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.lm-sp-spieltag-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #2271b1;
    color: #fff;
    padding: 6px 12px;
    font-weight: 600;
    font-size: 13px;
}

.lm-sp-spieltag-datum {
    font-weight: normal;
    font-size: 12px;
    opacity: .85;
}

.lm-sp-paarungen {
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* ── Einzelne Paarung ───────────────────────────────────── */
.lm-sp-paarung {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    border-bottom: 1px solid #f0f0f1;
    min-height: 40px;
}
.lm-sp-paarung:last-child { border-bottom: none; }

.lm-sp-paarung.lm-sp-selecting {
    background: #fff9e6;
    outline: 2px solid #dba617;
}

.lm-sp-slot {
    padding: 8px 12px;
    font-size: 13px;
    color: #1d2327;
    transition: background .25s, color .25s;
    white-space: nowrap;
}

.lm-sp-slot--heim { text-align: right; border-right: 1px solid #e2e4e7; }
.lm-sp-slot--gast { text-align: left; }

.lm-sp-slot.lm-slot-besetzt { background: #f0f6fc; }
.lm-sp-slot.lm-slot-freilos { background: #f6f7f7; color: #888; font-style: italic; }
.lm-sp-slot.lm-slot-neu     { background: #e6f4ea !important; transition: background 1s; }

.lm-sp-vs {
    padding: 0 10px;
    font-size: 11px;
    color: #888;
    flex-shrink: 0;
}

.lm-sp-team-name { display: block; }

/* ── Edit-Buttons ──────────────────────────────────────── */
.lm-sp-edit-btns {
    display: none;
    gap: 4px;
    padding: 0 6px;
    flex-shrink: 0;
}
.lm-sp-paarung:hover .lm-sp-edit-btns { display: flex; }

.lm-sp-btn-swap-hg,
.lm-sp-btn-swap-pair {
    border: 1px solid #c3c4c7;
    background: #fff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    padding: 2px 5px;
    color: #3c434a;
    transition: background .15s;
}
.lm-sp-btn-swap-hg:hover   { background: #e8f0fe; }
.lm-sp-btn-swap-pair:hover { background: #fff3cd; }
.lm-sp-btn-swap-pair.active { background: #dba617; color: #fff; border-color: #dba617; }

/* ── Regeln ────────────────────────────────────────────── */
.lm-sp-regel-liste {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.lm-sp-regel-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}
.lm-sp-regel-row input { margin-top: 2px; flex-shrink: 0; }

/* ── Fly-Chip (identisch zu Pokalauslosung) ─────────────── */
.lm-fly-chip {
    position: fixed;
    z-index: 9999;
    background: #2271b1;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* ── Constraint-Tabelle ────────────────────────────────── */
#lm-sp-constraint-table td { vertical-align: middle; }
#lm-sp-constraint-table select,
#lm-sp-constraint-table input[type=number] {
    max-width: 100%;
    width: 100%;
}
