.fu-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 20px 0;
}

.fu-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dbe3ee;
    border-top: 4px solid #94a3b8;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    text-decoration: none;
}

.fu-card:hover {
    background: #f8fafc;
}

.fu-card.is-active {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.fu-card:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

.fu-card--overdue {
    border-top-color: #dc2626;
}

.fu-card--today {
    border-top-color: #d97706;
}

.fu-card--upcoming {
    border-top-color: #2563eb;
}

.fu-card--undated {
    border-top-color: #64748b;
}

.fu-card-label {
    color: #52657a;
    font-size: 0.85rem;
}

.fu-card-count {
    font-size: 1.8rem;
    line-height: 1.2;
}

.fu-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 0;
}

.fu-filters label,
.fu-reschedule-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.fu-filters input,
.fu-filters select,
.fu-reschedule-form input {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #fff;
    color: #172033;
    font: inherit;
}

.fu-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 1 / -1;
}

.fu-table-wrap {
    overflow-x: auto;
    margin-top: 16px;
}

.fu-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
}

.fu-table th,
.fu-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

.fu-table th {
    color: #52657a;
    font-size: 0.8rem;
    background: #f8fafc;
}

.fu-table tbody tr:hover {
    background: #fafcff;
}

.fu-date,
.fu-case-link {
    display: block;
    margin-bottom: 7px;
}

.fu-case-link {
    color: #1d4ed8;
    font-weight: 650;
}

.fu-secondary {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
}

.fu-note-cell {
    min-width: 230px;
    max-width: 360px;
}

.fu-note-body {
    display: block;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.fu-badge {
    display: inline-block;
    margin-top: 3px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: 0.75rem;
    line-height: 1.4;
}

.fu-badge--overdue,
.fu-badge--invalid {
    background: #fee2e2;
    color: #991b1b;
}

.fu-badge--today {
    background: #fef3c7;
    color: #92400e;
}

.fu-badge--upcoming {
    background: #dbeafe;
    color: #1e40af;
}

.fu-badge--archived {
    background: #ede9fe;
    color: #5b21b6;
}

.fu-actions {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 220px;
}

.fu-actions form {
    margin: 0;
}

.fu-reschedule {
    width: 100%;
}

.fu-reschedule summary {
    padding: 7px 0;
    color: #1d4ed8;
    font-weight: 600;
    cursor: pointer;
}

.fu-reschedule-form {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background: #f8fafc;
}

.fu-feedback,
.fu-warning {
    padding: 12px 14px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e40af;
    overflow-wrap: anywhere;
}

.fu-feedback.is-error,
.fu-warning {
    background: #fff7ed;
    color: #9a3412;
}

.fu-feedback[hidden] {
    display: none;
}

.fu-empty {
    padding: 32px !important;
    color: #64748b;
    text-align: center !important;
}

.fu-actions [aria-busy="true"] {
    opacity: 0.7;
}

@media (max-width: 1000px) {
    .fu-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .fu-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fu-filters {
        grid-template-columns: 1fr;
    }
}