/* Aufgabe Detail Page */

.text-pre-wrap {
    white-space: pre-wrap;
    font-size: 1rem;
    line-height: 1.65;
    color: #212529;
}

.text-pre-wrap:empty::before {
    content: '—';
    color: #6c757d;
}

.detail-dl dt {
    font-weight: 500;
}

.detail-dl dd {
    color: #212529;
}

#aufgabeStatusBar .badge {
    font-size: 0.8125rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
}

#editMode .form-control,
#editMode .form-select {
    background-color: #fffdf4;
    border-color: #e8d98a;
}

#editMode .form-control:focus,
#editMode .form-select:focus {
    background-color: #fff;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, .15);
}

.has-changes .card {
    border-left: 3px solid var(--primary) !important;
}

.relation-pill,
.attachment-row,
.history-entry,
.edit-meta-row {
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    background: #fff;
}

.relation-pill {
    padding: 0.65rem 0.8rem;
}

.relation-pill-danger {
    border-color: #f1aeb5;
    background: #fff5f5;
}

.task-progress {
    height: 1rem;
    border-radius: 999px;
    background: #eef3f8;
}

.checklist-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0.8rem;
    margin-bottom: 0.65rem;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    background: #fff;
    cursor: pointer;
}

.checklist-row.is-done,
.checklist-edit-row.is-done {
    background: #f3fbf5;
    border-color: #b8dfc1;
}

.checklist-text {
    flex: 1;
    line-height: 1.45;
}

.checklist-row.is-done .checklist-text {
    color: #5c6f63;
    text-decoration: line-through;
}

.relation-pill-neutral {
    border-color: #d0d7de;
    background: #f8fafc;
}

.attachment-row,
.edit-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.65rem;
}

.checklist-edit-row {
    justify-content: flex-start;
}

.checklist-edit-row .form-check-input {
    margin-top: 0.15rem;
}

.checklist-edit-row .keypoint-text-input {
    flex: 1;
    min-width: 0;
}

.history-entry {
    padding: 0.8rem;
    margin-bottom: 0.75rem;
}

.history-change {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.history-change-label {
    font-weight: 600;
}

@media (max-width: 575.98px) {
    #aufgabeStatusBar {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    #aufgabeStatusBar .btn {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }

    .detail-dl {
        grid-template-columns: 1fr !important;
    }

    #editMode .row > [class*='col-'] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #navBackLink .d-sm-inline {
        display: none !important;
    }
}
