Modernized Notification System: Migrated from hardcoded admin emails to the notifyUsers utility, respecting individual staff preferences (Email/SMS). Anchor-Based Cron Logic: Refactored the reminder engine to trigger alerts based strictly on the currently active window, preventing redundant notifications. Enhanced Email Intelligence: Updated templates to explicitly show the specific "Renewal Due For" date and provide targeted "Next Action" guidance. Resolved Category Display Issues: Fixed a bug where document category IDs were showing instead of names by implementing a reliable database lookup. Improved Subject Clarity: Automated Title Case formatting for all document names and categories in email subjects and bodies for a more professional look. Conflict Prioritization: Implemented a priority rule to ensure admins receive the most urgent alert (e.g., "Expired" vs "Due") when renewal windows overlap. Diagnostic Developer Tools: Added a diagnostic endpoint (/test-doc-emails) with a ?debug=true simulator mode for instant verification of notification logic.