/*
 * The reading list: studies taken, and what is still owed on each.
 *
 * 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.
 */

.reading-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

/* The count leads the heading, so a settled section reads as settled rather than as an empty box. */
.reading-count {
    min-width: 1.5rem;
    padding: 0 0.375rem;
    border-radius: 0.375rem;
    background: var(--muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.reading-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
}

.reading-row:last-child {
    border-bottom: 0;
}

/* Wraps rather than truncating: the name of a study is how a radiologist knows what they are opening. */
.reading-row-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.reading-test {
    font-weight: 500;
}

.reading-row-detail {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.reading-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

/*
 * The accession number leads its row, and is set in a monospaced face so digits line up between
 * rows -- a technologist comparing a worklist against a console reads down the column.
 */
.reading-accession {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* The views and the modality filter share one line, and wrap under each other on a phone. */
.reading-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.reading-modality select {
    min-height: 2.25rem;
}
