/* Inputs */
.form-control {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    color: #495057;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.375rem;
    box-shadow: none !important;
}

/* Select (NEEDS stronger selector) */
.form-select,
select.form-select {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    color: #495057;
    font-size: 0.875rem;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem !important;
    border-radius: 0.375rem;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.5;
}

/* Focus */
.form-control:focus,
.form-select:focus {
    border-color: #5e72e4 !important;
    box-shadow: 0 0 0 0.15rem rgba(94, 114, 228, 0.25) !important;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
}

/* Disabled */
.form-control:disabled,
.form-select:disabled {
    background-color: #e9ecef !important;
}

/* Placeholder */
.form-control::placeholder {
    color: #adb5bd;
}

/* Fix select arrow */
.form-select {
    background-position: right 0.75rem center;
}


/* Align input field and eye toggle button */
.input-group {
    display: flex;
    align-items: stretch;
}

.input-group > .form-control,
.input-group > .toggle-sensitive {
    height: 36px !important;
    min-height: 36px !important;
    box-sizing: border-box;
}

.input-group > .toggle-sensitive {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.input-group > .toggle-sensitive i {
    font-size: 20px;
    line-height: 1;
}

/* Main wrapper */
.sensitive-input-group {
    display: flex !important;
    align-items: stretch;
    height: 38px !important;
    border: 1px solid #d2d6da !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background-color: #e9ecef;
    box-sizing: border-box;
}

/* Readonly input */
.sensitive-input-group > input.sensitive-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px !important;
    background-color: #e9ecef !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Eye button */
.sensitive-input-group > button.toggle-sensitive {
    flex: 0 0 54px;
    height: 36px !important;
    min-height: 36px !important;

    background-color: #fff !important;

    border-radius: 0 !important;
    border: none !important;
    border-left: 1px solid #d2d6da !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

/* Eye icon */
.sensitive-input-group > button.toggle-sensitive i {
    font-size: 20px;
    line-height: 1;
}


/* Editable sensitive fields - white background */
.editable-sensitive-group {
    height: 38px !important;
    background-color: #fff !important;
    overflow: hidden !important;
}

/* Editable input */
.editable-sensitive-group > input.sensitive-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 36px !important;

    background-color: #fff !important;

    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    margin: 0 !important;
    box-sizing: border-box;
}

/* Editable eye button */
.editable-sensitive-group > button.toggle-sensitive {
    flex: 0 0 54px;
    height: 36px !important;

    background-color: #fff !important;

    border: none !important;
    border-left: 1px solid #d2d6da !important;
    border-radius: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;
}