/* Sub-field metric layout and threshold/conditional comment alert */

/* ── Sub-field metric layout ── */
.metric-sub-fields-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
}

.metric-sub-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1, 4px);
}

.metric-sub-field-label {
    font-size: var(--text-sm, 13px);
    font-weight: var(--weight-medium, 500);
    color: var(--fg-secondary, var(--color-neutral-600, #4b5563));
}

.metric-sub-input {
    width: 100%;
    min-height: 60px;
    resize: vertical;
    font-family: var(--font-sans, Inter, sans-serif);
    font-size: var(--text-sm, 13px);
    color: var(--fg-default, var(--color-neutral-900, #111827));
    background: var(--bg-surface, #fff);
    border: 1px solid var(--border-default, var(--color-neutral-200, #e5e7eb));
    border-radius: var(--radius-md, 8px);
    padding: var(--space-2, 8px) var(--space-3, 12px);
    transition: var(--transition-fast, 150ms ease);
    box-sizing: border-box;
}

.metric-sub-input:focus {
    outline: none;
    border-color: var(--color-primary-500, #3b82f6);
    box-shadow: var(--shadow-focus, 0 0 0 3px rgba(59, 130, 246, 0.15));
}

/* ── Threshold / conditional comment alert box ── */
.metric-threshold-comment[hidden] {
    display: none;
}

.metric-threshold-comment {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 6px;
    margin-top: 4px;
}

.threshold-comment-stem {
    color: #dc2626;
    padding-top: 4px;
    display: flex;
    justify-content: center;
}

.threshold-comment-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    background: #fff7f6;
    border: 1px dashed #dc2626;
    border-radius: 10px;
}

.threshold-comment-head {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.threshold-comment-req {
    color: #dc2626;
    font-weight: 700;
}
