/* Analyst findings (#328): the structured block above a finding's note body,
   and the Record finding dialog. Deliberately plain: severity rides on the
   existing status indicator, everything else is ink and mono data. */

@layer components {
    .finding {
        display: flex;
        flex-direction: column;
        font-size: var(--text-small);
        gap: 0.2rem;
        margin-block-start: var(--block-space-half);
    }

    .finding__head {
        align-items: baseline;
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 0.75ch;
    }

    .finding__state {
        color: var(--ink-soft);
        font-family: var(--font-data);
        font-size: var(--text-x-small);
        margin-inline-start: auto;
    }

    .finding__wo {
        color: var(--ink);
    }

    .finding__action {
        margin: 0;
    }

    /* One mono line of evidence. The middot separators live here so a
       missing part never leaves a dangling one in the markup. */
    .finding__evidence {
        color: var(--ink-soft);
        display: flex;
        flex-wrap: wrap;
        font-family: var(--font-data);
        font-size: var(--text-x-small);
        font-variant-numeric: tabular-nums;
        margin: 0;
    }

    .finding__evidence > span + span::before {
        content: "\00B7";
        padding-inline: 0.6ch;
    }

    /* Five short fields: tighter rows than a full form sheet. */
    .finding-form .form-row {
        padding-block: 0.45rem;
    }

    .finding-launcher {
        display: contents;

        > .btn {
            white-space: nowrap;
        }
    }
}
