/* 质控结果表格：表头 sm；tbody 与盲样编号列同为 sm */
.qc-results-table thead th {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.qc-results-table tbody {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.qc-raw-data-section--attention {
    border-radius: 0.5rem;
    outline: 2px solid hsl(var(--destructive) / 0.65);
    outline-offset: 4px;
    animation: qc-raw-data-attention-pulse 1.2s ease-in-out 2;
}

@keyframes qc-raw-data-attention-pulse {
    0%,
    100% {
        outline-color: hsl(var(--destructive) / 0.35);
    }

    50% {
        outline-color: hsl(var(--destructive) / 0.85);
    }
}

/* 质控填报侧栏：考核机构 Combobox（Class 在触发 button 上） */
.qc-institution-combobox[role="combobox"],
button.qc-institution-combobox[role="combobox"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.375rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    max-height: 2.25rem !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis;
    text-align: left;
    flex-wrap: nowrap !important;
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

.qc-institution-combobox[role="combobox"] svg,
button.qc-institution-combobox[role="combobox"] svg {
    grid-column: 2;
    flex-shrink: 0;
    justify-self: end;
}

.qc-institution-combobox[role="combobox"] > span,
.qc-institution-combobox[role="combobox"] > div,
button.qc-institution-combobox[role="combobox"] > span,
button.qc-institution-combobox[role="combobox"] > div {
    grid-column: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    text-align: left;
}

/* 父级包裹（Combobox 根节点也可能是 div.relative） */
.min-w-0.space-y-2 .relative:has(> button.qc-institution-combobox) {
    min-width: 0;
    max-width: 100%;
}

/* Portal 下拉项 */
.neoui-portal:has([placeholder="搜索机构名称…"]) [role="option"] {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    min-height: 2.25rem;
    max-height: 2.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    line-height: 1.25rem;
}

.neoui-portal:has([placeholder="搜索机构名称…"]) [role="option"] > span,
.neoui-portal:has([placeholder="搜索机构名称…"]) [role="option"] > div {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}
