/* FD-UI-003 — document detail, download and filing. Kept apart from app.css so the document vertical
   does not edit the shared stylesheet. Every rule is scoped to .fd-documents or a document-only class. */

.fd-back {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.fd-back a,
.fd-row-link,
.fd-alert-link {
    color: var(--fd-navy);
    text-decoration: none;
}

.fd-back a:hover,
.fd-back a:focus-visible,
.fd-row-link:hover,
.fd-row-link:focus-visible,
.fd-alert-link:hover,
.fd-alert-link:focus-visible {
    text-decoration: underline;
}

.fd-alert-link {
    margin-left: 0.5rem;
    font-weight: 500;
}

.fd-muted {
    color: var(--fd-muted);
}

.fd-documents .fd-page-title {
    overflow-wrap: anywhere;
}

.fd-filing-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
}

.fd-filing-chosen {
    margin: 0;
    overflow-wrap: anywhere;
}

.fd-filing-category {
    width: 100%;
    max-width: 22rem;
}

.fd-filing-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

@media (max-width: 719.98px) {
    .fd-documents .fd-page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .fd-filing-actions .mud-button-root,
    .fd-documents .fd-page-actions .mud-button-root {
        width: 100%;
    }
}
