.task-history-panel {
    margin-top: 1.25rem;
    padding: 1.5rem;
}

.task-history-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.task-history-heading p {
    color: var(--text-muted);
    margin-top: .2rem;
}

.task-history-heading > strong {
    color: var(--primary);
    white-space: nowrap;
}

.task-history-filters {
    display: grid;
    grid-template-columns: minmax(170px, .7fr) minmax(210px, 1fr) minmax(260px, 1.5fr) auto;
    gap: .75rem;
    align-items: end;
    margin-bottom: 1rem;
}

.task-history-filters label {
    display: grid;
    gap: .35rem;
}

.task-history-filters label span {
    color: var(--text-muted);
    font-size: .72rem;
    text-transform: uppercase;
}

.task-history-filters input,
.task-history-filters select {
    width: 100%;
    padding: .75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .05);
    color: var(--text-main);
    font: inherit;
}

.task-history-table-wrap {
    overflow-x: auto;
}

.task-history-table {
    width: 100%;
    min-width: 920px;
    border-collapse: collapse;
}

.task-history-table th,
.task-history-table td {
    padding: .9rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.task-history-table th {
    color: var(--primary);
    text-transform: uppercase;
    font-size: .72rem;
}

.task-history-table td {
    font-size: .85rem;
}

.task-history-table td small {
    display: block;
    color: var(--text-muted);
    margin-top: .25rem;
    max-width: 360px;
}

.task-history-table td .history-checklist-item {
    color: var(--success);
    margin-top: .35rem;
}

.task-reopen {
    padding: .5rem .65rem;
    font-size: .75rem;
    white-space: nowrap;
}

@media (max-width: 850px) {
    .task-history-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .task-history-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-history-filters {
        grid-template-columns: 1fr;
    }

    .task-history-panel {
        padding: 1rem;
    }
}
