/* Severity-scale agreement card (Subject Detail). Soft pill aesthetic:
   a track per scale, a lavender expected-range pill, and a RAG dot at the
   recorded value. Auto-served by Dash from /assets/. */

.sa-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #2f3b52;
}
.sa-card-sub {
    font-size: 0.78rem;
    color: #8a939b;
    margin: 0.1rem 0 0.7rem 0;
}

.sa-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.35rem 0.15rem;
}

.sa-row {
    display: grid;
    grid-template-columns: 84px 26px 1fr 118px;
    align-items: center;
    gap: 0.9rem;
}

.sa-scale {
    font-weight: 600;
    font-size: 0.86rem;
    color: #2c3e50;
    white-space: nowrap;
}

/* Recorded value, flush against the start of the track line. */
.sa-score {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2c3e50;
    text-align: right;
}

/* Track + positioned children (percent left/width set inline). */
.sa-track {
    position: relative;
    height: 22px;
}
.sa-track-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: #eceef1;
    border-radius: 3px;
    transform: translateY(-50%);
}
.sa-range {
    position: absolute;
    top: 50%;
    height: 18px;
    background: rgba(99, 102, 241, 0.13);
    border-radius: 999px;
    transform: translateY(-50%);
}
.sa-dot {
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transform: translate(-50%, -50%);
}

/* Expected-range label — left-aligned so the "exp" words line up across rows. */
.sa-exp {
    font-size: 0.8rem;
    color: #8a939b;
    text-align: left;
    white-space: nowrap;
}
.sa-flag {
    color: #E5736B;            /* masks the line-icon to red (currentColor) */
    display: inline-block;
    vertical-align: -2px;
    margin-left: 0.4rem;
}

/* Not-done rows: muted, no dot/range. */
.sa-row-notdone .sa-scale {
    color: #b3bac1;
    font-weight: 500;
}
.sa-notdone {
    font-size: 0.8rem;
    font-style: italic;
    color: #b3bac1;
    text-align: right;
}

.sa-empty {
    font-size: 0.85rem;
    color: #6c757d;
    padding: 0.5rem 0.25rem;
}

/* Expandable row: change-from-baseline tucked under the track. */
.sa-details > summary {
    list-style: none;
    cursor: pointer;
}
.sa-details > summary::-webkit-details-marker {
    display: none;
}
.sa-caret {
    color: #8a939b;
    margin-left: 0.4rem;
    font-size: 0.7rem;
}
.sa-delta {
    font-size: 0.78rem;
    color: #6c757d;
    padding: 0.3rem 0 0.1rem 92px;
}
