/* Hide the inactive-widgets chooser for every CiviCRM user role. */
html body .crm-inactive-dashlet-fieldset,
html body details[class*="inactive-dashlet"],
html body summary[ng-click*="showInactive"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Place the dashboard refresh button beside the home-page title. */
body.page-civicrm-home #crm-main-content-wrapper {
  position: relative !important;
}

body.page-civicrm-home #crm-main-content-wrapper > .crm-block.crm-content-block {
  position: static !important;
}

body.page-civicrm-home span:has(> #refreshall) {
  float: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 0 !important;
}

body.page-civicrm-home #refreshall {
  position: absolute !important;
  right: 8px !important;
  top: -42px !important;
  z-index: 20 !important;
}

.standalone-auth-form .crm-logo,
.crm-logo {
  content: url('/logo.png') !important;
  width: 200px;
  height: auto;
}

#civicrm-footer {
  font-size: 0;
}

#civicrm-footer a {
  display: none !important;
}

#civicrm-footer span.status.crm-ok {
  font-size: 0px !important;
}

html body #civicrm-menu input#crm-qsearch-input {
  width: 260px !important;
  max-width: 260px !important;
  border: 2px solid #0057a8 !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  height: auto !important;
}

#civicrm-menu input#crm-qsearch-input:focus {
  border-color: #ea148c !important;
  outline: none !important;
  box-shadow: 0 0 4px rgba(234, 20, 140, 0.5) !important;
}

.crm-logo-sm {
    background-image: url('https://donateurs.eu/logo.png') !important;
    background-size: contain;
}

/* Cache le bouton/panneau "Choisir" (configuration du dashboard) 
#civicrm-dashboard details.crm-inactive-dashlet-fieldset {
  display: none !important;
}

.dashlet-container .delete-dashlet,
.dashlet-container a[title="Supprimer"],
.dashlet-container a[title="Delete"],
.dashlet-container .crm-i.fa-trash,
.dashlet-container .crm-i.fa-times,
.dashlet-container .crm-hover-button.delete {
  display: none !important;
} */

/* Élargit le champ de recherche du formulaire "Recherche donateur" en page accueil*/
[search-name="Recherche_donateurs_eu"] .crm-af-field,
crm-search-display-table[search-name="Recherche_donateurs_eu"] {
  width: 100% !important;
}
/* Si le sélecteur ci-dessus ne suffit pas, cible directement l'input par préfixe d'ID */
input[id^="last-name-organization-name-first-name"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
/* Cible large : le tag custom af-field ET la classe crm-af-field, dans le formulaire de recherche */
afsearch-recherche-donateurs af-field,
afsearch-recherche-donateurs .crm-af-field {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

afsearch-recherche-donateurs .crm-af-field-label {
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

afsearch-recherche-donateurs input.form-control {
  margin: 0 !important;
  width: auto !important;
  flex: 1 1 auto !important;
}
afsearch-recherche-donateurs input.form-control {
  margin: 0 !important;
  width: 400px !important;   /* ← ajuste cette valeur en pixels */
  flex: 0 0 400px !important;   /* même valeur, pour que flex ne l'écrase pas */
}
/* Taille de police du titre "Bienvenue sur donateurs.eu : Accueil" */
h1.crm-page-title {
  font-size: 18px !important;   /* ← ajuste cette valeur en pixels */
}

/* Réduit la taille du nom (variable réelle, confirmée dans l'inspecteur) */
:root {
  --crm-contact-header-size: 18px;
}

/* Réduit le padding du bloc extérieur du bandeau */
.crm-container .crm-summary-contactname-block {
  padding: 4px 0 !important;
}

/* Réduit le padding autour du nom lui-même (le plus gros contributeur de hauteur) */
.crm-container #crm-contactname-content .crm-summary-display-name {
  padding: 6px 0 !important;
}
