#week-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    font-size: 18px;
}

#week-nav button {
    padding: 8px 12px;
    font-size: 18px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
}

#week-nav button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

#schedule {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.day-row {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
}

.day-label {
    width: 100px;
    min-width: 85px;
    font-weight: bold;
    font-size: 14px;
}

.slot {
    width: 48px;
    height: 48px;
    background: #eee;
    border: 1px solid #ccc;
    cursor: pointer;
    text-align: center;
    line-height: 48px;
    font-size: 12px;
    border-radius: 6px;
    transition: background 0.2s;
}

.slot.selected {
    background: #4caf50;
    color: white;
    font-weight: bold;
}

@media (max-width: 600px) {
    .day-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .day-label {
        width: auto;
        font-size: 16px;
        margin-bottom: 5px;
    }

    .slot {
        width: 100%;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
        margin-bottom: 4px;
    }

    #week-nav {
        flex-direction: row;
        gap: 10px;
    }
}

.disabled-block {
    color: var(--color-black) !important;
    background-color: var(--color-light-gray) !important;
    border-color: var(--color-gray) !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.selected-block {
    background-color: var(--color-white-opacity) !important;
}

.sticky-box {
    position: sticky;
    top: 20px;            /* zastaví se 20px od vrchu */
    background: var(--color-white);
    padding: 20px 0 20px 0;
    font-weight: bold;
    z-index:1000;
}