
.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.input-box {
    position: relative;
}

.disabled-input {
    background-color: rgb(242 242 242) !important;
}


.positioned-info-button {
    position: absolute;
    top: -14px;
    right: 3px;
}

.custom-input {
    appearance: none;
    border-radius: 0.1rem;
    border: 1px solid #ced4da;
    padding: 0.3rem;
    transition: all 0.2s;
    width: 100%;
}

.custom-input:focus, .custom-input:focus-visible {
    outline: none;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

.custom-input::placeholder {
    color: transparent;
}

.custom-input:disabled {
    background-color: #e9ecef !important;
    opacity: 1;
}

.custom-input:not(:placeholder-shown) {
    background-color: white;
}

.input-label {
    position: absolute;
    top: -10px;
    left: 3px;
    transform: translateX(8px) translateY(20px);
    pointer-events: none;
    opacity: 0.5;
    transition: all 0.3s;
}

.custom-input:focus + .input-label, .custom-input:not(:placeholder-shown) + .input-label, .has-value {
    opacity: 1;
    pointer-events: auto;
    transform-origin: left center;
    transform: translateX(-3px) translateY(-15px);
    font-weight: 700 !important;
}


/* ------   Typeahead   ------ */


.typeahead-input-box {
    position: relative;
}

.typeahead-input {
    appearance: none;
    border-radius: 0.1rem;
    border: 1px solid #ced4da;
    padding: 0;
    transition: all 0.2s;
    width: 100%;
}

.action-input {
    appearance: none;
    border-radius: 0.1rem;
    border: 1px solid #ced4da;
    padding: 0.3rem;
    transition: all 0.2s;
    width: 100%;
}

.action-input:not(:placeholder-shown) {
    background-color: white;
}

.action-input.disabled {
    background-color: #e9ecef !important;
    opacity: 1;
}


.typeahead-focus {
    outline: none;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

.text-general {
    color: #4b4b4b;
}


.typeahead-input:not(:placeholder-shown) {
    background-color: white;
}

.typeahead-active + .input-label {
    opacity: 1;
    pointer-events: auto;
    transform-origin: left center;
    transform: translateX(-3px) translateY(-17px);
    font-weight: 700 !important;
}

.typeahead-input.disabled {
    background-color: #e9ecef !important;
    opacity: 1;
}


/* ----- validation -----*/

.input-focus {
    outline: none;
    border-color: #86b7fe !important;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25) !important;
}

.is-valid {
    border-color: #198754;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-valid-focus {
    border-color: #198754 !important;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, .25) !important;
    outline: 0;
    outline: None;
}

.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.is-invalid-focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, .25) !important;
    outline: 0;
    outline: None;
}

.react-datepicker__triangle {
    display: none !important
}

.react-datepicker-popper {
    transform: translate(0px, 28px) !important;
}

.input-error {
    font-size: 14px;
}

.input-error-style {
    font-size: 14px;
    color: var(--error-color);
}

.error-color {
    color: var(--error-color);
}

.main-input-style {
    width: 100%;
    height: 50px;
    padding: 11px;
    border: 1px solid #bbb8b8;
    border-radius: 5px;
    transition: color 0.2s ease;
}

.main-input-style.focused-input,
.main-input-style:focus {
    border: 2px solid #0c63e4;
    padding: 10px;
}

.main-input-style.input-error {
    font-size: 14px;
    border-color: #f31260 !important;
}

.floating-label {
    position: absolute;
    left: 10px;
    top: 48%;
    transform: translateY(-50%);
    transition: all 0.2s ease;
    pointer-events: none;
    color: #444746;
    border-radius: 5px;
}

.label-error {
    color: #f31260;
}

.floating-label.is-floating,
.main-input-style:focus + .floating-label {
    top: 0;
    font-size: 12px;
    padding: 0 4px;
    background-color: white;
    color: #0c63e4;
}

.main-input-style.input-error:not(:placeholder-shown) ~ .floating-label,
.main-input-style.input-error ~ .floating-label.is-floating,
.main-input-style.input-error:focus ~ .floating-label {
    color: var(--error-color) !important;
}

.autocomplete-multiple label {
    top: 15px;
}

.autocomplete-multiple [data-slot="input-wrapper"] {
    height: auto;
}

.autocomplete-multiple [data-slot="inner-wrapper"] {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-columns: 1fr;
}

.autocomplete-multiple [data-slot="inner-wrapper"] > :first-child {
    grid-row: 1;
    grid-column: 1;
}

.autocomplete-multiple [data-slot="inner-wrapper"] > :not(:first-child) {
    grid-row: 2;
    display: inline-block;
}

input[type=date]:required:invalid::-webkit-datetime-edit {
    color: transparent;
}

input[type=date]:focus::-webkit-datetime-edit {
    color: black !important;
}