/*
 * Keep pointer hover from moving or scaling page content.
 *
 * This file is loaded after the shared and component styles so the rule applies
 * consistently to Admin, Clerk, Teacher, Parent and Student screens. Colour-only
 * hover feedback remains available, while the transforms that caused cards and
 * long list pages to expand into the scrollable area are neutralised.
 */
@media (hover: hover) and (pointer: fine) {
    :where(
        .custom-card,
        .role-box,
        [class*="btn"],
        [class*="button"],
        [class*="card"],
        [class*="box"],
        [class*="item"],
        [class*="tile"],
        [class*="metric"],
        [class*="stat"],
        [class*="link"],
        table tr
    ) {
        transition: none !important;
    }

    :where(
        .custom-card,
        .role-box,
        [class*="btn"],
        [class*="button"],
        [class*="card"],
        [class*="box"],
        [class*="item"],
        [class*="tile"],
        [class*="metric"],
        [class*="stat"],
        [class*="link"],
        table tr
    ):hover {
        transform: none !important;
        translate: none !important;
        scale: none !important;
        rotate: none !important;
        animation: none !important;
    }
}
