.bkev-list *,
.bkev-list *::before,
.bkev-list *::after {
    box-sizing: border-box;
}

/* ── Celý seznam ── */
.bkev-list {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    max-width: 100%;
}

/* ── Skupina jednoho dne ── */
.bkev-day-group {
    display: flex;
    align-items: stretch;
    border-top: 1px solid #d0d5dd;   /* výrazná linka mezi dny */
    margin-top: 0;
}

.bkev-day-group:first-child {
    border-top: none;
}

/* ── Levý sloupec: zkratka + datum ── */
.bkev-day-header {
    flex: 0 0 100px;
    min-width: 68px;
    padding: 14px 10px 12px 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-right: 1px solid #e0e3e8;
}

/* "st", "čt", "pá" – malá šedá zkratka */
.bkev-day-dow {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: lowercase;
    letter-spacing: 0.03em;
    line-height: 1.3;
}

/* "17. 6." – kompaktní datum */
.bkev-day-date {
    font-size: 12px;
    color: #555;
    white-space: nowrap;
    line-height: 1.3;
}

/* ── Pravý sloupec: události ── */
.bkev-day-events {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* ── Jeden řádek události ── */
.bkev-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 10px 12px;
    border-bottom: 1px solid #f0f2f5;
    transition: background 0.1s ease;
    cursor: default;
}

.bkev-day-events .bkev-item:last-child {
    border-bottom: none;
}

.bkev-item--clickable {
    cursor: pointer;
}

.bkev-item--clickable:hover {
    background: #f0f6ff;
}

/* ── Badge ── */
.bkev-badge {
    flex: 0 0 auto;
    background: #ddeeff;
    color: #2255aa;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: 0.01em;
    align-self: flex-start;
    margin-top: 1px;
}

/* ── Obsah řádku ── */
.bkev-content {
    flex: 1 1 auto;
    min-width: 0;
}

.bkev-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Meta linka: čas · třídy N · učitelé N ── */
.bkev-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 5px;
    margin-top: 2px;
    font-size: 12px;
    color: #777;
    line-height: 1.4;
}

.bkev-time {
    color: #555;
    font-variant-numeric: tabular-nums;
}

/* popisky "třídy" / "učitelé" světle šedé */
.bkev-meta-sep {
    color: #bbb;
    font-size: 11px;
}

.bkev-classes {
    color: #1a6ab5;
}

.bkev-teachers {
    color: #666;
}

/* ── Šipka ── */
.bkev-arrow {
flex: 0 0 auto;
    color: #044f9f;
    font-size: 18px;
    line-height: 1;
    padding-left: 4px;
    font-weight: bold;
}

/* ── Prázdný stav / nadpis ── */
.bkev-empty {
    color: #777;
    font-style: italic;
    padding: 16px 0;
}

.bkev-heading {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

/* ==========================================================
   MODAL
   ========================================================== */
.bkev-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bkev-modal[hidden] {
    display: none;
}

.bkev-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.bkev-modal__box {
    position: relative;
    background: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0,0,0,.22);
}

.bkev-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
    z-index: 1;
}

.bkev-modal__close:hover { color: #333; }

.bkev-modal__body {
    padding: 24px 24px 20px;
    overflow-y: auto;
    flex: 1;
}

.bkev-modal__content h3 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 600;
    color: #111;
    padding-right: 24px;
}

.bkev-modal__content dl {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 12px;
}

.bkev-modal__content dt {
    font-weight: 600;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 1px;
}

.bkev-modal__content dd {
    margin: 0;
    color: #222;
    font-size: 14px;
}

/* ==========================================================
   RESPONZIVITA
   ========================================================== */
@media (max-width: 480px) {
    .bkev-day-header {
        flex: 0 0 52px;
        min-width: 52px;
        padding: 10px 8px 10px 0;
    }

    .bkev-day-date { font-size: 11px; }

    .bkev-item {
        padding: 9px 8px 9px 10px;
        gap: 8px;
    }

    .bkev-title { font-size: 13px; }
    .bkev-meta  { font-size: 11px; }
}