/**
 * Custom swal
 */
div:where(.swal2-container) .swal2-html-container {
    font-size: initial !important;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm,
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel {
    border: 0 !important;
    border-radius: 0 !important;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm:focus,
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel:focus {
    box-shadow: unset !important;
    outline: unset !important;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm.btn-primary,
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

div:where(.swal2-container) button:where(.swal2-styled).swal2-confirm.btn-secondary,
div:where(.swal2-container) button:where(.swal2-styled).swal2-cancel.btn-secondary {
    color: #fff;
    background-color: #868e96;
    border-color: #868e96;
}

div:where(.swal2-container) .swal2-select {
    display: block;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.875rem !important;
    line-height: 1.25 !important;
    color: #495057 !important;
    background-color: #fff !important;
    background-image: none !important;
    background-clip: padding-box !important;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}

.modal-open .select2-container {
    z-index: 2000;
}

.form-group .select2 {
    min-width: 100%;
}

.form-group .select2-container .select2-search--inline {
    min-width: 100%;
}

.form-group .select2-container .select2-search--inline .select2-search__field {
    min-width: 100%;
}

.form-group .select2-container .select2-selection__choice+.select2-search--inline {
    min-width: initial;
}

.text-as-link {
    color: #007bff;
    text-decoration: underline;
}

.dt_img_product {
    width: auto;
    height: auto;
    max-width: 80px;
}

/*
 * field_factures_row
 */
 .field_factures_row {
    position: relative;
}

.field_factures_row .field_factures_preview_wrapper {
    position: relative;
}

.field_factures_row .field_factures_preview_div {
    position: relative;
    margin: 0;
    padding: 5px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}

.field_factures_row .field_factures_preview {
    position: relative;
    width: auto;
    height: auto;
    display: block;
    max-width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.field_factures_row .field_factures_preview:last-child {
    border-bottom: none;
}

/*
 * field_image_row
 */
.field_image_row {
    position: relative;
}

.field_image_row .field_image_preview_wrapper {
    position: relative;
}

.field_image_row .field_image_preview_figure {
    position: relative;
    margin: 0;
    padding: 5px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}

.field_image_row .field_image_preview {
    position: relative;
    width: auto;
    height: auto;
    max-width: 100%;
}

.field_fiche_tech_row .field_fiche_tech_preview_div {
    position: relative;
    margin: 0;
    padding: 5px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background-color: #f8f9fa;
}
