/* Touch-device specific - Modernizr detected */
.touchevents .ui-autocomplete .ui-menu-item:hover, .touchevents .ui-autocomplete .ui-menu-item:focus,
.touchevents .ui-autocomplete .ui-menu-item:hover a strong, .touchevents .ui-autocomplete .ui-menu-item:focus a strong,
.touchevents .ui-autocomplete .ui-menu-item:hover div strong, .touchevents .ui-autocomplete .ui-menu-item:focus div strong {
    background-color: var(--maincolor);
    color: var(--alternate-text-color);
}
.touchevents .ui-autocomplete .ui-menu-item:hover div, .touchevents .ui-autocomplete .ui-menu-item:focus div,
.touchevents .ui-autocomplete .ui-menu-item:hover a, .touchevents .ui-autocomplete .ui-menu-item:focus a {
    color: var(--alternate-text-color);
}

/* topalign dialogs with input fields on touch screens because of toggled keyboard */
.touchevents .inputDialog.dialogContainerActive {
    align-items: flex-start;
}

/* Force scrollbar on ipad/safari */
.ui-autocomplete::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 8px;
}

.ui-autocomplete::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background-color: rgba(156, 156, 156, .8);
}

/* Remove input field contact and credential icons on Safari */
input::-webkit-contacts-auto-fill-button, input::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}

input[type=text], input[type=number],input[type=password] {
    -webkit-appearance: none;
    appearance:         none;
}