/* Having this before the shared outline is set prevents a bug in high contrast mode where some anchor or button show a different outline */
a.c-action-trigger,
button.c-action-trigger:focus {
    outline: none;
}

.ms-Fabric--isFocusVisible .css-34:focus::after {
    outline: none !important;
    border: none !important;
}

/* Create a consistant outline look for all element in the App for keyboard navigation */
:focus {
    outline: 4px solid rgb(77, 144, 254) !important;
    /* using color of Chrome's default outline */
    outline-offset: -2px !important;
}

.ms-Dropdown-item:focus {
    outline-color: rgb(1, 83, 218) !important;
    outline-offset: -5px !important;
}

/* Multiselect dropdown override */
.ms-Fabric--isFocusVisible input:focus+label::before {
    outline: 4px solid rgb(77, 144, 254) !important;
    outline-offset: -3px !important;
    left: 3px;
    width: 100%;
}

.ms-Dropdown-callout .ms-Checkbox-label {
    align-items: center !important;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Multiselect dropdown override end */

.ms-DetailsRow:focus {
    outline-offset: -5px !important;
}

/* Hide focus outline when keyboard navigation is not being used */
body.using-mouse :focus {
    outline: none !important;
}

.cursor-pointer {
    cursor: pointer;
}

.hidden-text {
    color: transparent;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard */
}

#screenReaderAnnouncer {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
    top: 0;
}

@media screen and (forced-colors: active) and (prefers-color-scheme: light) {
    .high-contrast-link {
        color: #00009F !important;
    }

    .high-contrast-button {
        border: 2px solid #000 !important;
        color: #000 !important;
        background-color: #fff !important;
    }
}

@media screen and (forced-colors: active) and (prefers-color-scheme: dark) {
    .high-contrast-link {
        color: #FFFF00 !important;
    }

    .high-contrast-button {
        border: 2px solid #fff !important;
        color: #fff !important;
        background-color: #000 !important;
    }
}

.tooltip {
    width: max-content;
    background-color: #fff;
    border: 1px solid;
    text-align: center;
    font-size: small;
    padding: 1px 3px;
    position: absolute;
    z-index: 1;

    opacity: 0;
    transition: opacity 300ms linear;
}

.tooltip-fade {
    opacity: 1;
}

.right-flex {
    display: flex;
    justify-content: flex-end;
}

.error-padding-top {
    padding: 8px 12px !important;
}