.path-local-treestudyplan,
.features-treestudyplan {

    .card.s-studyplan-card {
        min-width: 400px;
        max-width: 400px;
        margin-bottom: 1em;
    }
    &.path-local-treestudyplan-edit .card.s-studyplan-card {
        min-width: 450px;
        max-width: 450px;
    }

    .card.s-studyplan-card.card-body {
        padding: 0.75rem;
        padding-bottom: 0.5rem;
    }
    .card.s-studyplan-card.s-suspended {
        .card-body {
            background-color: #eee;
        }
        .card-footer {
            background-color: #ddd;
        }
    }

    .card.s-studyplan-card.timing-past .card-header {
        background-color: var(--past);
    }
    .card.s-studyplan-card.timing-present .card-header {
        background-color: var(--present);
    }
    .card.s-studyplan-card.timing-future .card-header {
        background-color: var(--future);
    }

    .s-studyplan-card-title-buttons {
        font-size: 16px /*12pt*/;
        float: right;
        white-space: nowrap;
    }
    .s-studyplan-card-title-buttons > * {
        margin-left: 0.2em;
        margin-right: 0.3em;
    }

    .s-studyplan-card-buttons {
        float: right;
        display: flex;
        align-items: center;
        justify-content: right;
    }

    .s-studyplan-card-buttons > * {
        margin-left: 1em;
    }

    .s-studyplan-card-content {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 20px;
        height: 100%;
    }

    .s-studyplan-card-icon {
        img {
            width: 64px;
            height: 64px;
        }

    }
    .s-studyplan-card-titlebar {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 5px;

    }
    .s-studyplan-card-titlebuttons {
        margin-left: auto;
    }

    .s-studyplan-card-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;

        > :last-child:not(:only-child) {
            margin-top: auto;
        }
    }

    .s-studyplan-card-progressbar {
        width: calc(100% - 2px);
        height: 16px;

        .s-studyplan-card-progress-segment {
            display: inline-block;
            height: 10px;
            border-top: solid;
            border-bottom: solid;
            border-color: var(--info);
            border-width: 1px;

            &:first-child {
                border-top-left-radius: 3px;
                border-bottom-left-radius: 3px;
                border-left: 1px solid var(--info);
            }

            &:last-child {
                border-top-right-radius: 3px;
                border-bottom-right-radius: 3px;
                border-right: 1px solid var(--info);
            }
        }

        .s-studyplan-card-progress-completed {
            background-color: var(--info);
        }
        .s-studyplan-card-progress-incomplete {
            background-color: var(--light);
        }
    }
    .s-studyplan-card-progresstext {
        font-size: 80%;
        color: var(--gray);
    }
    .s-studyplan-details {
        img {
            width: 128px;
            height: 128px;
        }

    }

    .s-course-extrafields {
        &.above {
            border-bottom: 1px solid #dee2e6;
            padding-bottom: 0.5em;
            margin-bottom: 0.5em;
        }

        &.below {
            border-top: 1px solid #dee2e6;
            padding-top: 0.5em;
            margin-top: 0.5em;
        }

        .title {
            font-weight: bold;
            padding-right: 1em;
        }

        .value {
            &.true {
                color: var(--success);
            }
            &.false {
                color: var(--danger);
            }

        }
    }
}