/* InputField: suffix addon and help line. Error text/border come from spherag.css (.custom-error-message, .dx-invalid). */

[data-sph-input-field] {
    min-width: 0;
}

/* Suffix addon (Figma "Addon right": 16px Medium, text-value colour, 8px side padding) */
[data-sph-input-field] .dx-texteditor-buttons-container .dx-button {
    min-width: 0;
    background: transparent;
    border: 0;
    cursor: default;
}

[data-sph-input-field] .dx-texteditor-buttons-container .dx-button-content {
    padding: 0 8px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: var(--sph-color);
}

/* Disabled: suffix uses the disabled text colour (Figma "input/text-disabled") */
[data-sph-input-field] .dx-state-disabled .dx-texteditor-buttons-container .dx-button-content {
    color: var(--sph-color-gray-300);
}

/* Help line (Figma "HelpText": 14px Regular, 20px line height, 4px top padding) */
.sph-input-field-help {
    min-width: 0;
    padding-top: 4px;
    font-size: 14px;
    line-height: 20px;
    color: var(--sph-color);
    overflow-wrap: anywhere;
}

/* TIP icon (Figma: light blue). The SVG paints with stroke="currentColor", so only its color changes; it applies to this
   help line, not to the other screens that use InputTip. */
.sph-input-field-help .sph-tip-icon {
    color: var(--sph-color-secondary-500);
}

/* Edit-mode warning: set by inputField.js while the value differs from the initial one */
.sph-input-field-help.sph-input-field-help--changed {
    color: var(--sph-color-secondary-700);
}
