/*
 * Cashback Pro V36.7.154
 * Touch press/drag release fix for navigation and admin sub-navigation.
 *
 * On touchscreens browsers can retain :hover after a finger is dragged away.
 * Suppress hover-only visuals on coarse pointers, while preserving .active
 * selected/current states and all normal desktop hover behavior.
 */
@media (hover: none) and (pointer: coarse) {
  /* Main sidebar navigation: current page remains highlighted via .active. */
  html body #app-sidebar #main-tabs-nav .tab-btn:hover:not(.active):not([aria-current="page"]),
  html body #app-sidebar .side-link:hover:not(.active):not([aria-current="page"]) {
    color: inherit !important;
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
  }

  /* Admin's own sub-tabs and nested customer/admin/back-up tabs. */
  html body #tab-admin .admin-subnav-btn:hover:not(.active):not([aria-selected="true"]),
  html body #tab-admin .customer-admin-subnav-btn:hover:not(.active):not([aria-selected="true"]),
  html body #tab-admin .backup-update-tab-btn:hover:not(.active):not([aria-selected="true"]),
  html body #tab-admin .tabs-nav .tab-btn:hover:not(.active):not([aria-selected="true"]),
  html body #tab-admin .admin-nav-shell .admin-subnav-btn:hover:not(.active):not([aria-selected="true"]) {
    color: var(--text-muted, inherit) !important;
    background-color: var(--bg-surface, var(--surface, transparent)) !important;
    border-color: var(--border-color, rgba(130,150,185,.28)) !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
  }

  /* Other common admin action buttons: remove hover-only lift/glow. */
  html body #tab-admin button:hover:not(:active):not(.active):not(:disabled),
  html body #tab-admin a:hover:not(.active):not([aria-current="page"]) {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
  }

  /* Never leave browser's tap highlight visible after finger release. */
  html body #app-sidebar button,
  html body #tab-admin button,
  html body #app-sidebar a,
  html body #tab-admin a {
    -webkit-tap-highlight-color: transparent !important;
  }
}
