63962d51c1
Backend: - Add SYNC_TABLES config (pacientes, agendamentos, financeiro, leads, guias) - Add getSheetsClient(), ensureSheetTab(), pushTableToSheet(), pullTableFromSheet() - Add schedulePush() debounced 5s auto-push after every write to main tables - Add GET /api/sync/status, POST /api/sync/push, POST /api/sync/pull - Update OAuth scope to include spreadsheets Frontend: - Redesign SyncView: per-table status grid, two-button operation (Backup/Restore), terminal log with color-coded lines, auto-backup info notice Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>