:root {
    --oefit_grey: #4c626c;
}

input:not([type="radio"]) {
    border-radius: 0 !important;
}

.custom_square_checklist input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border-radius: 0 !important;
    width: 14px;
    height: 14px;
    border: 2px solid var(--oefit_grey) !important;
    background-color: transparent;
    cursor: pointer;
    position: relative;
}

.custom_square_checklist input[type="checkbox"]:checked {
    background-color: var(--oefit_grey) !important;
}

.custom_square_checklist input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    left: 2px;
    top:-2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* This work in setting the border thickness and color for dropdowns in general */
.dropdown_inputs {
    border-radius: 0px !important;
    -webkit-border-radius: 0 !important;
    -moz-border-radius: 0 !important;
    cursor: pointer;
    border: 1px solid var(--oefit_grey) !important;
}

/* Border for active input element */
.dropdown_inputs.is-focused  {
    outline: None !important; /* Remove default browser outline */
    box-shadow: 0 0 0 2px #afdff8 !important;
}

/* This works and sets the font color of selected items */
.dropdown_inputs span[class*="Select-value-label"] {
    color: black !important;
}

/* This works and sets the background color and font color for the "x" icon in multi-select if not hover */
.dropdown_inputs span[class*="Select-value-icon"] {
    background-color: #afdff8 !important;
    color: black !important;
}

/* This works and sets the background color and font color for the "x" icon in multi-select if hover */
.dropdown_inputs span[class*="Select-value-icon"]:hover {
    background-color: var(--oefit_grey) !important;
    color: white !important;
}

/* Gives selected multi select items the border thickness and color */
.dropdown_inputs.multi .Select-multi-value-wrapper .Select-value {
    background-color: white !important;
    border-radius: 0 !important;
    border: 1px solid var(--oefit_grey) !important;
    cursor: pointer;
}

/* This shows a not possible icon as hover on disabled dropdown menus */
.dropdown_inputs.is-disabled *{
    cursor: not-allowed !important;
}


/* This works and sets the background color of items in disabled fields*/
.dropdown_inputs.is-disabled .Select-control {
    background-color: white !important;
    cursor: not-allowed !important;
}

/* This works and sets the font color of selected items in disabled fields*/
.dropdown_inputs.is-disabled .Select-control span[class*="Select-value-label"] {
    color: grey !important;
    cursor: not-allowed !important;
}

/* Removes rounded grey borders inside select input */
.dropdown_inputs .Select-control {
    border: 0px !important;
    border-radius: 0px !important;
    background-color: white !important;
}

/* Frame of the actual dropdown that appears when clicking on the menu */
.dropdown_inputs .Select-menu {
    border-radius: 0px !important;
    border: 0px solid #afdff8 !important;
    background-color: white !important;
    background: white !important;
    box-shadow: 0 0 0 0px white !important;
    cursor: pointer;
}

/* Outer frame of the actual dropdown that appears when clicking on the menu */
.dropdown_inputs .Select-menu-outer {
    display: block !important;
    border-radius: 0px !important;
    border: 1px solid #afdff8 !important;
    white-space: normal !important;
    line-height: 1.05 !important;
    height: auto !important;
    word-wrap: break-word !important;
}

.Select-value {
    border-radius: 0 !important;
    cursor: pointer;
}

.Select-value-label {
    border-radius: 0 !important;
    cursor: pointer;
}

/* Additional selector for any inner elements */
.Select-value-icon {
    border-radius: 0 !important;
    cursor: pointer;
}

.form-check {
    cursor: pointer;
}

.form-check input[type="radio"] {
    cursor: pointer;
}

.form-check label {
    cursor: pointer;
}