body {
    background-color: var(--bs-primary-fill-weak);
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.main-content main {
    margin-top: 80px;
}

main{
    padding-bottom: 40px;
}

.devColourBand, .devColourBand a{
    background-color: var(--bs-primary-text);
    color: var(--bs-neutral-fill);
    z-index: 1030;
}
.testColourBand, .testColourBand a{
    background-color: var(--bs-accent-teal);
    color: var(--bs-neutral-fill);
    z-index: 1030;
}
.uatColourBand, .uatColourBand a{
    background-color:  var(--bs-accent-brand-fill);
    color: var(--bs-neutral-fill);
    z-index: 1030;
}
.trainingColourBand, .trainingColourBand a{
    background-color: var(--bs-accent-yellow);
    color: var(--bs-neutral-text);
    z-index: 1030;
}
.stagingColourBand, .stagingColourBand a{
    background-color: var(--bs-warning-fill-strong);
    color: var(--bs-neutral-fill);
    z-index: 1030;
}

.switchEnv{
    text-decoration: underline;
}

.mobile-menu {
    height: 56px;
    background-color: white;
}

.sideBar {
    width: max-content;
    min-width: max-content;
    position: fixed;
    z-index: 3;
    vertical-align: top;
    background: white;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 0 0.75rem;
    top: 8px;
    left: -250px;
    transition: left 0.5s ease-in-out;
    border-right: 1px solid var(--bs-primary-border) ;
}


nav ul {
    padding-left: 0 !important;
    margin-bottom: 0;
}

.sideBarLogin {
    width: min-content;
    min-width: min-content;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 0.75rem;
}

.between-padding {
    padding: 0.75rem;
}

.sideBarItem {
    padding: 0.75rem;
    margin-bottom: 2px;
}

.sideBarItem.active {
    background-color: var(--bs-primary-fill-medium);
}

.sideBarItem:active {
    transform: scale(0.99);
}

.sideBar nav {
    margin-bottom: 0.5rem;
}

.logo {
    padding: 1.5rem 0.5rem;
    margin-bottom: 0.5rem;
}

.sideBarItemSlide {
    height: 26px;
}

.item-width {
    display: inline;
}

@media (hover: hover) and (pointer: fine) {
    .sideBarItem:hover {
        width: 226px;
        overflow: visible;
        background-color: var(--bs-primary-fill-medium);
    }

    .sideBarItem:hover svg path {
        fill: var(--bs-primary-fill);
    }
}

@media (min-width: 601px) {
    .logo {
        padding: 1.5rem 1rem;
    }

    .hoverable {
        width: 73px;
        min-width: 73px;
        position: relative;
    }

    .sideBar {
        width: 73px;
        min-width: 73px;
        top: initial;
        left: 0 !important;
        transition: width 0.5s;
    }

    .navBarTop {
        margin-left: 98px;
    }

    .sideBarItemSlide span, .envDesktop {
        display: none;
        visibility: hidden;
        transition: visibility 0.2s ease-out;
    }

    .envMobile {
        display: block;
        visibility: visible;
        transition: visibility 0.2s ease-in;
    }

    .close-button {
        display: none !important;
    }
}

@media (hover: hover) and (pointer: fine) and (min-width: 601px) and (max-width: 905px) {
    .hoverable:hover .smallLogo {
        display: none !important;
    }

    .hoverable:hover .bigLogo {
        display: block !important;
    }

    .hoverable:hover .sideBar {
        width: 250px;
        transition: all 0.5s;
    }

    .hoverable:hover .sideBarItem {
        width: 226px;
        transition: all 0.5s;
    }

    .hoverable:hover .sideBarItemSlide span , .hoverable:hover .envDesktop {
        width: 226px;
        height: auto;
        visibility: visible;
        display: block;
        animation: show 0.5s forwards;
        transition: width 0.1s;
    }

    .sidBarBadge {
        width: auto !important;
    }

    .hoverable:hover .navBarTop {
        margin-left: 251px;
    }

    .hoverable:hover .envMobile {
        visibility: hidden;
        display: none;
    }
}

@keyframes show {
    0% {
        visibility: hidden;
    }
    15% {
        visibility: hidden;
    }
    30% {
        visibility: visible;
    }
}

@keyframes grow {
    from {
        width: 90%;
    }
    to {
        width: 100%;
    }
}


@media (min-width: 905px) {
    .hoverable {
        width: min-content;
        min-width: min-content;
    }

    .sideBar {
        position: initial;
        z-index: 0;
        width: min-content;
        min-width: min-content;
    }

    .sideBarItem {
        width: 226px;
    }

    .navBarTop {
        margin-left: 251px;
    }

    .sideBarItemSlide span, .envDesktop {
        visibility: visible;
        display: block;
    }

    .envMobile{
        visibility: hidden;
        display: none;
    }

    .smallLogo {
        display: none !important;
    }

    .bigLogo {
        display: block !important;
    }
}

li {
    list-style: none;
}

.rotated{
    writing-mode: tb-rl;
    transform: rotate(-180deg);
}

.main-content {
    overflow: auto;
    width: 100%;
    height: 100vh;
}

.profileIcon{
    color: #FFFFFF;
    background-color: var(--bs-primary-text);
}

.profileIcon:hover, .profileIcon:focus{
    color: #FFFFFF;
    background-color: var(--bs-primary-border-focus)!important;
}

.dropdown-toggle {
    height: 40px;
    width: 40px;
    margin-top: auto;
    margin-bottom: auto;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
}

.dropdown-toggle::after {
    content: none;
    border: 0;
    vertical-align: middle
}

.bodyContent {
    padding-left: 40px !important;
    padding-right: 40px !important;
}

.navBarTop {
    padding-bottom: 16px;
    background-color: var(--bs-primary-fill-weak);
}

.dropdown-menu li {
    padding: 0 8px;
}

.menuItemHeader{
    padding: 8px 10px;
}

.menuItemHeaderItem:hover{
    background-color: var(--bs-primary-fill-weak) !important;
    border-radius: 8px;
}
.dropdown-item:hover{
    background-color: var(--bs-primary-fill-weak) !important;
}

.menuItemHr{
    background-color: var(--bs-primary-border) !important;
    margin: 4px 0;
}

/* Tables */
th:first-of-type,
td:first-of-type {
    padding-left: 2rem;
}

th:last-of-type,
td:last-of-type {
    padding-right: 2rem;
}

.table th {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.table td {
    padding-top: 1.62rem;
    padding-bottom: 1.62rem;
}

.table tr:last-of-type td {
    border-bottom-width: 0;
}

/* Selects */
.form-select {
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.66 8.00016L12.25 12.5802L16.84 8.00016L18.25 9.41016L12.25 15.4102L6.25 9.41016L7.66 8.00016Z' fill='%23033572'/%3E%3C/svg%3E%0A");
    background-size: unset;
}

.form-select[aria-expanded="true"] {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.41 15.41L12 10.83L16.59 15.41L18 14L12 8L6 14L7.41 15.41Z' fill='%23033572'/%3E%3C/svg%3E%0A");
}

.form-select.btn-outline-primary-fill[aria-expanded="false"]:not(.date-range-select):hover {
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='24' viewBox='0 0 25 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.66 8.00016L12.25 12.5802L16.84 8.00016L18.25 9.41016L12.25 15.4102L6.25 9.41016L7.66 8.00016Z' fill='%23ffffff'/%3E%3C/svg%3E%0A");
}

.form-select.btn-outline-primary-fill[aria-expanded="true"]:not(.date-range-select):hover {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7.41 15.41L12 10.83L16.59 15.41L18 14L12 8L6 14L7.41 15.41Z' fill='%23ffffff'/%3E%3C/svg%3E%0A");
}

/* Switches */
.form-switch .form-check-input {
    width: 2.75rem;
    height: 1.5rem;
    background-color: var(--bs-primary-fill-medium);
    border: none;
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_5235_166)'%3E%3Ccircle cx='14' cy='14' r='10' fill='white'/%3E%3Ccircle cx='14' cy='14' r='9.5' stroke='%23CDD7E3'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_5235_166' x='0' y='0' width='28' height='28' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset/%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_5235_166'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_5235_166' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
}

.form-switch .form-check-input.checkbox-inverted {
    width: 2.75rem;
    height: 1.5rem;
    background-color: var(--bs-primary-fill);
    border: none;
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_5235_166)'%3E%3Ccircle cx='14' cy='14' r='10' fill='white'/%3E%3Ccircle cx='14' cy='14' r='9.5' stroke='%23CDD7E3'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_5235_166' x='0' y='0' width='28' height='28' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset/%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_5235_166'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_5235_166' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
}

