/* health_tags 标签管理：标签库 / 会员打标 */
.health-tags-root {
    padding: 4px 2px;
}

.htg-input-hidden {
    display: none !important;
}

.htg-stack {
    width: 100%;
}

.htg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.htg-table th {
    text-align: left;
    color: #64748b;
    font-weight: 600;
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    white-space: nowrap;
}

.htg-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.htg-table tbody tr:hover {
    background: #f8fafc;
}

.htg-table .htg-empty {
    text-align: center;
    color: #94a3b8;
    padding: 18px 0;
}

.htg-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.htg-cat-panel {
    max-height: 560px;
    overflow-y: auto;
}

/* 分类行：主按钮占满，编辑/删除小按钮靠右 */
.htg-cat-row {
    display: flex;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.htg-cat-row .htg-cat-main {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.htg-cat-row .htg-act-btn:not(.htg-cat-main) {
    flex: none;
    padding: 4px 7px;
    min-height: 0;
}

.htg-tag-cell {
    max-width: 360px;
}

.htg-current-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.htg-pool-check {
    min-width: 140px;
}
