/* ── 用户管理 统计条 ── */
.um-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.um-stat {
    flex: 1 1 100px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    min-width: 90px;
}
.um-stat-n {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1;
}
.um-stat-l {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* ── 用户表格 ── */
.um-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}
.um-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.um-table th {
    background: #f8fafc;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}
.um-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.um-table tr:last-child td { border-bottom: none; }
.um-table tr:hover td { background: #f8fafc; }

/* ── 角色标签 ── */
.um-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.um-badge-mgr  { background: #dbeafe; color: #1e40af; }
.um-badge-pur  { background: #fef9c3; color: #854d0e; }
.um-badge-exe  { background: #dcfce7; color: #166534; }

/* ── 操作按钮行 ── */
.um-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* New role badges */
.um-badge-own { background: #fef9c3; color: #854d0e; }   /* 业主 gold */
.um-badge-sup { background: #dbeafe; color: #1e40af; }   /* 工地主管 blue */
.um-badge-for { background: #dcfce7; color: #166534; }   /* 工头 green */
.um-badge-pur { background: #fce7f3; color: #9d174d; }   /* 采购员 pink */
.um-badge-mgr { background: #f1f5f9; color: #475569; }   /* 系统管理员 gray */
.um-badge-pat { background: #fef3c7; color: #78350f; }   /* 巡逻员 amber */
