:root {
  --aptiva-hover: #302c70;
  --aptiva-hover-soft: #f0eefb;
  --aptiva-hover-ring: rgba(48, 44, 112, .14);
}

@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):not(.p-card):not(.card):not(.employee):not(.supervisor-search-result):not(.team-employee-row):not(.employee-open):not(.epi-search-submit):not(.class-list-arrow):hover,
  [role="button"]:not([aria-disabled="true"]):not(.p-card):not(.card):not(.employee):not(.supervisor-search-result):not(.team-employee-row):not(.employee-open):hover {
    background-color: var(--aptiva-hover) !important;
    border-color: var(--aptiva-hover) !important;
    color: #fff !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 7px var(--aptiva-hover-ring) !important;
    transform: translateY(-1px);
  }

  .screen-navigation button:not(:disabled):hover {
    background-color: var(--aptiva-hover) !important;
    border-color: #8b86c7 !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 3px 8px rgba(5, 14, 40, .2) !important;
    transform: translateX(2px);
  }

  a[href]:hover {
    color: var(--aptiva-hover) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  :is(.priority .p-card, .card, .employee, .team-employee-row, .supervisor-search-result, [data-clickable="true"], .report-nr-option):hover {
    border-color: var(--aptiva-hover) !important;
    border-radius: 10px !important;
    box-shadow: 0 3px 8px var(--aptiva-hover-ring) !important;
    outline: 1px solid rgba(48, 44, 112, .1);
    outline-offset: 1px;
  }

  input:not([type="checkbox"]):not([type="radio"]):not(:disabled):hover,
  select:not(:disabled):hover,
  textarea:not(:disabled):hover {
    border-color: var(--aptiva-hover) !important;
    border-radius: 7px !important;
    box-shadow: 0 0 0 2px var(--aptiva-hover-ring);
  }

  label:has(input[type="checkbox"]:not(:disabled)):hover {
    border-color: var(--aptiva-hover) !important;
    background-color: var(--aptiva-hover-soft);
  }

  summary:hover {
    color: var(--aptiva-hover);
    cursor: pointer;
  }
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
a[href],
summary,
label:has(input[type="checkbox"]:not(:disabled)) {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease,
    box-shadow .16s ease, transform .16s ease;
}

button:focus-visible,
[role="button"]:focus-visible,
a[href]:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #766ed0;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(48, 44, 112, .14);
}

@media (prefers-reduced-motion: reduce) {
  button:not(:disabled),
  [role="button"]:not([aria-disabled="true"]),
  a[href],
  summary {
    transition: none;
  }

  button:hover,
  [role="button"]:hover,
  a[href]:hover,
  summary:hover {
    transform: none !important;
  }
}
