/*
 * Stato dei campi, identico in ogni stile.
 * Rosa: obbligatorio non valorizzato.
 * Celeste: filtro valorizzato e già applicato.
 * Direttiva: .cursor/rules/field-state-colors.mdc
 */

html body input.required-empty,
html body select.required-empty,
html body textarea.required-empty,
html body .ss-trigger.required-empty,
html body .c-sheet-input.required-empty,
html body .c-sheet-input.required-empty:focus,
html body .ss-trigger.required-empty:focus,
html body .bs-input.required-empty,
html body .bs-input.required-empty:focus,
html body .s-input.required-empty,
html body .s-select.required-empty,
html body .s-textarea.required-empty,
html body .s-input.required-empty:focus,
html body .s-select.required-empty:focus,
html body .s-textarea.required-empty:focus,
html body.consult-sheet .c-card .required-empty,
html body.consult-sheet .c-card .ss-trigger.required-empty,
html body .consult-sheet .c-card .required-empty,
html body .consult-sheet .c-card .ss-trigger.required-empty,
html body.theme-cards .c-sheet-input.required-empty,
html body.theme-cards .c-sheet-input.required-empty:focus,
html body.theme-cards .c-sheet-value .ss-trigger.required-empty,
html body.theme-cards .c-sheet-value .ss-trigger.required-empty:focus,
html body .rx-grid .ss-trigger.required-empty,
html body .rx-grid td.rx-fill.rx-empty .ss-trigger.required-empty,
html body .rx-in.required-empty,
html body .rx-in.required-empty:focus,
html body .c-form-group input.required-empty:focus,
html body .c-form-group select.required-empty:focus,
html body .c-form-group textarea.required-empty:focus {
    background: #FFF0F0 !important;
    background-color: #FFF0F0 !important;
    background-image: none !important;
    border-color: #C62828 !important;
    box-shadow: inset 0 0 0 1px #C62828 !important;
}

html body input.filter-active,
html body select.filter-active,
html body textarea.filter-active,
html body .ss-trigger.filter-active,
html body .ss-trigger.filter-active:focus,
html body .c-sheet-input.filter-active,
html body .c-sheet-input.filter-active:focus,
html body .bs-input.filter-active,
html body .bs-input.filter-active:focus,
html body .s-input.filter-active,
html body .s-select.filter-active,
html body .s-input.filter-active:focus,
html body .s-select.filter-active:focus,
html body .c-search-box input.filter-active,
html body .c-search-box input.filter-active:focus,
html body .fk-sidebar select.filter-active,
html body .fk-sidebar input.filter-active,
html body .fk-sidebar .ss-trigger.filter-active {
    background: #E3F2FD !important;
    background-color: #E3F2FD !important;
    background-image: none !important;
    border-color: #1565C0 !important;
    box-shadow: inset 0 0 0 1px #1565C0 !important;
}

html body input[type="checkbox"].required-empty,
html body input[type="radio"].required-empty,
html body input[type="checkbox"].filter-active,
html body input[type="radio"].filter-active,
html body input[type="hidden"].filter-active,
html body input[type="hidden"].required-empty {
    background: unset !important;
    background-color: unset !important;
    background-image: unset !important;
    border-color: unset !important;
    box-shadow: none !important;
}
