/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Rimuove il backdrop grigio dei dialog */
dialog::backdrop {
    background: transparent;
}

/* Stile per i campi con errori di validazione */
.field_with_errors {
    display: contents;
}

.field_with_errors input,
.field_with_errors textarea,
.field_with_errors select {
    border-color: rgb(220 38 38) !important; /* red-600 */
    --tw-ring-color: rgb(220 38 38) !important;
}

.field_with_errors input:focus,
.field_with_errors textarea:focus,
.field_with_errors select:focus {
    --tw-ring-color: rgb(220 38 38) !important;
    border-color: rgb(220 38 38) !important;
}
