/* Klubové události (valná hromada, schůze, brigáda…) — ClubEventsPanel, MyClubEventCards. */

.cev-section {
    max-width: 800px;
    margin: 0 auto 1rem auto;
}

.cev-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.cev-card {
    background: #fff;
    border: 1px solid #e3e3e6;
    border-radius: 12px;
    padding: .85rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .75rem;
}

.cev-card.is-mine {
    border: 2px solid #111;
}

.cev-card.is-canceled {
    opacity: .75;
}

.cev-card-head {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    align-items: center;
    font-size: .82rem;
    color: #555;
}

.cev-badge {
    background: #111;
    color: #fff;
    border-radius: 6px;
    padding: 1px 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.cev-badge.is-child {
    background: #fde6f1;
    color: #8a0045;
}

.cev-badge.is-canceled {
    background: #a1001f;
}

.cev-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.cev-meta {
    font-size: .9rem;
    color: #444;
    display: flex;
    flex-wrap: wrap;
    gap: .2rem .9rem;
}

.cev-desc {
    font-size: .9rem;
    color: #333;
    white-space: pre-line;
}

.cev-counts {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .8rem;
    font-size: .85rem;
    font-weight: 600;
}

.cev-c-yes { color: #1d6b35; }
.cev-c-no { color: #a1001f; }
.cev-c-maybe { color: #8a5a00; }
.cev-c-none { color: #555; }

.cev-answer {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: .25rem;
}

.cev-answer-for {
    font-size: .85rem;
    font-weight: 600;
    color: #8a0045;
}

.cev-answer-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.cev-btn-answer {
    min-height: 44px;
    border: 1px solid #cfcfd4;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-weight: 600;
}

.cev-btn-answer.is-yes { background: #1d6b35; border-color: #1d6b35; color: #fff; }
.cev-btn-answer.is-no { background: #a1001f; border-color: #a1001f; color: #fff; }
.cev-btn-answer.is-maybe { background: #8a5a00; border-color: #8a5a00; color: #fff; }

.cev-answer-status {
    font-size: .85rem;
    font-weight: 600;
}

.cev-answer-status.is-yes { color: #1d6b35; }
.cev-answer-status.is-no { color: #a1001f; }
.cev-answer-status.is-maybe { color: #8a5a00; }
.cev-answer-status.is-none { color: #555; }

.cev-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .35rem;
}

.cev-btn {
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid #cfcfd4;
    background: #fff;
    color: #111;
    font-weight: 600;
    padding: .35rem .9rem;
}

.cev-btn.is-primary {
    background: #d6006b;
    border-color: #d6006b;
    color: #fff;
}

.cev-btn.is-dark {
    background: #111;
    border-color: #111;
    color: #fff;
}

.cev-btn.is-danger {
    color: #a1001f;
}

.cev-btn:disabled {
    opacity: .6;
}

.cev-new {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    background: #d6006b;
    color: #fff;
    font-weight: 700;
    margin-bottom: .9rem;
}

/* ── Formulář ─────────────────────────────────────────────── */

.cev-form {
    background: #fff;
    border: 1px solid #e3e3e6;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.cev-form label {
    font-size: .82rem;
    font-weight: 600;
    color: #333;
    margin-bottom: .2rem;
}

.cev-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
}

@media (max-width: 575.98px) {
    .cev-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cev-audience {
    border: 1px solid #cfcfd4;
    border-radius: 10px;
    padding: .75rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.cev-audience.is-on {
    border: 2px solid #d6006b;
}

.cev-check {
    display: flex;
    gap: .6rem;
    align-items: center;
    font-size: .95rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

.cev-check input {
    width: 20px;
    height: 20px;
}

.cev-seg {
    display: flex;
    gap: .25rem;
    background: #e9eaec;
    border-radius: 8px;
    padding: 3px;
}

.cev-seg button {
    flex: 1;
    border: 0;
    border-radius: 6px;
    background: transparent;
    font-size: .85rem;
    padding: .4rem;
    color: #444;
}

.cev-seg button.active {
    background: #fff;
    color: #111;
    font-weight: 700;
}

.cev-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.cev-chip {
    border: 1px solid #cfcfd4;
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .85rem;
    background: #fff;
    color: #111;
    min-height: 34px;
}

.cev-chip.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

.cev-people {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 8px;
}

.cev-person {
    display: flex;
    gap: .6rem;
    align-items: center;
    padding: .45rem .6rem;
    border-bottom: 1px solid #f1f1f3;
    font-size: .9rem;
    margin: 0;
    font-weight: 400 !important;
}

.cev-person small {
    color: #555;
}

.cev-summary {
    background: #111;
    color: #fff;
    border-radius: 10px;
    padding: .7rem .9rem;
}

.cev-summary strong {
    font-size: 1.05rem;
}

.cev-summary div {
    font-size: .85rem;
    color: #d9d9de;
}

.cev-hint {
    font-size: .8rem;
    color: #555;
}

.cev-error {
    color: #a1001f;
    font-weight: 600;
    font-size: .9rem;
}

/* ── Detail pro správce ───────────────────────────────────── */

.cev-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
}

.cev-stat {
    border: 1px solid #e3e3e6;
    border-radius: 10px;
    padding: .5rem;
    text-align: center;
}

.cev-stat b {
    display: block;
    font-size: 1.3rem;
}

.cev-stat span {
    font-size: .75rem;
    color: #444;
}

.cev-rows {
    border: 1px solid #e3e3e6;
    border-radius: 10px;
    padding: 0 .75rem;
}

.cev-row {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid #eee;
    font-size: .9rem;
}

.cev-row:last-child {
    border-bottom: 0;
}

.cev-row small {
    color: #555;
}

.cev-group-line {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
}

/* ══════════════════════════════════════════════════════════════
   Karta klubové události — stejný vzhled jako karta .evc v Moje
   události (sloupec s datem, badge, řádky s ikonami, vpravo „Jdeš?“).
   Samostatné třídy .cevc: nezávisí na stylech a swipe skriptu MyEvents.
   ══════════════════════════════════════════════════════════════ */

.cevc {
    position: relative;
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
    margin: 0 auto 12px auto;
    background: #f9f9f9;
    border: 1px solid #dee2e6;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    overflow: hidden;
}

.cevc.is-past .cevc-row,
.cevc.is-canceled .cevc-row {
    opacity: .6;
}

.cevc-swipe {
    display: flex;
    align-items: stretch;
}

.cevc-face {
    flex: 1 1 auto;
    min-width: 0;
}

.cevc-row {
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.cevc-date {
    width: 74px;
    flex: 0 0 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 10px 0;
    padding: 8px 0;
    border-right: 1px solid #e3e6e9;
}

.cevc-day {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: #212529;
}

.cevc-dow {
    margin-top: 3px;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6c757d;
}

.cevc-month {
    font-size: .68rem;
    color: #6c757d;
}

.cevc-time {
    margin-top: 6px;
    color: #212529;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.1;
}

.cevc-time-line {
    width: 1px;
    height: 14px;
    margin: 3px 0;
    background: #ced4da;
}

.cevc-time-end {
    color: #6c757d;
    font-size: .75rem;
    line-height: 1.15;
    text-align: center;
}

.cevc-main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 10px 10px 14px;
}

.cevc-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.cevc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 10px;
    border: 1.5px solid #dee2e6;
    border-radius: 999px;
    background: #fff;
    color: #212529;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cevc-badge.is-club {
    background: #111;
    border-color: #111;
    color: #fff;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    font-size: .72rem;
}

.cevc-badge.is-kind {
    border-color: #0d6efd;
}

.cevc-badge.is-child {
    border-color: #ff007f;
    color: #a80058;
}

.cevc-badge.is-canceled {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.cevc-title {
    margin: 6px 0 0;
    font-size: .98rem;
    font-weight: 700;
    color: #212529;
    overflow-wrap: anywhere;
}

.cevc-line {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    margin-top: 4px;
    color: #6c757d;
    font-size: .8rem;
}

.cevc-line > i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #ff007f;
    font-size: .85rem;
}

.cevc-line .is-closed {
    color: #dc3545;
    font-weight: 600;
}

.cevc-line .is-open {
    color: #fd7e14;
    font-weight: 600;
}

.cevc-comment {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #eef0f3;
    color: #212529;
    font-size: .85rem;
}

.cevc-comment > i {
    color: #ff007f;
}

.cevc-comment > div {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.cevc-extra {
    border-top: 1px dashed #e3e6e9;
    padding: 8px 12px 10px;
}

/* Sloupec „Jdeš?“ vpravo (PC), pruh pod kartou (mobil) */
.cevc-vote {
    flex: 0 0 84px;
    width: 84px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 0 0 8px 0;
    border-left: 1px solid #dee2e6;
    background: #f9f9f9;
}

.cevc-pill {
    display: block;
    width: 100%;
    min-height: 20px;
    padding: 4px 2px;
    border-radius: 0 13px 0 0;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cevc-pill-sub {
    padding: 0 4px;
    color: #6c757d;
    font-size: 9px;
    text-align: center;
    line-height: 1.2;
}

.cevc-vote-btns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.cevc-vbtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: 9px;
    text-transform: uppercase;
    cursor: pointer;
}

.cevc-vcircle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 2px solid #eee;
    border-radius: 50%;
    background: #fff;
    color: #6c757d;
    font-size: 1.05rem;
    transition: all .2s ease;
}

.cevc-vbtn:hover:not(:disabled) .cevc-vcircle {
    border-color: var(--vc);
    color: var(--vc);
}

.cevc-vbtn:active:not(:disabled) .cevc-vcircle {
    transform: scale(.9);
}

.cevc-vbtn.is-mine .cevc-vcircle {
    border-color: var(--vc);
    color: var(--vc);
    box-shadow: 0 0 12px color-mix(in srgb, var(--vc) 53%, transparent);
}

.cevc-vbtn.is-mine .cevc-vlabel {
    color: #000;
    font-weight: 700;
}

.cevc-vbtn:disabled {
    cursor: wait;
    opacity: .6;
}

@media (max-width: 768px) {
    .cevc-swipe {
        flex-direction: column;
    }

    .cevc-date {
        width: 56px;
        flex-basis: 56px;
    }

    .cevc-day {
        font-size: 1.6rem;
    }

    .cevc-main {
        padding: 8px 8px 8px 10px;
    }

    .cevc-vote {
        width: auto;
        flex: 0 0 auto;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding: 6px 8px;
        border-left: 0;
        border-top: 1px solid #dee2e6;
    }

    .cevc-vote-status {
        flex: 1 1 auto;
        min-width: 0;
    }

    .cevc-pill {
        display: inline-block;
        width: auto;
        max-width: 100%;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 10px;
    }

    .cevc-pill-sub {
        text-align: left;
        padding: 2px 0 0;
    }

    .cevc-vote-btns {
        flex-direction: row;
        gap: 6px;
    }

    .cevc-vbtn {
        width: 52px;
    }
}

/* Patička karty: kalendář a poznámka (jako „Do kalendáře“ u akcí) */
.cevc-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 8px;
    border-top: 1px solid #eef0f3;
}

.cevc-act-wrap {
    position: relative;
}

.cevc-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    background: #fff;
    color: #212529;
    font-size: .8rem;
    font-weight: 600;
}

.cevc-act > i {
    color: #ff007f;
}

.cevc-act.is-on {
    background: #fff0f7;
    border-color: #ff007f;
}

.cevc-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 4px);
    left: 0;
    min-width: 210px;
    padding: 4px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.cevc-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #212529;
    font-size: .85rem;
    text-decoration: none;
}

.cevc-menu a:hover {
    background: #f1f3f5;
}

.cevc-note {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 0 12px 10px;
}

.cevc-note .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

/* Dokumenty a zápis na kartě člena */
.cevc-materials {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px 12px;
}

.cevc-doc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    padding: 8px 10px;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    background: #fff;
    color: #212529;
    text-align: left;
    font-size: .85rem;
}

.cevc-doc > i {
    color: #ff007f;
}

.cevc-doc small {
    color: #6c757d;
}

.cevc-minutes {
    padding: 10px 12px;
    border-radius: 10px;
    background: #eef0f3;
    font-size: .88rem;
}

.cevc-minutes > div {
    margin-top: 4px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Valná hromada / schůze — panel správce */
.cev-asm {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid #e3e3e6;
}

.cev-asm-block {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.cev-asm-title {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.cev-asm-title > i {
    color: #ff007f;
}

.cev-quorum {
    border-radius: 12px;
    padding: .75rem .9rem;
    border: 2px solid #a1001f;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.cev-quorum.is-ok {
    border-color: #1d6b35;
}

.cev-quorum-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
}

.cev-quorum-head strong {
    font-size: 1.4rem;
}

.cev-quorum-bar {
    height: 10px;
    background: #e9eaec;
    border-radius: 999px;
    overflow: hidden;
}

.cev-quorum-bar > div {
    height: 100%;
    background: #a1001f;
}

.cev-quorum.is-ok .cev-quorum-bar > div {
    background: #1d6b35;
}

.cev-quorum-state {
    color: #a1001f;
}

.cev-quorum.is-ok .cev-quorum-state {
    color: #1d6b35;
}

.cev-att-row {
    flex-wrap: wrap;
}

.cev-att-row .cev-check {
    font-weight: 400;
    font-size: .9rem;
}

.cev-proxy {
    max-width: 240px;
}

.cev-upload {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.cev-upload .form-select {
    width: auto;
}

.cev-warn {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    padding: .55rem .75rem;
    border-radius: 10px;
    background: #fff4e5;
    color: #7a4100;
    font-size: .85rem;
}

/* Záložka Dokumenty klubu — využití úložiště */
.cev-storage {
    border: 2px solid #1d6b35;
    border-radius: 12px;
    padding: .75rem .9rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.cev-storage .cev-quorum-bar > div {
    background: #1d6b35;
}

.cev-storage.is-warn {
    border-color: #c25e00;
}

.cev-storage.is-warn .cev-quorum-bar > div {
    background: #c25e00;
}

.cev-storage.is-full {
    border-color: #a1001f;
}

.cev-storage.is-full .cev-quorum-bar > div {
    background: #a1001f;
}

.cev-storage-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: .5rem;
    font-weight: 700;
}

.cev-storage-head i {
    color: #ff007f;
}

.cev-doc-row {
    flex-wrap: wrap;
}

.cev-doc-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ══ Záložka Dokumenty klubu — knihovna souborů ═════════════════ */
.cdl-upload { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cdl-upload-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cdl-label { display: block; font-size: .78rem; font-weight: 600; color: #333; margin-bottom: 2px; }
.cdl-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 96px; padding: 14px; border: 2px dashed #f3a6cd; border-radius: 14px; background: #fff7fb; color: #a80058; cursor: pointer; text-align: center; margin: 0; }
.cdl-drop:hover { background: #fff0f7; border-color: #ff007f; }
.cdl-drop > i { font-size: 1.8rem; }
.cdl-drop small { color: #6c757d; }
.cdl-drop.is-busy { cursor: progress; flex-direction: row; gap: 10px; }
.cdl-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 8px; }
.cdl-search { position: relative; flex: 1 1 220px; max-width: 360px; }
.cdl-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #adb5bd; }
.cdl-search input { padding-left: 34px; border-radius: 10px; }
.cdl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cdl-chips .cev-chip span { margin-left: 4px; font-size: .72rem; opacity: .75; }
.cdl-list { display: flex; flex-direction: column; gap: 8px; }
.cdl-item { display: flex; align-items: flex-start; gap: 12px; background: #fff; border: 1px solid #e3e6e9; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.cdl-icon { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; }
.cdl-main { flex: 1 1 auto; min-width: 0; }
.cdl-name { display: block; border: 0; background: transparent; padding: 0; text-align: left; font-weight: 700; font-size: .95rem; color: #111; text-decoration: none; overflow-wrap: anywhere; }
.cdl-name:hover { color: #d6006b; text-decoration: underline; }
.cdl-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: #6c757d; margin-top: 3px; }
.cdl-meta i { color: #adb5bd; }
.cdl-tag { background: #f1f3f5; color: #495057; border-radius: 999px; padding: 0 8px; font-weight: 600; }
.cdl-actions { display: flex; gap: 4px; flex: 0 0 auto; }
.cdl-actions .cev-btn { min-height: 36px; padding: .25rem .6rem; display: inline-flex; align-items: center; text-decoration: none; }
.cdl-edit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: end; }
.cdl-edit .cev-actions { grid-column: 1 / -1; margin-top: 0; }
.cdl-empty { text-align: center; color: #6c757d; padding: 28px 12px; border: 1px dashed #dee2e6; border-radius: 14px; background: #fff; }
.cdl-empty i { font-size: 2rem; color: #ff007f; display: block; margin-bottom: 4px; }

.cdl-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(17,17,17,.7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cdl-modal-box { background: #fff; border-radius: 14px; width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.cdl-modal-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #e3e6e9; }
.cdl-modal-head strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdl-modal-head .cev-btn { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.cdl-modal-body { flex: 1 1 auto; min-height: 0; background: #f6f6f7; display: flex; align-items: center; justify-content: center; }
.cdl-modal-body img, .cdl-modal-body video { max-width: 100%; max-height: calc(100vh - 120px); display: block; }
.cdl-modal-body iframe { width: 100%; height: calc(100vh - 120px); border: 0; background: #fff; }
.cdl-audio { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 16px; width: 100%; }
.cdl-audio i { font-size: 3rem; color: #d35400; }
.cdl-audio audio { width: min(520px, 100%); }

@media (max-width: 700px) {
    .cdl-upload-fields, .cdl-edit { grid-template-columns: minmax(0, 1fr); }
    .cdl-item { flex-wrap: wrap; }
    .cdl-actions { width: 100%; justify-content: flex-end; }
}

/* ══ Pozvaní na kartě klubové události — stejně jako účastníci v Moje události ══
   (styly MyEvents.razor jsou jen na té stránce, tady platí i v detailu klubu) */
.cevc-detail-toggle { margin-left: auto; }
.cevc .event-detail-toggle { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; padding: 2px 4px; color: #6c757d; font-size: .75rem; font-weight: 600; cursor: pointer; transition: color .15s; }
.cevc .event-detail-toggle:hover { color: #ff007f; }
.cevc .event-detail-toggle i { font-size: .8rem; }

.cevc-people { padding: 4px 12px 10px; border-top: 1px solid #eef0f3; padding-top: 14px; }
.cevc-people-empty { text-align: center; padding: 8px 0 2px; color: #aaa; font-size: .8rem; }
.cevc-people-links { text-align: end; margin-top: 10px; }
.cevc-people-links span { cursor: pointer; font-size: .75rem; opacity: .7; }
.cevc-people-links span:hover { opacity: 1; color: #ff007f; }

.cevc-people .pos-badge { display: inline-flex; align-items: center; gap: 3px; border: 1px solid currentColor; background: transparent; padding: 1px 6px; border-radius: 10px; font-size: .55rem; font-weight: 700; line-height: 1.3; letter-spacing: .2px; text-transform: uppercase; white-space: nowrap; }
.cevc-people .pos-badge .pos-badge-count { opacity: .7; }
.cevc-people .participant-groups { display: flex; flex-direction: column; }
.cevc-people .participant-avatars-row { position: relative; }
.cevc-people .participant-container { position: relative; display: inline-block; }
.cevc-people .participant-container:focus { outline: none; }
.cevc-people .avatar-wrapper { position: relative; display: inline-block; }
.cevc-people .participant-img { border-radius: 50%; background-color: #fff; transition: transform .2s ease-in-out; }
.cevc-people .participant-container:hover .participant-img { transform: translateY(-10px); }
.cevc-people .participant-container:hover .comment-bubble { display: block; }
.cevc-people .participant-container:hover .comment-indicator { display: none; }
.cevc-people .comment-indicator { position: absolute; top: -4px; left: -4px; width: 16px; height: 16px; border-radius: 50%; background-color: #ff007f; color: #fff; border: 2px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 8px; line-height: 1; box-shadow: 0 1px 4px rgba(0,0,0,.35); z-index: 2; pointer-events: none; }
.cevc-people .comment-bubble { display: none; position: absolute; bottom: 50px; left: -15%; background: #FFFACD; padding: 6px 12px; border-radius: 12px; box-shadow: 0 2px 5px rgba(0,0,0,.2); font-size: 14px; line-height: 1.3; box-sizing: border-box; width: max-content; min-width: 80px; max-width: min(300px, 60vw); white-space: normal; overflow-wrap: anywhere; text-align: left; z-index: 10; }
.cevc-people .comment-bubble p { margin: 0; color: #333; }
.cevc-people .comment-bubble i { font-style: italic; font-weight: normal; }
.cevc-people .comment-bubble .bubble-absence { margin-top: 4px; padding-top: 4px; border-top: 1px dashed rgba(0,0,0,.15); font-size: 12px; color: #555; }
.cevc-people .bubble-arrow { position: absolute; bottom: -10px; left: 15px; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid #FFFACD; }

/* Mobil a dotyk: bublina přes celý řádek avatarů, otevírá se klepnutím (fokus) */
@media (max-width: 700px), (hover: none), (pointer: coarse) {
    .cevc-people .participant-avatars-row .participant-container { position: static; display: flex; }
    .cevc-people .participant-avatars-row .comment-bubble { left: 0; right: 0; top: auto; bottom: auto; transform: translateY(calc(-100% - 20px)); width: auto; min-width: 0; max-width: none; padding: 10px; border-radius: 10px; }
    .cevc-people .participant-avatars-row .bubble-arrow { display: none; }
    .cevc-people .participant-avatars-row .participant-container:hover .avatar-wrapper::before,
    .cevc-people .participant-avatars-row .participant-container:focus .avatar-wrapper::before,
    .cevc-people .participant-avatars-row .participant-container:focus-within .avatar-wrapper::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid #FFFACD; z-index: 11; pointer-events: none; }
}
@media (hover: none), (pointer: coarse) {
    .cevc-people .participant-avatars-row .avatar-wrapper { pointer-events: none; }
    .cevc-people .participant-avatars-row .participant-container { cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .cevc-people .participant-avatars-row .comment-bubble { pointer-events: none; }
    .cevc-people .participant-avatars-row .participant-container:focus .participant-img,
    .cevc-people .participant-avatars-row .participant-container:focus-within .participant-img { transform: translateY(-10px); }
    .cevc-people .participant-avatars-row .participant-container:focus .comment-bubble,
    .cevc-people .participant-avatars-row .participant-container:focus-within .comment-bubble { display: block; }
    .cevc-people .participant-avatars-row .participant-container:focus .comment-indicator,
    .cevc-people .participant-avatars-row .participant-container:focus-within .comment-indicator { display: none; }
    .cevc-people .participant-avatars-row .participant-container:hover:not(:focus-within) .comment-bubble { display: none; }
    .cevc-people .participant-avatars-row .participant-container:hover:not(:focus-within) .participant-img { transform: none; }
    .cevc-people .participant-avatars-row .participant-container:hover:not(:focus-within) .avatar-wrapper::before { content: none; }
    .cevc-people .participant-avatars-row .participant-container:hover:not(:focus-within) .comment-indicator { display: flex; }
}

/* Upozornění „nenahrávejte citlivé údaje“ + potvrzení před nahráním */
.cdl-sensitive { display: flex; gap: 10px; align-items: flex-start; background: #fff8e6; border: 1px solid #ffd666; border-left: 4px solid #f0a500; border-radius: 10px; padding: 10px 12px; font-size: .82rem; color: #5c4400; margin: 8px 0; }
.cdl-sensitive > i { font-size: 1.3rem; color: #d48806; line-height: 1; margin-top: 2px; }
.cdl-sensitive .form-check-label { font-weight: 600; color: #3d2e00; }
.cdl-drop.is-locked, .cev-btn.is-locked { opacity: .45; cursor: not-allowed; pointer-events: none; }
.cdl-meta .cdl-confirm { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.cdl-meta .cdl-confirm.is-ok, .cdl-meta .cdl-confirm.is-ok i { color: #198754; }
.cdl-meta .cdl-confirm.is-missing, .cdl-meta .cdl-confirm.is-missing i { color: #b26a00; }

/* ══ Karta správce: menu ⋮ vpravo nahoře (jako v Moje události) ══ */
.cevc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cevc-top .cevc-badges { flex: 1 1 auto; min-width: 0; }
.cevc-menu-wrap { flex: 0 0 auto; margin-left: auto; }
.cevc-menu-wrap .dropdown-menu { max-height: min(70vh, calc(100dvh - 140px)); overflow-y: auto; overscroll-behavior: contain; }
.cevc-menu-wrap .dropdown-item:disabled { opacity: .5; }
/* Karta má overflow: hidden (zaoblení) — při otevřeném menu ho pustí ven. */
.cevc:has(.cevc-menu-wrap .dropdown-menu.show) { overflow: visible; z-index: 30; }

/* Nadpis sekce s tlačítkem „+ Klubová událost“ vpravo */
.cev-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: .6rem; }
.cev-section-head .cev-section-title { margin: 0; }
.cev-section-head .cev-new { width: auto; min-height: 38px; padding: 0 16px; margin: 0; }

/* Formulář v dialogu — bez vlastního rámečku */
.cev-form.cev-form-dialog { border: 0; padding: 0; margin: 0; background: transparent; }

/* ══ Zaškrtávátka a přepínače v klubových událostech a dokumentech — růžově jako jinde v aplikaci ══ */
.cev-form input[type="checkbox"],
.cev-form input[type="radio"],
.cev-check input[type="checkbox"],
.cev-person input[type="checkbox"],
.cev-section input[type="checkbox"],
.cdl-upload input[type="checkbox"],
.cdl-sensitive input[type="checkbox"],
.cev-upload input[type="checkbox"] {
    accent-color: #ff007f;
}
/* Bootstrap .form-check-input (potvrzení citlivých údajů) */
.cdl-sensitive .form-check-input:checked,
.cev-form .form-check-input:checked,
.cev-section .form-check-input:checked {
    background-color: #ff007f;
    border-color: #ff007f;
}
.cdl-sensitive .form-check-input:focus,
.cev-form .form-check-input:focus,
.cev-section .form-check-input:focus {
    border-color: #ff7fbf;
    box-shadow: 0 0 0 .25rem rgba(255, 0, 127, .2);
}

/* Badge s logem a názvem klubu (vedle černého „KLUB“) */
.cevc-badge.is-clubname { padding-left: 4px; max-width: 100%; }
.cevc-badge.is-clubname .em-club-logo { flex: 0 0 auto; } /* zaoblený čtverec jako všude (app.css) */
.cevc-badge.is-clubname span { overflow: hidden; text-overflow: ellipsis; }

/* ══ Štítky na mobilu: jen ikonky, klepnutím název + akce (jako v Moje události) ══ */
.cevc-chip {
    width: 24px; height: 24px; flex: 0 0 24px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0; overflow: hidden;
    border: 1.5px solid #dee2e6; border-radius: 50%;
    background: #fff; color: #6c757d; font-size: .72rem; line-height: 1; cursor: pointer;
}
.cevc-chip.is-open { background: #fff0f7; box-shadow: 0 0 0 2px rgba(255, 0, 127, .15); }
.cevc-chip.is-club { background: #111; border-color: #111; color: #fff; }
.cevc-chip.is-club.is-open { box-shadow: 0 0 0 2px rgba(255, 0, 127, .35); }
.cevc-chip.is-kind { border-color: #0d6efd; }
/* Klub: logo je samo zaoblený čtverec — bez kruhu kolem */
.cevc-chip.is-clublogo { border: none; border-radius: 27%; background: transparent; }
.cevc-chip.is-clublogo.is-open { box-shadow: 0 0 0 2px rgba(255, 0, 127, .35); }

.cevc-badge.is-clubname.is-link { cursor: pointer; }
.cevc-badge.is-clubname.is-link:hover { border-color: #ff007f; }

.cevc-chip-info {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; row-gap: 4px;
    margin-top: 6px; padding: 5px 8px; border-radius: 8px;
    background: #eef0f3; color: #212529; font-size: .78rem;
}
.cevc-chip-info > .cevc-tx { flex: 1 1 auto; white-space: nowrap; }
.cevc-chip-acts { display: inline-flex; gap: 14px; margin-left: auto; white-space: nowrap; }
.cevc-chip-action { color: #ff007f !important; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; }

@media (max-width: 768px) {
    .cevc .cevc-d { display: none !important; }
}
@media (min-width: 769px) {
    .cevc .cevc-m { display: none !important; }
}

/* Název nahoře (jako v Moje události), štítky pod ním */
.cevc-top .cevc-title { margin: 0; flex: 1 1 auto; min-width: 0; padding-top: 4px; }
.cevc-main > .cevc-badges { margin-top: 6px; }

/* ══ Mobil: swipe jako v Moje události ═══════════════════════════════
   Doleva → Jdu / Nejdu / Možná (pruh vpravo pod kartou),
   doprava → Upravit / Prezence / Zrušit (správce, pruh vlevo).
   Ovládá js/event-card-swipe.js (.cevc-swipe). PC beze změny: sloupec vpravo. */
.cevc-admin, .cevc-mstatus { display: none; }

@media (max-width: 768px) {
    .cevc-swipe { position: relative; flex-direction: row; overflow: hidden; }

    .cevc-face {
        position: relative;
        z-index: 2;
        background: #f9f9f9;
        transition: transform .22s ease;
        touch-action: pan-y;
    }
    .cevc-swipe.is-dragging .cevc-face { transition: none; }

    /* Stav odpovědi vpravo na kartě (klepnutí = odkrýt volby) */
    .cevc-row { position: relative; }
    .cevc-mstatus {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        gap: 2px;
        flex: 0 0 auto;
        max-width: 96px;
        padding: 6px 10px 6px 0;
    }
    .cevc-mstatus .cevc-pill {
        display: inline-block;
        width: auto;
        max-width: 96px;
        padding: 4px 10px;
        border-radius: 999px;
        font-size: 10px;
    }
    .cevc-swipe[data-can-vote="1"] .cevc-mstatus .cevc-status { cursor: pointer; }
    .cevc-mstatus .cevc-pill-sub { text-align: right; padding: 0; }

    /* Volby pod kartou vpravo */
    .cevc-vote {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        width: 222px;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        gap: 0;
        padding: 0 0 0 14px;
        border: 0;
        border-radius: 0 14px 14px 0;
        background: #fff;
        box-shadow: inset 8px 0 10px -8px rgba(0, 0, 0, .18);
    }
    .cevc-vote-btns { flex: 1; flex-direction: row; justify-content: space-evenly; gap: 0; }
    .cevc-vbtn { width: 62px; font-size: 10px; font-weight: 600; letter-spacing: .3px; }
    .cevc-vbtn .cevc-vcircle { width: 44px; height: 44px; font-size: 1.1rem; }

    /* Panel správce pod kartou vlevo */
    .cevc-admin {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        display: flex;
        width: 222px;
        padding-right: 14px;
        border-radius: 14px 0 0 14px;
        background: #fff;
        box-shadow: inset -8px 0 10px -8px rgba(0, 0, 0, .18);
    }
    .cevc-admin-btns { display: flex; flex: 1; align-items: center; justify-content: space-evenly; }
    .cevc-abtn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        width: 62px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #6c757d;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: .3px;
        text-transform: uppercase;
    }
    .cevc-abtn .cevc-vcircle { width: 44px; height: 44px; border: 2px solid #e9ecef; }
    .cevc-abtn i { color: var(--ac); font-size: 1.1rem; }
    .cevc-abtn:active .cevc-vcircle { transform: scale(.9); border-color: var(--ac); }

    /* Odkrývá se jen jedna strana */
    .cevc-swipe.dir-admin .cevc-vote,
    .cevc-swipe:not(.dir-admin) .cevc-admin { visibility: hidden; }
}
@media (max-width: 768px) {
    /* Otevřené menu ⋮ nesmí ořezat swipe kontejner */
    .cevc-swipe:has(.cevc-menu-wrap .dropdown-menu.show) { overflow: visible; }
}

/* ══ Dialog „Připomenout nevyjádřeným“ (stejný vzhled jako u akcí týmu) ══ */
.cev-remind-list { max-height: min(50vh, 360px); overflow-y: auto; border: 1px solid #eee; border-radius: 8px; padding: 4px 0; }
.cev-remind-row { display: flex; align-items: center; gap: 8px; padding: 5px 10px; margin: 0; cursor: pointer; user-select: none; }
.cev-remind-row:hover { background: #fbeaf0; }
.cev-remind-row input[type=checkbox] { accent-color: #ff007f; width: 16px; height: 16px; flex-shrink: 0; }
.cev-remind-row img { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.cev-remind-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cev-remind-note { margin-left: auto; color: #888; font-size: .72rem; white-space: nowrap; }
.cev-remind-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: .8rem; color: #666; }
.cev-remind-toolbar button { background: none; border: none; padding: 0; color: #ff007f; font-size: .8rem; }
.cev-remind-send { background: #ff007f; border-color: #ff007f; color: #fff; }
.cev-remind-send:hover:not(:disabled) { background: #d1006a; border-color: #d1006a; color: #fff; }

/* ══ Menu ⋮ úplně vpravo nahoře na kartě (jako v Moje události) ══ */
.cevc-face { position: relative; }
.cevc-top .cevc-menu-wrap { position: absolute; top: 8px; right: 8px; z-index: 3; margin: 0; }
.cevc-top:has(.cevc-menu-wrap) .cevc-title { padding-right: 40px; }
@media (max-width: 768px) {
    /* stav odpovědi pod menu, aby se nepřekrývaly */
    .cevc-face:has(.cevc-menu-wrap) .cevc-mstatus { padding-top: 40px; }
}

/* Sbalit prezenci / dokumenty / zápis pod kartou */
.cev-collapse { display: flex; justify-content: center; margin-top: 10px; }
.cev-collapse-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 16px; border: 1px solid #dee2e6; border-radius: 999px; background: #fff; color: #495057; font-size: .8rem; font-weight: 600; }
.cev-collapse-btn i { color: #ff007f; }
.cev-collapse-btn:hover { border-color: #ff007f; color: #d6006b; }

/* ══ Roh karty: 👥 jde/pozvaní + menu ⋮ (jako v Moje události) ══ */
.cevc-corner { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; align-items: center; gap: 6px; }
.cevc-corner:empty { display: none; }
.cevc-top .cevc-corner .cevc-menu-wrap { position: static; }
.cevc-count { display: inline-flex; align-items: center; gap: 4px; color: #495057; font-size: .8rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cevc-count i { color: #6c757d; font-size: .85rem; }
.cevc-top:has(.cevc-count) .cevc-title { padding-right: 60px; }
.cevc-top:has(.cevc-count):has(.cevc-menu-wrap) .cevc-title { padding-right: 100px; }

/* Patička na mobilu: jen kulaté ikony (Do kalendáře, Podklady, Poznámka) jako v Moje události */
@media (max-width: 768px) {
    .cevc-act { justify-content: center; width: 36px; height: 36px; min-height: 36px; padding: 0; border-radius: 50%; position: relative; }
    .cevc-act > i { font-size: 1rem; }
    .cevc-act-label { display: none; }
    .cevc-act-count { position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 999px; background: #ff007f; color: #fff; font-size: 9px; line-height: 16px; text-align: center; }
    .cevc-face:has(.cevc-count) .cevc-mstatus, .cevc-face:has(.cevc-menu-wrap) .cevc-mstatus { padding-top: 40px; }
}
