/* ============================================================
   长卿地图查询 · 管理后台
   风格：饿了么 Element 系后台（深色侧边栏 + 白顶栏 + 浅灰内容区）
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
                 "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background: #f0f2f5;
    color: #303133;
    font-size: 14px;
    line-height: 1.5;
}

/* ==================== 顶部导航（白底 + 细边框） ==================== */
.gov-topbar {
    height: 50px;
    background: #fff;
    border-bottom: 1px solid #e6e6e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
}
.gov-brand { display: flex; align-items: center; gap: 10px; }
.gov-emblem {
    width: 32px; height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #409EFF, #2b6de0);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
}
.gov-title-block { display: flex; flex-direction: column; line-height: 1.25; }
.gov-title-main { font-size: 15px; font-weight: 600; color: #303133; }
.gov-title-sub { font-size: 11px; color: #909399; }
.gov-topbar-right { display: flex; align-items: center; gap: 14px; }
.gov-user { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #606266; }
.role-tag {
    display: inline-block;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #ecf5ff;
    color: #409EFF;
    border: 1px solid #d9ecff;
}
.gov-link {
    font-size: 13px; color: #409EFF; text-decoration: none;
}
.gov-link:hover { color: #66b1ff; }
.gov-btn-logout {
    padding: 6px 14px;
    background: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}
.gov-btn-logout:hover { color: #409EFF; border-color: #409EFF; background: #ecf5ff; }

/* ==================== 整体布局 ==================== */
.gov-layout {
    display: flex;
    margin-top: 50px;
    min-height: calc(100vh - 50px);
}

/* ==================== 深色侧边栏（Element 经典 #304156） ==================== */
.gov-sidebar {
    width: 210px;
    background: #304156;
    flex-shrink: 0;
    padding: 8px 0 16px;
    overflow-y: auto;
}
.gov-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    color: #bfcbd9;
    cursor: pointer;
    font-size: 14px;
    border-left: 4px solid transparent;
    transition: all 0.2s;
    user-select: none;
}
.gov-menu-item:hover { color: #fff; background: #263445; }
.gov-menu-item.active {
    color: #fff;
    background: #263445;
    border-left-color: #409EFF;
}
.gov-menu-icon { font-size: 16px; width: 20px; text-align: center; }
.gov-menu-footer {
    margin-top: 24px;
    padding: 16px 20px;
    border-top: 1px solid #3d5068;
}
.gov-back-link {
    color: #8aa2bd;
    font-size: 12px;
    text-decoration: none;
}
.gov-back-link:hover { color: #fff; }

/* ==================== 内容区 ==================== */
.gov-main { flex: 1; padding: 16px; min-width: 0; }
.gov-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    padding: 16px;
}
.gov-card-title { font-size: 16px; font-weight: 600; color: #303133; }

/* 标签页内容切换 */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ==================== 统计卡片 ==================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}
.stat-card {
    background: #fff;
    border-radius: 4px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
    cursor: pointer;
    border-left: 4px solid #409EFF;
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 21, 41, 0.12); }
.stat-card.pending { border-left-color: #E6A23C; }
.stat-card.approved { border-left-color: #67C23A; }
.stat-card.rejected { border-left-color: #F56C6C; }
.stat-card.total { border-left-color: #409EFF; }
.stat-num {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #303133;
    line-height: 1.2;
}
.stat-label { font-size: 13px; color: #909399; margin-top: 4px; display: block; }

/* ==================== 筛选栏 ==================== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.filter-bar select, .filter-bar input {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 13px;
    color: #606266;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}
.filter-bar select:focus, .filter-bar input:focus { border-color: #409EFF; }
.filter-bar input { width: 200px; }

/* Element 风格按钮 */
.btn-search, .btn-add-user, .btn-save, .btn-export, .btn-import, .btn-download {
    display: inline-block;
    padding: 8px 16px;
    background: #409EFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}
.btn-search:hover, .btn-add-user:hover, .btn-save:hover { background: #66b1ff; }
.btn-download {
    background: #fff;
    color: #409EFF;
    border: 1px solid #409EFF;
}
.btn-download:hover { background: #ecf5ff; }
.btn-import { background: #67C23A; }
.btn-import:hover { background: #85ce61; }
.btn-export { background: #409EFF; }
.btn-export:hover { background: #66b1ff; }

/* 批量操作条 */
.batch-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    font-size: 13px;
    color: #606266;
}
.select-all-label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.selected-count { color: #909399; }
.btn-approve {
    padding: 6px 14px;
    background: #67C23A;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.btn-approve:hover { background: #85ce61; }
.btn-reject {
    padding: 6px 14px;
    background: #F56C6C;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.btn-reject:hover { background: #f78989; }

/* ==================== 数据表格（Element 风格） ==================== */
.table-wrap { overflow-x: auto; }
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th {
    background: #f5f7fa;
    color: #909399;
    font-weight: 500;
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #ebeef5;
    font-size: 13px;
    white-space: nowrap;
}
.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ebeef5;
    font-size: 13px;
    color: #606266;
    vertical-align: middle;
}
.data-table tbody tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: #f5f7fa; }
.loading-cell { text-align: center; color: #909399; padding: 30px 0 !important; }

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
}
.status-badge.pending { background: #fdf6ec; color: #E6A23C; border: 1px solid #faecd8; }
.status-badge.approved { background: #f0f9eb; color: #67C23A; border: 1px solid #e1f3d8; }
.status-badge.rejected { background: #fef0f0; color: #F56C6C; border: 1px solid #fde2e2; }

/* 场景标签 */
.scene-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background: #ecf5ff;
    color: #409EFF;
    font-size: 12px;
    white-space: nowrap;
}

/* 行内操作按钮 */
.action-btn {
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    border: 1px solid transparent;
    transition: all 0.15s;
}
.action-btn.approve { background: #f0f9eb; color: #67C23A; border-color: #e1f3d8; }
.action-btn.approve:hover { background: #67C23A; color: #fff; }
.action-btn.reject { background: #fef0f0; color: #F56C6C; border-color: #fde2e2; }
.action-btn.reject:hover { background: #F56C6C; color: #fff; }
.action-btn.edit { background: #ecf5ff; color: #409EFF; border-color: #d9ecff; }
.action-btn.edit:hover { background: #409EFF; color: #fff; }

/* ==================== 分页（Element 风格） ==================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 14px;
    flex-wrap: wrap;
}
.pagination .page-total { font-size: 13px; color: #909399; margin-right: 6px; }
.pagination button {
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid #dcdfe6;
    background: #fff;
    color: #606266;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}
.pagination button:hover { color: #409EFF; border-color: #409EFF; }
.pagination button.active { background: #409EFF; border-color: #409EFF; color: #fff; }
.pagination button:disabled { color: #c0c4cc; cursor: not-allowed; border-color: #ebeef5; }

/* ==================== 数据管理 ==================== */
.data-panel-header { margin-bottom: 14px; }
.data-panel-desc { font-size: 12px; color: #909399; margin-top: 6px; }
.data-scene-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #ebeef5;
    border-radius: 4px;
}
.data-label { font-size: 13px; font-weight: 600; color: #303133; }
.data-scene-select {
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 7px 10px;
    font-size: 13px;
    min-width: 200px;
    background: #fff;
    outline: none;
}
.data-scene-select:focus { border-color: #409EFF; }
.data-scene-desc { font-size: 12px; color: #67C23A; }
.data-block {
    border: 1px solid #ebeef5;
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
}
.data-block-title {
    padding: 11px 16px;
    background: #f5f7fa;
    font-size: 14px;
    font-weight: 600;
    color: #303133;
    border-bottom: 1px solid #ebeef5;
}
.data-block-body { padding: 16px; }
.data-import-row, .data-export-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.data-file-input {
    padding: 6px;
    border: 1px dashed #c0c4cc;
    border-radius: 4px;
    font-size: 13px;
    background: #fafafa;
    max-width: 320px;
    color: #606266;
}
.data-checkbox { font-size: 13px; color: #606266; display: flex; align-items: center; gap: 6px; }
.data-tip { font-size: 12px; color: #909399; margin-top: 10px; }
#data-import-result { margin-top: 12px; }
.import-loading {
    padding: 12px;
    background: #ecf5ff;
    border-radius: 4px;
    color: #409EFF;
    font-size: 13px;
}
.import-ok {
    padding: 10px 14px;
    background: #f0f9eb;
    border: 1px solid #e1f3d8;
    border-radius: 4px;
    color: #67C23A;
    font-size: 13px;
    font-weight: 600;
}
.import-pending {
    padding: 10px 14px;
    background: #fdf6ec;
    border: 1px solid #faecd8;
    border-radius: 4px;
    color: #E6A23C;
    font-size: 13px;
    font-weight: 600;
}
.import-error {
    padding: 10px 14px;
    background: #fef0f0;
    border: 1px solid #fde2e2;
    border-radius: 4px;
    color: #F56C6C;
    font-size: 13px;
}
.import-summary { margin-top: 8px; font-size: 13px; color: #606266; }
.import-errors { margin-top: 12px; }
.import-errors-title { font-size: 13px; font-weight: 600; color: #E6A23C; margin-bottom: 8px; }
.import-errors .data-table th { font-size: 12px; }

/* ==================== 弹窗（用户管理） ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.modal {
    background: #fff;
    border-radius: 6px;
    width: 440px;
    max-width: 92vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #ebeef5;
}
.modal-header h3 { font-size: 15px; color: #303133; font-weight: 600; }
.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #909399;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: #F56C6C; }
.modal-body { padding: 16px 18px; }
.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 13px;
    color: #606266;
    margin-bottom: 6px;
}
.form-group input, .form-group select {
    width: 100%;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
    color: #606266;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}
.form-group input:focus, .form-group select:focus { border-color: #409EFF; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 18px;
    border-top: 1px solid #ebeef5;
}
.btn-cancel {
    padding: 8px 16px;
    background: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}
.btn-cancel:hover { color: #409EFF; border-color: #409EFF; }

/* 村干部管辖村多选网格 */
.village-check-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.btn-village-mini {
    padding: 3px 10px;
    font-size: 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-village-mini:hover { color: #409EFF; border-color: #409EFF; background: #ecf5ff; }
.village-check-count { font-size: 12px; color: #909399; }
.village-check-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #ebeef5;
    border-radius: 4px;
    padding: 8px;
    background: #fafbfc;
}
@media (max-width: 600px) {
    .village-check-grid { grid-template-columns: repeat(2, 1fr); }
}
.village-check-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #374151;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.village-check-item:hover { background: #ecf5ff; }
.village-check-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
}

/* ==================== 登录页（Element 风格） ==================== */
.login-page {
    background: linear-gradient(135deg, #2b5876 0%, #4e4376 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-wrap { width: 400px; max-width: 92vw; text-align: center; }
.login-header { margin-bottom: 24px; }
.login-emblem {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.login-header h1 { font-size: 22px; color: #fff; font-weight: 600; letter-spacing: 1px; }
.login-header p { font-size: 13px; color: rgba(255, 255, 255, 0.7); margin-top: 6px; }
.login-card {
    background: #fff;
    border-radius: 6px;
    padding: 32px 30px 28px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    text-align: left;
}
.login-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 22px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.login-card .form-group { margin-bottom: 18px; }
.login-card .form-group label {
    display: block;
    font-size: 13px;
    color: #606266;
    margin-bottom: 8px;
}
.login-card .form-group input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
}
.login-card .form-group input:focus { border-color: #409EFF; }
.login-error {
    background: #fef0f0;
    border: 1px solid #fde2e2;
    color: #F56C6C;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    margin-bottom: 14px;
}
.btn-login {
    width: 100%;
    height: 40px;
    background: #409EFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    letter-spacing: 6px;
    transition: background 0.2s;
    margin-top: 4px;
}
.btn-login:hover { background: #66b1ff; }
.btn-login:disabled { background: #a0cfff; cursor: not-allowed; }
.login-footer { margin-top: 18px; }
.login-footer a { color: rgba(255, 255, 255, 0.85); font-size: 13px; text-decoration: none; }
.login-footer a:hover { color: #fff; text-decoration: underline; }
.login-copyright {
    position: fixed;
    bottom: 16px;
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
    .gov-sidebar { width: 56px; }
    .gov-menu-item span:not(.gov-menu-icon) { display: none; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .gov-title-sub { display: none; }
}

/* ==================== 场景权限管理 ==================== */
.perm-level {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 2px;
}
.perm-level.public { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.perm-level.staff { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.perm-level.admin { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.perm-level.village { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.perm-level.normal { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }

/* 管辖村标签（用户列表/村干部场景权限） */
.village-tag {
    display: inline-block;
    margin: 1px 3px 1px 0;
    padding: 1px 7px;
    border-radius: 4px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    white-space: nowrap;
}
.perm-select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
}
.perm-select:focus { outline: none; border-color: #409EFF; }
.perm-cat-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f2f5;
    color: #606266;
    border-radius: 4px;
    font-size: 12px;
}

/* ==================== 按用户分配场景权限 ==================== */
.user-perm-panel {
    margin-top: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 14px;
}
.user-perm-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (max-width: 1100px) {
    .user-perm-grid { grid-template-columns: 1fr; }
}
.user-perm-cat {
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    padding: 10px 12px;
}
.user-perm-cat-title {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    border-left: 4px solid #2563eb;
    padding-left: 8px;
    margin-bottom: 10px;
}
.user-perm-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px 4px;
    border-bottom: 1px dashed #eef0f3;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}
.user-perm-item:last-child { border-bottom: none; }
.user-perm-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
    cursor: pointer;
}
.user-perm-item input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .6; }
.user-perm-name { font-weight: 500; }
.user-perm-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 18px;
}
.user-perm-tag.default { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.user-perm-tag.privacy { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.user-perm-tag.admin-only { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }
.user-perm-tag.global-public { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.user-perm-tag.global-normal { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }
.user-perm-tag.global-village { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.user-perm-tag.global-town, .user-perm-tag.global-staff { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.user-perm-tag.global-admin { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.user-perm-warn {
    width: 100%;
    font-size: 12px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 4px;
    padding: 3px 8px;
}

/* ==================== 人员管理（人库） v20260818 ==================== */

/* 双列表单行 */
.form-row2 { display: flex; gap: 12px; }
.form-row2 .form-group { flex: 1; min-width: 0; }

/* 受限标记 */
.sens-flag {
    display: inline-block;
    font-size: 10px;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 3px;
    padding: 0 4px;
    line-height: 14px;
    vertical-align: middle;
    margin-left: 2px;
}

/* 身份标签 */
.id-tag {
    display: inline-block;
    font-size: 11px;
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 3px;
    padding: 0 6px;
    line-height: 18px;
    margin: 1px 3px 1px 0;
    white-space: nowrap;
}
.id-tag.sens { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.id-tag .id-tag-x { color: #94a3b8; margin-left: 2px; text-decoration: none; font-weight: bold; }
.id-tag .id-tag-x:hover { color: #dc2626; }

/* 编辑弹窗：身份分组勾选 */
.identity-group-block { margin-bottom: 10px; }
.identity-group-name {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
    border-left: 3px solid #bfdbfe;
    padding-left: 6px;
}
.identity-chk-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.identity-chk {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12.5px;
    color: #374151;
    cursor: pointer;
    white-space: nowrap;
}
.identity-chk input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    accent-color: #2563eb;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
}

/* 表格操作按钮 */
.btn-op {
    font-size: 11.5px;
    color: #2563eb;
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 2px 8px;
    margin-right: 4px;
    cursor: pointer;
}
.btn-op:hover { background: #eff6ff; }
.btn-op.danger { color: #dc2626; border-color: #fecaca; }
.btn-op.danger:hover { background: #fef2f2; }

/* 详情弹窗 */
.pd-section { margin-bottom: 16px; }
.pd-section-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f5f9;
}
.pd-info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pd-info-table td { padding: 5px 8px; border-bottom: 1px dashed #f1f5f9; }
.pd-info-table .pd-k {
    width: 110px;
    color: #64748b;
    background: #f8fafc;
}
.pd-identity-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.pd-empty { font-size: 12.5px; color: #94a3b8; padding: 6px 0; }
.pd-add-sel {
    font-size: 12.5px;
    padding: 3px 6px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    margin-left: 8px;
    max-width: 200px;
}

/* 关系轨迹表 */
.pd-rel-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pd-rel-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.pd-rel-table td { padding: 6px 8px; border-bottom: 1px solid #f1f5f9; }
.pd-rel-table tr.hist td { color: #94a3b8; background: #fafafa; }
.pd-rel-table tr.hist td .btn-op { color: #94a3b8; border-color: #e5e7eb; }
