#lessonsFormMessage {
    margin-top: 8px;
    font-weight: bold;
}

@media screen and (min-width: 835px) {
    #coursesRepeater.form-repeater .course-row {
        grid-template-columns: 35px 40% 1fr;
        gap: 5px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
}

.course-control {
    border-right: 1px solid #eee;
    padding-right: 8px;
}

@media screen and (min-width: 835px) {
    .course-info {
        border-right: 1px solid #eee;
        padding-right: 8px;
    }
}

#coursesRepeater .sp-835 {
    border-right: 1px solid #eee;
    padding-right: 8px;
}

/* table layout for course detail */
.course-info table {
    width: 100%;
    border-collapse: collapse;
}

.course-info th {
    text-align: left;
    white-space: nowrap;
    padding-right: 8px;
}

.course-info td {
    padding-bottom: 4px;
}

#coursesRepeater.form-repeater input[type="text"] {
    width: 100%;
}

.clp-repeater .course-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Schedule input layout */
.schedule-repeater .repeater-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 70%;
}

#coursesRepeater.form-repeater table th,
#coursesRepeater.form-repeater table td {
    border: none;
}

.schedule-repeater select {
    width: 55px;
}

.schedule-repeater input[type="time"] {
    width: 70px;
}

.schedule-repeater .time-separator {
    padding: 0;
}

.schedule-repeater input[type="number"] {
    width: 55px;
}


@media screen and (min-width: 835px) {
    .schedule-repeater select {
        width: 70px;
    }

    .schedule-repeater input[type="time"] {
        width: 90px;
    }

    .schedule-repeater .time-separator {
        padding: 0 4px;
    }

    .schedule-repeater input[type="number"] {
        width: 70px;
    }
}

.schedule-repeater .remove-row {
    position: relative;
    top: 7px;
    margin-bottom: 20px;
}

/* vertical spacing between fields */
#lessonEditForm select,
#lessonEditForm input,
#customLessonsForm select,
#customLessonsForm input {
    margin-bottom: 6px;
}

/* オートコンプリート候補表示 */
#lessonNameSuggestionsContainer {
    position: absolute;
    background: #f1f1f1;
    border: 0.5px solid #ccc;
    max-height: 250px;
    overflow-y: auto;
    width: 90%;
    z-index: 1000;
    margin-top: -20px;
}
#lessonNameSuggestionsContainer .suggestion-item {
    display: flex;
    align-items: center;
    padding: 5px;
    cursor: pointer;
}
#lessonNameSuggestionsContainer .suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 5px;
}
#lessonNameSuggestionsContainer .suggestion-item:hover {
    background-color: #f0f0f0;
}