.form-switch.form-switch-md {
    padding-left: 2.5rem;
}

.form-switch.form-switch-md .form-check-input,
.form-switch.form-switch-md .form-check-input.checkbox-inverted {
    width: 3.5rem;
    height: 2rem;
}

.form-switch .form-check-input:checked {
    background-color: var(--bs-primary-fill);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e") !important;
}

.form-switch .checkbox-inverted.form-check-input:checked {
    background-color: var(--bs-white);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23033572'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:focus,
.form-switch .checkbox-inverted.form-check-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg filter='url(%23filter0_d_5235_166)'%3E%3Ccircle cx='14' cy='14' r='10' fill='white'/%3E%3Ccircle cx='14' cy='14' r='9.5' stroke='%23CDD7E3'/%3E%3C/g%3E%3Cdefs%3E%3Cfilter id='filter0_d_5235_166' x='0' y='0' width='28' height='28' filterUnits='userSpaceOnUse' color-interpolation-filters='sRGB'%3E%3CfeFlood flood-opacity='0' result='BackgroundImageFix'/%3E%3CfeColorMatrix in='SourceAlpha' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0' result='hardAlpha'/%3E%3CfeOffset/%3E%3CfeGaussianBlur stdDeviation='2'/%3E%3CfeComposite in2='hardAlpha' operator='out'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/%3E%3CfeBlend mode='normal' in2='BackgroundImageFix' result='effect1_dropShadow_5235_166'/%3E%3CfeBlend mode='normal' in='SourceGraphic' in2='effect1_dropShadow_5235_166' result='shape'/%3E%3C/filter%3E%3C/defs%3E%3C/svg%3E%0A");
}

