a {
    --pico-text-decoration: none;
}

table {
    text-align: center;
}

th,
td {
    border: var(--pico-border-width) solid var(--pico-table-border-color);
}

table.sticky-header th {
    position: sticky;
    top: 0;
    background-color: var(--pico-background-color);
    z-index: 1;
}

table.sticky-header td:first-child,
table.sticky-header th:first-child {
    position: sticky;
    left: 0;
    background-color: var(--pico-background-color);
}

table.sticky-header th:first-child {
    z-index: 2;
}

.errorlist,
.text-danger {
    color: var(--pico-del-color);
}

.text-success {
    color: var(--pico-ins-color);
}

.text-muted {
    color: var(--pico-muted-color);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.font-bold {
    font-weight: bold;
}

.font-italic {
    font-style: italic;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.inline-form {
    display: inline;
}

.hidden,
.hidden-item {
    display: none;
}

.qrline {
    stroke: var(--pico-color);
}

.responsive-image {
    width: auto;
    height: auto;
}

.image-gallery > li,
.image-gallery-portrait > li {
    display: inline-block;
    margin: 0 5px 10px;
    position: relative;
}

.image-gallery > li {
    width: 360px;
    list-style: none;
}

.image-gallery-portrait > li {
    width: 270px;
    list-style: none;
}

@supports (display: flex) {
    .image-gallery,
    .image-gallery-portrait {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .image-gallery > li {
        flex-basis: 360px;
        margin: 0;
    }

    .image-gallery-portrait > li {
        flex-basis: 270px;
        margin: 0;
    }

    .image-gallery::after,
    .image-gallery-portrait::after {
        content: "";
        flex-basis: 360px;
    }
}

.image-gallery li img,
.image-gallery-portrait li img {
    object-fit: cover;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-radius: 5px;
}

.image-gallery-mixed > li {
    display: inline-block;
    margin: 0 5px 10px;
    position: relative;
    width: auto;
    list-style: none;
}

@supports (display: flex) {
    .image-gallery-mixed {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .image-gallery-mixed > li {
        flex: 0 0 auto;
        margin: 0;
    }

    .image-gallery-mixed::after {
        content: "";
        flex-basis: 360px;
    }
}

.image-gallery-mixed li img {
    height: 240px;
    width: auto;
    max-width: none;
    object-fit: cover;
    vertical-align: middle;
    border-radius: 5px;
}

.faculty-container {
    display: flex;
    flex-wrap: wrap;
}

.faculty-item {
    display: flex;
    flex: 0 0 30%;
    margin: 1%;
}

.faculty-item .photo-container {
    flex-basis: 30%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.faculty-item .photo-container img {
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.faculty-item .item-details {
    flex-basis: 80%;
    padding-left: 1rem;
}

@media (max-width: 992px) {
    .faculty-item {
        flex-basis: 48%;
    }
}

@media (max-width: 576px) {
    .faculty-item {
        flex-basis: 98%;
    }

    .faculty-item .photo-container {
        flex-basis: 15%;
    }
}

@supports (height: 100svh) {
    dialog article {
        max-height: calc(100svh - var(--pico-spacing, 1rem) * 2);
    }
}

.dual-progress-bar {
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    appearance: none;
    width: 100%;
    height: 0.5rem;
    margin-bottom: calc(var(--pico-spacing) * 0.5);
    overflow: hidden;
    border: 0;
    border-radius: var(--pico-border-radius);
    background-color: var(--pico-progress-background-color);
}

.dual-progress-bar .progress-primary,
.dual-progress-bar .progress-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--progress-width, 0);
    height: 100%;
    border-radius: var(--pico-border-radius);
    transition: width 0.3s ease;
}

.dual-progress-bar .progress-secondary {
    background-color: var(--pico-progress-color);
    opacity: 0.5;
    z-index: 1;
}

.dual-progress-bar .progress-primary {
    background-color: var(--pico-progress-color);
    z-index: 2;
}

.cluster {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.full-width-table {
    width: 100%;
}

.spaced-table {
    margin-bottom: 1em;
}

.milestone-column {
    text-align: left;
    width: 70%;
}

.assessment-column {
    text-align: left;
    width: 30%;
}

.align-top {
    vertical-align: top;
}

.cluster-tight {
    display: flex;
    gap: 0.1rem;
}

.payment-history {
    font-size: larger;
}

.split-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.split-row-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.split-evenly {
    display: flex;
    justify-content: space-evenly;
}

.inline-row-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.flex-3 {
    flex: 3;
}

.flex-4 {
    flex: 4;
}

.flex-5 {
    flex: 5;
}

.no-shrink {
    flex-shrink: 0;
}

.filter-summary {
    border-top: 1px solid var(--pico-muted-border-color);
    border-bottom: 1px solid var(--pico-muted-border-color);
    padding: 0.5rem 0;
}

.filter-links {
    margin-bottom: 0.5rem;
}

.inline-control {
    display: inline;
}

.schedule-period-label {
    margin-block: 1rem;
    text-align: center;
    font-weight: bold;
}

.period-label {
    margin-block: 1rem;
    text-align: center;
}

.compact-action-form {
    --pico-form-element-spacing-vertical: 0.5rem;
    --pico-form-element-spacing-horizontal: 0.75rem;
}

.compact-action-button {
    width: auto;
    font-size: 0.8rem;
    display: inline-block;
}

.dashed-action {
    border-style: dashed;
}

.profile-photo {
    max-width: 300px;
    max-height: 300px;
    border-radius: 25px;
    margin-bottom: 2rem;
}

.profile-photo-plain {
    max-width: 300px;
    max-height: 300px;
}

.disabled-link {
    pointer-events: none;
    opacity: 0.5;
}

.highlight-row {
    background: var(--pico-mark-background-color);
}

.invalid-row {
    background: pink;
}

.muted-row {
    background-color: var(--pico-table-border-color);
}

.muted-pill {
    background: var(--pico-muted-border-color);
    border-radius: 0.5rem;
}

.unstyled-list-item {
    list-style: none;
}

.width-60 {
    width: 60%;
}

.width-20 {
    width: 20%;
}

.width-15 {
    width: 15%;
}

.min-width-7 {
    min-width: 7rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.float-right {
    float: right;
}

.avoid-break {
    page-break-inside: avoid;
    margin-bottom: 2rem;
}

.signature-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    width: 100%;
}

.signature-box {
    text-align: center;
    border: 1px solid;
    padding: 0.5rem;
}

.progress-stats-table {
    width: 22rem;
}

.progress-stats-label {
    text-align: right;
    width: 10rem;
}

.progress-stats-value {
    width: 12rem;
}

.evaluation-scale {
    display: flex;
    column-gap: 2px;
}

.evaluation-scale-segment {
    flex-grow: var(--scale-flex, 1);
    text-align: center;
    border-color: currentColor;
}

.evaluation-scale-segment.is-best {
    border-color: var(--pico-ins-color);
}

.evaluation-scale-segment.is-worst {
    border-color: var(--pico-del-color);
}

.evaluation-scale-segment.is-label {
    border-top: 0.3rem solid;
}

.evaluation-scale-segment.is-count {
    border-bottom: 0.3rem solid;
}

[x-cloak] {
    display: none;
}
