
#preferences {
    counter-reset: preference;
    padding-left: 1.5rem;
    max-width: 450px;
    margin-bottom: 1.5rem;
}

.preference {
    counter-increment: preference;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0;
    margin-top: 1.5rem;
    cursor: pointer;
    min-height: 40px;
    height: auto;
}


.preference:after {
    content: 'Click to add ' counter(preference)'. preference';
    position: absolute;
    font-size: 14px;
    color: #ccc;
    margin-left: .6rem;
}

.preference__item {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    min-height: 40px;
    padding: 0 .6rem;
    background-color: white;
    line-height: 1.1;
    z-index: 2;
    border: 1px solid var(--primary);
}

.preference__item__batch {
    position: absolute;
    left: -1px;
    top: -17px;
    height: 17px;
    padding: 3px;
    font-size: 12px;
    white-space: nowrap;
    background-color: var(--primary);
}

.preference__item::before {
    position: absolute;
    content: counter(preference);
    left: -1.5rem;
}


#courses {
    padding: .5rem 0;
}

.course {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1rem;
    width: 100%;
    border-bottom: 1px solid #ccc;
    background-color: white;
    line-height: 1.4;
    cursor: pointer;
}

.course--disabled {
    color: #ccc;
    cursor: auto;
}
.course--selected {
    background-color: #A6E1F4;
}

.course--hidden {
    display: none;
}

.course:not(.course--disabled):hover {
    background-color: var(--primary);
}

.course__id {
    font-size: 12px;
    opacity: .7;
}

.course__title {
    font-weight: bold;
}

.course select {
    appearance: none;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    text-align: center;
    text-align-last: center;
}

.course select option {
    text-align: center;
}