/* ================= 权限管理页（用户 / 角色） ================= */

/* 提示条 */
.msg { font-size: 13px; min-height: 20px; margin-bottom: 8px; color: var(--brand); }
.msg-err { color: #d93026; }

/* 通用表格（比业务表格窄，不设 min-width） */
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td {
  padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.grid th { color: var(--text-muted); font-weight: 500; background: #fafbfc; }
table.grid tbody tr:hover { background: var(--brand-soft); }
table.grid td button { padding: 3px 8px; font-size: 12px; margin-right: 6px; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20, 30, 60, .35);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--surface); border-radius: var(--radius);
  padding: 22px 24px; width: 420px; max-width: 100%;
  max-height: 90vh; overflow: auto;
  box-shadow: 0 12px 40px rgba(20, 30, 60, .22);
  display: flex; flex-direction: column; gap: 10px;
}
.modal-wide { width: 560px; }
.modal h3 { margin: 0 0 4px; font-size: 16px; }
.modal label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--text-muted); }
.modal label.chk { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.modal label.chk input { width: auto; margin: 0; cursor: pointer; }
.modal input[type=text], .modal input[type=password], .modal select { width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* 菜单勾选区 */
.menus {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; margin-top: 4px;
  max-height: 260px; overflow: auto;
}