.form-switch .form-check-input:active,
.form-switch .checkbox-inverted.form-check-input:active{
    filter: brightness(100%);
}

/* Checkboxes */
.form-check-input:checked[type=checkbox]:not([role=switch]),
.checkbox-inverted.form-check-input:checked[type=checkbox]:not([role=switch]) {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.0001 10.7799L3.2201 7.9999L2.27344 8.9399L6.0001 12.6666L14.0001 4.66656L13.0601 3.72656L6.0001 10.7799Z' fill='white'/%3E%3C/svg%3E%0A");
    background-size: 1em;
}

/* Buttons */
.btn-outline-primary-fill:active svg path,
.btn-outline-primary-fill:hover svg path {
    fill: var(--bs-neutral-fill);
}

.fv-plugins-bootstrap5-row-invalid > button.form-select {
    border:1px solid var(--bs-error-border);
}

.btn-outline-primary-border:hover {
    background-color: var(--bs-primary-fill-medium);
}

.btn-outline-neutral-border-inverse:hover svg path {
    fill: var(--bs-primary-fill);
}

/* Tooltips */
.healius-tooltip {
    display: inline-block;
    width: fit-content;
}

.healius-tooltip .healius-tooltip-window {
    padding: 0.375rem 0.5625rem;
    color: var(--bs-neutral-text-inverse);
    background-color: var(--bs-neutral-fill-strong);
    border-radius: 4px;
    z-index: 1000;
    pointer-events: none;
    display: none;
}

.healius-tooltip .healius-tooltip-window[data-show] {
    display: block;
}

.healius-tooltip .healius-tooltip-window i {
    position: absolute;
    width: 20px;
    height: 20px;
    overflow: hidden;
}

.healius-tooltip .healius-tooltip-window[data-popper-placement="top"] i {
    top: 100%;
    left: 50%;
    transform: translate(-50%, 0);
}

.healius-tooltip .popper-tooltip-window[data-popper-placement="bottom"] i {
    bottom: 100%;
}

.healius-tooltip .healius-tooltip-window[data-popper-placement="left"] i {
    left: 100%;
}

.healius-tooltip .healius-tooltip-window[data-popper-placement="right"] i {
    right: 100%;
}

.healius-tooltip .healius-tooltip-window i::after {
    content:'';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--bs-neutral-fill-strong);
}

.healius-tooltip .healius-tooltip-window[data-popper-placement="top"] i::after {
    left:50%;
    transform:translate(-50%, calc(-50% - 4px)) rotate(45deg);
}

.healius-tooltip .healius-tooltip-window[data-popper-placement="bottom"] i::after {
    left:50%;
    transform:translate(-50%, 50%) rotate(-45deg);
}

.healius-tooltip .healius-tooltip-window[data-popper-placement="left"] i::after {
    transform:translate(-50%, -50%) rotate(-45deg);
    top: 50%;
}

.healius-tooltip .healius-tooltip-window[data-popper-placement="right"] i::after {
    transform:translate(0, -50%) rotate(-45deg);
    top: 50%;
    right: -10px;
}

.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: var(--bs-neutral-fill-strong) !important;
}

.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: var(--bs-neutral-fill-strong) !important;
}

.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: var(--bs-neutral-fill-strong) !important;
}

.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: var(--bs-neutral-fill-strong) !important;
}

.tooltip .tooltip-inner {
    max-width: fit-content;
    background-color: var(--bs-neutral-fill-strong) !important;
    color: var(--bs-neutral-text-inverse) !important;
    text-align: left;
    font-size: 14px;
    line-height: 20px;
    padding: 0.375rem 0.5625rem;
    border-radius: 4px;
}
