/*
 * Requisitions that arrived on paper.
 *
 * The colours live here rather than as Tailwind text utilities for the reason the bench records:
 * `index.css` wins at (1,0,1) against a bare class on a `p`, so a `text-` utility silently does
 * nothing.
 */

.inbound-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Two to a line on a wide screen, one on a narrow one: a squeezed name field is how a name is
   mistyped, and the name is the evidence the match is judged against. */
.inbound-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 44rem) {
    .inbound-row {
        grid-template-columns: 1fr;
    }
}

.inbound-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* The action stays beside what it acts on at every width, as drawn; on a phone the text wraps and the
   action sits at the top of the row rather than floating in its middle. */
.inbound-head,
.inbound-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.inbound-card__main {
    flex: 1;
    min-width: 0;
}

.inbound-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex-shrink: 0;
    gap: 0.5rem;
}

@media (max-width: 639px) {
    .inbound-head,
    .inbound-card {
        align-items: flex-start;
    }
}

.inbound-retry {
    margin-top: 0.5rem;
}

.inbound-refused {
    margin-top: 1.5rem;
}
