/* Diagnosis type-ahead (public/js/icd10-picker.js). The list sits in normal
   flow under the input so a scrolling modal never clips it. Application
   tokens only; no literal colour, no new breakpoint. */
.icd10-picker-list {
    list-style: none;
    margin: calc(var(--space-2, 8px) * -1) 0 var(--space-4, 16px);
    padding: 0;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--stone-300);
    border-radius: var(--border-radius);
    background: var(--surface-color);
    box-shadow: var(--shadow-heavy);
}
.icd10-picker-list[hidden] { display: none; }
.icd10-picker-option {
    display: flex;
    gap: var(--space-3, 12px);
    align-items: baseline;
    padding: var(--space-2, 8px) var(--space-3, 12px);
    min-height: 44px;
    cursor: pointer;
    border-bottom: 1px solid var(--stone-200);
}
.icd10-picker-option:last-child { border-bottom: 0; }
.icd10-picker-option.is-active { background: var(--sage-100); }
.icd10-picker-code { flex: none; min-width: 64px; color: var(--primary-color); }
.icd10-picker-desc { color: var(--text-primary); line-height: 1.4; }
.icd10-picker-empty { padding: var(--space-3, 12px); color: var(--text-secondary); font-size: 13px; }
.icd10-picker-selected {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2, 8px) var(--space-3, 12px);
    padding: var(--space-3, 12px);
    margin-bottom: var(--space-4, 16px);
    border: 1px solid var(--sage-600);
    border-radius: var(--border-radius);
    background: var(--sage-100);
}
.icd10-picker-selected[hidden] { display: none; }

/* Combined "Diagnosis & Treatment Plan" chart tab: the diagnosis list is the
   first section of the document, the plans follow. */
.chart-dx-section {
    margin-bottom: var(--space-6, 24px);
    padding-bottom: var(--space-5, 20px);
    border-bottom: 1px solid var(--stone-200);
}

/* Diagnosis section of the treatment plan form. */
.plan-dx-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
    margin-bottom: var(--space-3, 12px);
}
.plan-dx-chips:empty { display: none; }
.plan-dx-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2, 8px);
    padding: var(--space-1, 4px) var(--space-3, 12px);
    border-radius: 999px;
    background: var(--sage-100);
    color: var(--text-primary);
    font-size: 13px;
}
.plan-dx-chip-remove {
    min-width: 24px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.plan-dx-hint {
    margin: 0 0 var(--space-4, 16px);
    color: var(--text-secondary);
    font-size: 13px;
}
