/* The bench, to the approved labs frame. Scoped to the mount so each rule beats its element defaults. */

#akashic-health-records-patient-portal-root .bench-head {
    margin-bottom: 14px;
}

#akashic-health-records-patient-portal-root .bench-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#akashic-health-records-patient-portal-root .bench-retry {
    margin-top: 0.5rem;
}

#akashic-health-records-patient-portal-root .bench-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    /* With the page body's 12px row gap this is the frame's 17px under the QC strip. */
    margin: 5px 0 14px;
}

#akashic-health-records-patient-portal-root .bench-find {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#akashic-health-records-patient-portal-root .bench-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

#akashic-health-records-patient-portal-root .bench-row {
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

/* Urgency is the row, not a badge; the row also says the priority in words. */
#akashic-health-records-patient-portal-root .bench-row.bench-row-urgent {
    border-left: 3px solid var(--danger);
}

#akashic-health-records-patient-portal-root .bench-row-main {
    flex: 1;
    min-width: 0;
}

#akashic-health-records-patient-portal-root .bench-row-main .bench-accession {
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

#akashic-health-records-patient-portal-root .bench-row-main .bench-urgent {
    color: var(--danger);
}

#akashic-health-records-patient-portal-root .bench-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-left: 3px solid var(--primary);
    background: var(--blue-soft);
}

#akashic-health-records-patient-portal-root .bench-identity strong {
    font-weight: var(--ak-heading-weight);
    color: var(--ink-strong);
}

#akashic-health-records-patient-portal-root .bench-identity span {
    font-size: 12px;
    color: var(--ink-muted);
}

#akashic-health-records-patient-portal-root .bench-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

@media (max-width: 782px) {
    #akashic-health-records-patient-portal-root .bench-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    #akashic-health-records-patient-portal-root .bench-row {
        align-items: flex-start;
    }
}

/* The reject form: each field stacks its label over the control. */
#akashic-health-records-patient-portal-root .bench-reject-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#akashic-health-records-patient-portal-root .bench-reject-outcome {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* The labs bench frame sets its titles and row text at 1.55. */

/* An empty group keeps a row's card footprint, so a zero reads as a checked list, not a gap. */
#akashic-health-records-patient-portal-root .bench-empty {
    margin: 0;
    color: var(--ink-muted);
}
