.followup-today {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .4rem;
    color: var(--muted);
    font-size: .82rem;
}
.followup-filter label:has([name="q"]) { flex: 1 1 17rem; }
.followup-totals { margin-block: 1.2rem; }
.followup-totals .wf-kpi:first-child { border-inline-start: 3px solid var(--primary); }
.followup-table .followup-date, .followup-table .followup-secondary, .followup-status {
    display: block;
}
.followup-date { font-variant-numeric: tabular-nums; }
.followup-table .followup-secondary, .followup-status {
    margin-block-start: .22rem;
    font-size: .75rem;
    color: var(--muted);
}
.followup-table td:nth-child(2), .followup-table td:nth-child(3) {
    white-space: normal;
    overflow-wrap: anywhere;
}
.followup-status[data-status="overdue"] { color: #a54037; }
[data-theme="graphite"] .followup-status[data-status="overdue"] { color: #ffb2ac; }
.followup-status[data-status="due"], .followup-actions a { color: var(--primary); }
.followup-actions a { display: block; padding-block: .2rem; }
.followup-mobile-label { display: none; }
.followup-pager, .followup-pager > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .65rem;
}
.followup-pager {
    justify-content: space-between;
    margin-block-start: 1rem;
    color: var(--muted);
    font-size: .8rem;
}
.wf tr[aria-current="true"]:target td {
    background: var(--soft);
}
#wf-contract-collection:target {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 680px) {
    .followup-totals .wf-kpi:first-child { grid-column: 1 / -1; }
    .followup .followup-table, .followup-table tbody { display: block; }
    .followup-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .followup-table tr {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .55rem;
        border-block-start: 1px solid var(--line);
        padding-block: .9rem;
    }
    .followup-table td { border: 0; padding: 0; white-space: normal; }
    .followup-table td:nth-child(2) { grid-column: span 2; }
    .followup-table td:nth-child(3), .followup-table td:last-child { grid-column: 1 / -1; }
    .followup-table td:nth-child(3) .followup-secondary { display: inline; margin-inline-start: .45rem; }
    .followup-mobile-label { display: block; color: var(--muted); font-size: .73rem; }
    .followup-table .wf-amount { white-space: normal; flex-wrap: wrap; overflow-wrap: anywhere; }
    .followup-table .followup-actions { display: flex; gap: 1.3rem; }
    .followup-actions a { padding-block: .4rem; }
}
