/*
* Règle CSS générique pour les formbuildder / searchkit
 */
#page #bootstrap-theme,
#wpbody-content #bootstrap-theme {
    padding: 20px;
}

#page #bootstrap-theme .af-layout-inline,
#page #bootstrap-theme .af-container-style-pane,
#wpbody-content #bootstrap-theme .af-layout-inline,
#wpbody-content #bootstrap-theme .af-container-style-pane {
    margin-left: 0;
    margin-right: 0;
}

#page #bootstrap-theme .af-layout-inline .form-inline,
#page #bootstrap-theme .af-container-style-pane .form-inline,
#wpbody-content #bootstrap-theme .af-layout-inline .form-inline,
#wpbody-content #bootstrap-theme .af-container-style-pane .form-inline {
    padding: 0 !important;
}

#page #bootstrap-theme .af-field-type-radio label,
#wpbody-content #bootstrap-theme .af-field-type-radio label {
    margin-right: 20px;
}

#page #bootstrap-theme input[type=radio],
#wpbody-content #bootstrap-theme input[type=radio] {
    margin-top: 0px;
}

/*
* Custom CSS Facturation - Pièces comptables
 */
.page-civicrm-facturation-liste #page #bootstrap-theme .af-layout-inline:nth-child(2) {
    display: flex;
    align-items: center;
}

/*
* règle css pour les largeurs des listes déroulantes
 */
#page #bootstrap-theme .select2-container .select2-choices .select2-search-field input,
#wpbody-content #bootstrap-theme .select2-container .select2-choices .select2-search-field input {
    width: 160px !important;
}

#page #customData .select2-container,
#wpbody-content #bootstrap-theme .select2-container {
    width: fit-content !important;
    min-width: 200px;
}

/*
* regle CSS pour les champs validé oui / non
 */
#page #bootstrap-theme .form-group .radio-inline,
#wpbody-content #bootstrap-theme .form-group .radio-inline {
    margin: 0;
}

#page #bootstrap-theme .crm-search-display .crm-search-display-editable-buttons,
#wpbody-content #bootstrap-theme .crm-search-display .crm-search-display-editable-buttons {
    position: inherit;
}

#page #bootstrap-theme .crm-search-display tr td,
#wpbody-content #bootstrap-theme .crm-search-display tr td {
    padding: 10px;
}

/**
* regle css pour ajouter le soulignement et la couleur par défaut des liens pour les employeurs
* sur une fiche contact
 */
#crm-container #crm-contactinfo-content .crm-contact-current_employer a {
 text-decoration: underline;
  color: #2786c2;
}

/*
* regle css pour cacher le menu adhesions - stats
 */
.page-civicrm-contact .crm-contact-tabs-list #tab_afsearchAdhesionsStats {
    display: none;
}

/*
* regle CSS générique pour les modales ajax
 */
/*#crm-ajax-dialog-0 table {
    margin: 0;
}*/

/**
 * fiche contact, enlever le bordure du "region fhp"
 */
.crm-address-block .crm-collapsible.crm-address-custom-11-1-accordion {
    box-shadow: none !important;
}

.crm-address-block #address_custom_11_1 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/**
* règle css pour le formbuilder Recherche (Organisations)
 */
#page #crm-container #bootstrap-theme af-field[name="groups"] .form-group .select2-container {
    width: 400px !important;
}

/**
* patch css pour styliser les accordéons sur la version 5.70
 */
#page .crm-container .crm-accordion-header {
    /*background: #f3f6f7 !important;
    background-image: none !important;*/
    color: #464354;
    font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
    font-weight: 600;
    line-height: 18px;
    margin-bottom: 0;
    padding: 16px 20px;
    position: relative;
}