/* Quality control above the bench, to the approved labs frame. Scoped to the mount like the bench. */

/* The page body's row gap already separates the strip from the search below it. */
#akashic-health-records-patient-portal-root .qc-strip {
    margin: 0;
}

#akashic-health-records-patient-portal-root .qc-settled {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

#akashic-health-records-patient-portal-root .qc-summary {
    flex: 1;
    min-width: 0;
}

#akashic-health-records-patient-portal-root .qc-summary > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    list-style: none;
}

#akashic-health-records-patient-portal-root .qc-summary > summary::-webkit-details-marker {
    display: none;
}

#akashic-health-records-patient-portal-root .qc-chevron {
    margin-left: auto;
}

#akashic-health-records-patient-portal-root .qc-summary[open] .qc-chevron {
    transform: rotate(180deg);
}

#akashic-health-records-patient-portal-root .qc-detail {
    padding-top: 12px;
}

#akashic-health-records-patient-portal-root .qc-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
}

#akashic-health-records-patient-portal-root .qc-row-main {
    /* On a narrow row the action wraps under the run facts rather than squeezing them. */
    flex: 1 1 240px;
    min-width: 0;
}

#akashic-health-records-patient-portal-root .qc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

#akashic-health-records-patient-portal-root .qc-retry {
    margin-top: 0.5rem;
}

#akashic-health-records-patient-portal-root .qc-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#akashic-health-records-patient-portal-root .qc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#akashic-health-records-patient-portal-root .qc-field-wide {
    grid-column: 1 / -1;
}

@media (max-width: 782px) {
    #akashic-health-records-patient-portal-root .qc-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

#akashic-health-records-patient-portal-root .qc-run {
    margin-top: 8px;
}

@media (max-width: 782px) {
    #akashic-health-records-patient-portal-root .qc-row {
        align-items: flex-start;
    }
}

/* One control run for every listed test, so it sits after the list rather than across it. */
#akashic-health-records-patient-portal-root .qc-detail .qc-run {
    align-self: flex-start;
    margin-top: 0;
}

#akashic-health-records-patient-portal-root .qc-detail .ak-field-help {
    margin: 4px 0 10px;
}
