@media (max-width: 1023px) {
	.app-sidebar.is-open { transform: translateX(0); }
	body.sidebar-open { overflow: hidden; }
}

@media (max-width: 640px) {
	.table th, .table td { padding: 0.65rem 0.75rem; }
	.card-header, .card-body, .stat-card { padding: 1rem; }
	.table { min-width: 36rem; }

	.notification-page-actions { width: 100%; }
	.notification-page-actions > button { flex: 1 1 8rem; justify-content: center; min-height: 2.75rem; }
	.notification-filter-tabs { gap: 1.5rem; }
	.notification-page-item { flex-wrap: wrap; gap: 0.5rem 0.75rem; padding: 1rem; }
	.notification-page-open { flex: 1 1 100%; gap: 0.75rem; }
	.notification-page-content { overflow-wrap: anywhere; }
	.notification-page-details { margin-left: 3.25rem; }
	.notification-page-delete { width: 2.75rem; height: 2.75rem; margin-left: auto; }
	.notification-pagination { flex-wrap: wrap; gap: 0.75rem; }

	#notification-dropdown {
		position: fixed;
		top: calc(4rem + env(safe-area-inset-top));
		right: 0.75rem;
		left: 0.75rem;
		width: auto;
		max-height: calc(100vh - 5rem);
		max-height: calc(100dvh - 5rem);
	}
	#notification-dropdown:not(.hidden) { display: flex; flex-direction: column; }
	#notification-list { min-height: 0; max-height: none; flex: 1 1 auto; }
}

@media print {
	.app-sidebar, header, footer, .no-print { display: none !important; }
	main { overflow: visible !important; }
}
