/* Legacy form styles - kept for backwards compatibility */

.button-new-form {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}

.signature-pad {
    display: flex;
    justify-content: center;
    align-items: center;
}

.formset_div {
    background-color: var(--section-form-bg-light);
    margin-bottom: 15px;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 2px 6px 15px 0 rgba(69, 65, 78, .1);
    border: 0;
}

.card {
    border: 0;
    border-radius: 10px;
    background-color: #fff;
    margin-bottom: 30px;
    box-shadow: 2px 6px 15px 0 rgba(69, 65, 78, .1);
}

.modal-header {
    background: #3c7136;
}

/* Make Descartar button same height as btn-admin */
.btn-same-size {
    height: 31px !important;
    line-height: 31px !important;
    padding: 0 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: top !important;
}

/* Ensure btn-admin in forms has consistent height */
.btn-admin {
    height: 31px !important;
    line-height: 31px !important;
    padding: 0 15px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: top !important;
}

/* Validation error styles */
.text-danger {
    color: #dc3545 !important;
}

.text-danger.small {
    font-size: 0.875rem;
}

/* Highlight form fields with errors */
.form-control.is-invalid,
input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid:focus,
input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Error alert styling */
.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-danger ul {
    margin-bottom: 0;
    padding-left: 1.5rem;
}

.alert-danger li {
    margin-bottom: 0.25rem;
}
