.mx-add-line [class*="_bar_"] > [class*="_itemWrapper_"]:first-child > button {
  background-color: var(--bs-primary, #BF202D) !important;
  border-color: var(--bs-primary, #BF202D) !important;
  color: #fff !important;
  border-radius: 6px;
  width: auto !important;
  padding: 2px 12px 2px 8px !important;
  gap: 4px;
  display: inline-flex;
  align-items: center;
  margin: 4px 4px 4px 0;
}

.mx-add-line [class*="_bar_"] > [class*="_itemWrapper_"]:first-child > button::after {
  content: "Ajouter une prestation";
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  white-space: nowrap;
}

.mx-add-line [class*="_bar_"] > [class*="_itemWrapper_"]:first-child > button * {
  color: #fff !important;
}

.mx-add-line [class*="_bar_"] > [class*="_itemWrapper_"]:first-child > button:hover {
  filter: brightness(0.9);
}

/* Libellé du « + » de la barre principale (liste et fiche). */
:is(
  [data-view-id="sc.root.sale.customers"],
  [data-view-id="sc.root.sale.intervention.requests"],
  [data-view-id="sc.root.sale.quotations"],
  [data-view-id="interservices.sc.root.sale.quotations.hors.sap"],
  [data-view-id="contracts.root.customer.all"],
  [data-view-id="contracts.root.hors.sap"],
  [data-view-id="interservices.invoice.root.custinvoices.hors.sap"],
  [data-view-id="invoice.root.custrefunds"],
  [data-view-id="interservices.invoice.root.custrefunds.hors.sap"],
  [data-view-id="interservices.sc.root.sale.products.sap"],
  [data-view-id="interservices.sc.root.sale.products.hors.sap"],
  [data-view-id="account.root.payments.cheque.deposit.slip.all"]
) > :is([class*="_container_"], [class*="_formViewContainer_"]) > [class*="_toolbar_"] > [class*="_bar_"]:first-child > [class*="_itemWrapper_"]:first-child > button::after {
  margin-left: 4px;
  font-weight: 600;
  white-space: nowrap;
}

[data-view-id="sc.root.sale.customers"] > :is([class*="_container_"], [class*="_formViewContainer_"]) > [class*="_toolbar_"] > [class*="_bar_"]:first-child > [class*="_itemWrapper_"]:first-child > button::after {
  content: "Créer un client";
}

[data-view-id="sc.root.sale.intervention.requests"] > :is([class*="_container_"], [class*="_formViewContainer_"]) > [class*="_toolbar_"] > [class*="_bar_"]:first-child > [class*="_itemWrapper_"]:first-child > button::after {
  content: "Créer une demande";
}

:is(
  [data-view-id="sc.root.sale.quotations"],
  [data-view-id="interservices.sc.root.sale.quotations.hors.sap"]
) > :is([class*="_container_"], [class*="_formViewContainer_"]) > [class*="_toolbar_"] > [class*="_bar_"]:first-child > [class*="_itemWrapper_"]:first-child > button::after {
  content: "Créer un devis";
}

:is(
  [data-view-id="contracts.root.customer.all"],
  [data-view-id="contracts.root.hors.sap"]
) > :is([class*="_container_"], [class*="_formViewContainer_"]) > [class*="_toolbar_"] > [class*="_bar_"]:first-child > [class*="_itemWrapper_"]:first-child > button::after {
  content: "Créer un contrat";
}

[data-view-id="interservices.invoice.root.custinvoices.hors.sap"] > :is([class*="_container_"], [class*="_formViewContainer_"]) > [class*="_toolbar_"] > [class*="_bar_"]:first-child > [class*="_itemWrapper_"]:first-child > button::after {
  content: "Créer une facture";
}

:is(
  [data-view-id="invoice.root.custrefunds"],
  [data-view-id="interservices.invoice.root.custrefunds.hors.sap"]
) > :is([class*="_container_"], [class*="_formViewContainer_"]) > [class*="_toolbar_"] > [class*="_bar_"]:first-child > [class*="_itemWrapper_"]:first-child > button::after {
  content: "Créer un avoir";
}

:is(
  [data-view-id="interservices.sc.root.sale.products.sap"],
  [data-view-id="interservices.sc.root.sale.products.hors.sap"]
) > :is([class*="_container_"], [class*="_formViewContainer_"]) > [class*="_toolbar_"] > [class*="_bar_"]:first-child > [class*="_itemWrapper_"]:first-child > button::after {
  content: "Créer une prestation";
}

[data-view-id="account.root.payments.cheque.deposit.slip.all"] > :is([class*="_container_"], [class*="_formViewContainer_"]) > [class*="_toolbar_"] > [class*="_bar_"]:first-child > [class*="_itemWrapper_"]:first-child > button::after {
  content: "Créer un bordereau";
}

/* Tableau de bord SAP : la vue custom est un flex en ligne, le contenu restait à gauche. */
.react-grid-item:has(.sap-dash-fill) [class*="_form_"] {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
}
.sap-dash-fill {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}
.sap-dash-fill > * {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
}
