body {
    overflow-y: scroll;
}

.overlay-white > .sticky-top {
    z-index: 1039;
}

.sticky-top .navbar .navbar-collapse {
    position: absolute !important;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 85%, rgba(255, 255, 255, 0));
    left: 0 !important;
    border: none !important;
    transition: none !important;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-dark {
    background-color: #545454 !important;
}

.overlay-white {
    display: none;
}

.cursor-pointer {
    cursor: pointer;
}

body#placement-mandanten .zoom-on-hover {
    cursor: pointer;
    transition: transform 150ms ease-out;
}

body#placement-mandanten .zoom-on-hover:hover {
    transform: scale(1.05);
}

fieldset {
    position: relative;
    margin-top: 1.5rem !important;
}

fieldset > legend {
    position: absolute;
    top: 0;
    left: 50%;
    background-color: white;
    padding: 0 .5rem .5rem;
    width: unset;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    white-space: nowrap;
}

select[readonly="readonly"] > option:not(:checked) {
    display: none;
}

.sticky-top {
    background: white;
}

.form-checkbox {
    height: 25px !important;
    width: 25px !important;
}

.form-checkbox[readonly]::before, .form-select[readonly] {
    background-color: #e9ecef !important;
}

input[value=""]:read-only {
    color: transparent;
}

[type="checkbox"] {
    display: none;
}

[type="checkbox"] + label {
    position: relative;
    display: inline-block;
    cursor: pointer;
    width: 66px;
    height: 33px;
}

[type="checkbox"] + label:before {
    width: 60px;
    height: 30px;
    border-radius: 30px;
    border: 2px solid #ddd;
    background-color: red;
    content: "";
    margin-right: 15px;
    transition: background-color 0.5s linear;
    z-index: 5;
    position: absolute;
    left: 0;
}

[type="checkbox"] + label:after {
    width: 26px;
    height: 26px;
    border-radius: 30px;
    background-color: #fff;
    content: "";
    transition: margin 0.1s linear;
    box-shadow: 0 0 5px #aaa;
    position: absolute;
    left: 2px;
    top: 2px;
    z-index: 10;
}

[type="checkbox"]:checked + label:before {
    background-color: #2b8718;
}

[type="checkbox"]:checked + label:after {
    margin: 0 0 0 30px;
}

#ui-datepicker-div {
    z-index: 1020 !important;
}

i.fas, i.far {
    display: inline-block;
    min-width: 20px;
    margin-right: 5px;
    text-align: center;
}