/*
 * Estado Selected GDS compartido para inputs, textareas, selects y
 * wrappers marcados explícitamente con [data-gds-input]. Se activa
 * solo dentro de [data-gds-input-scope]; no afecta pantallas que no
 * lo declaren. Ver INPUT_GDS_RULES.md e
 * INPUT_SELECTED_GDS_IMPLEMENTATION_PLAN.md.
 */

/* Selected — dueño = contenedor (el wrapper dibuja el borde) */
[data-gds-input-scope] [data-gds-input][data-gds-input-owner="host"].is-pressed:not(.div_BorderRed):not(.wizardStep_ControlFormBackgroundError):not(.gds-input-warning):not(.gds-input-success):not(.gds-input-validating):not(.gds-input-completed) {
    border-color: var(--selected-borde, #717171) !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: none !important;
    outline: none !important;
}

/* El control interno nunca dibuja borde propio cuando el dueño es el contenedor */
[data-gds-input-scope] [data-gds-input][data-gds-input-owner="host"] > input,
[data-gds-input-scope] [data-gds-input][data-gds-input-owner="host"] > textarea,
[data-gds-input-scope] [data-gds-input][data-gds-input-owner="host"] > select {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background-color: transparent !important;
}

/* Selected — dueño = el propio control (input/select/textarea dibuja su borde) */
[data-gds-input-scope] [data-gds-input][data-gds-input-owner="input"].is-pressed:not(.div_BorderRed):not(.wizardStep_ControlFormBackgroundError):not(.gds-input-warning):not(.gds-input-success):not(.gds-input-validating):not(.gds-input-completed) {
    border-color: var(--selected-borde, #717171) !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: none !important;
    outline: none !important;
}
