/* Passerelle : mise en page uniquement. Les couleurs, tableaux, boutons et
   indicateurs des ecrans natifs restent definis par le moteur CDSA. */
.cdsa-web--moteur { width: 100%; max-width: none; min-width: 0; color: inherit; font-family: inherit; }
.cdsa-web--moteur .wrap { max-width: none; margin: 0; padding: 0; }
.cdsa-web--moteur :is(table, .widefat) { max-width: 100%; }
.cdsa-web--moteur :is(input, select, textarea) { max-width: 100%; box-sizing: border-box; }
.cdsa-web--moteur :is(.cdsa-board, .cdsa-tableau, .cdsa-resultats, .cdsa-terrains) { min-width: 0; }
@media (max-width: 760px) {
  .cdsa-web--moteur { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .cdsa-web--moteur .wrap { min-width: 0; }
}

/* Le portail n'invente aucun menu métier. Les écrans natifs restent la référence. */
.cdsa-web__native-workspace { width:100%; max-width:none; margin-top:22px; }
.cdsa-web__native-workspace .cdsa-web--moteur { max-width:none; }
.cdsa-web__native-workspace .wrap { width:100%; }
.cdsa-web__native-workspace .wrap a { cursor:pointer; }

/* Presentation des composants WordPress admin utilises par les ecrans natifs.
   Limitee a l'espace moteur du portail : aucune modification des boards. */
.cdsa-web__native-workspace .cdsa-web--moteur :is(.button, .button-secondary, .button-primary, a.button, input.button, button.button) {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 32px; padding: 5px 12px; border: 1px solid #526bff;
  border-radius: 6px; background: #fff; color: #3454e8;
  font-size: 13px; font-weight: 500; line-height: 1.5;
  text-decoration: none; cursor: pointer; vertical-align: middle;
  box-shadow: none; box-sizing: border-box;
}
.cdsa-web__native-workspace .cdsa-web--moteur :is(.button-primary, a.button-primary, input.button-primary, button.button-primary) {
  background: #174b7c; border-color: #174b7c; color: #fff;
}
.cdsa-web__native-workspace .cdsa-web--moteur :is(.button, .button-primary):hover {
  background: #eff3ff; border-color: #274be0; color: #274be0;
}
.cdsa-web__native-workspace .cdsa-web--moteur :is(.button-primary, a.button-primary, input.button-primary, button.button-primary):hover {
  background: #10395f; border-color: #10395f; color: #fff;
}
.cdsa-web__native-workspace .cdsa-web--moteur :is(.button, button, select, input, textarea):focus-visible {
  outline: 2px solid #526bff; outline-offset: 2px;
}
.cdsa-web__native-workspace .cdsa-web--moteur :is(select, input[type="text"], input[type="number"], input[type="date"], input[type="search"]) {
  min-height: 32px; border: 1px solid #a8b9cc; border-radius: 5px;
  background-color: #fff; padding: 4px 8px; font-size: 13px;
}
.cdsa-web__native-workspace .cdsa-web--moteur .wrap :is(h1, h2, h3, h4) { line-height: 1.35; }
.cdsa-web__native-workspace .cdsa-web--moteur .wrap :is(.button, .button-primary) + :is(.button, .button-primary) { margin-left: 3px; }
@media (max-width: 640px) {
  .cdsa-web__native-workspace .cdsa-web--moteur :is(.button, .button-primary) { margin-bottom: 5px; }
}
