/* Custom styles specific to this application */
/* custom-base.css must be included along with this file, as it defines root variables */

/* region Information tags */
.u-information-tag {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: .75rem;
    padding: 1px 9px;
    color: white;
    transition-property: all;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
    transition-duration: .15s;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
}

.u-information-tag > span[class^="z-icon"] {
    margin-right: 6px;
}

.u-information-tag-lg {
    min-height: 32px;
    border-radius: 1rem;
    padding: 3px .75rem;
    font-size: 15px;
    line-height: 22px;
    font-weight: 700;
}

/* endregion */

/* region Course cards */
.u-card-course {
    border-radius: .25rem;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
    height: 600px;
    padding: 1rem;
}

.u-card-course-level {
    color: var(--unil-main-color-500);
    font-size: 13px;
    font-weight: 700;
    line-height: 18px;
    margin-bottom: .25rem;
}

.u-card-course-title {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    font-size: 17px;
    font-weight: 700;
    line-clamp: 3;
    line-height: 26px;
    overflow: hidden;
}

.u-card-course-content {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: rgb(61 77 91);
    display: -webkit-box;
    font-size: 15px;
    line-clamp: 3;
    line-height: 22px;
    overflow: hidden;
    padding-top: .5rem;
}

.u-card-course-schedules {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    padding-bottom: .5rem;
}

.u-card-course-schedules-item {
    align-items: center;
    background-color: var(--unil-main-color-100);
    border-radius: .25rem;
    display: inline-flex;
    font-size: 15px;
    gap: .5rem;
    line-height: 22px;
    margin-top: .5rem;
    padding: .125rem .5rem;
}

/* endregion */

/* region Expandable content with show less/show more links */
.u-content-overview div.collapse:not(.show) {
    overflow: hidden;
    display: block;
}

.u-content-overview a.collapsed:after  {
    content: attr(show-more-label);
}

.u-content-overview a:not(.collapsed):after {
    content: attr(show-less-label);
}

.u-schedules-overview div.collapse:not(.show) {
    height: 104px;
}

.u-schedules-overview div.collapsing {
    min-height: 104px;
}

.u-notif-overview div.collapse:not(.show) {
    height: 160px;
}

.u-notif-overview div.collapsing {
    min-height: 160px;
}

/* endregion */

/* region Listbox rows not clickable */
/* when using nonselectableTags="*" on listbox, rows are selectable only using checkboxes, so adapt cursors */
.u-listbox-no-select .z-listitem-checkable,
.u-listbox-no-select .z-listgroup-checkable {
    cursor: pointer;
}

.u-listbox-no-select .z-listitem .z-listcell {
    cursor: auto;
}

/* endregion */

/* region Custom responsive row with 4 columns on xxl screens because Bootstrap xxl is too low (1400px) */
@media (min-width: 1680px) {
    .u-row-cols-xxxl-4 > * {
        flex: 0 0 auto;
        width: 25%;
    }
}
/* endregion */