/* Same height as the default "Ajouter un chauffeur" button (h-9).
   Explicit action selectors keep icon controls and suggestions unchanged. */
:root { --text-button-height: 2.25rem; }
.delete-driver-dialog[data-slot="alert-dialog-content"],
.delete-tour-dialog[data-slot="alert-dialog-content"] {
  width: calc(100% - 2rem);
  max-width: 32rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.delete-driver-dialog [data-slot="alert-dialog-footer"],
.delete-tour-dialog [data-slot="alert-dialog-footer"] {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}
.delete-driver-dialog [data-slot="alert-dialog-footer"] > button,
.delete-tour-dialog [data-slot="alert-dialog-footer"] > button {
  flex: 1 1 12rem;
  min-width: 0;
  white-space: normal;
  height: auto !important;
}
[data-slot="button"]:not([data-size^="icon"]):not(.edit-driver-button):not(.delete-driver-trigger):not(.delete-member-trigger),
[data-slot="tabs-trigger"],
.admin-tool > a,
.address-action,
.timing-actions button,
.setup-error-retry,
.login-button,
body > .box button,
.wrap .button {
  box-sizing: border-box;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  line-height: 1.25rem !important;
  height: var(--text-button-height) !important;
  min-height: var(--text-button-height) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Installer stays on its own line below the installation-key help. */
.login-button:disabled { opacity: 0.5; cursor: default; box-shadow: none; }
body > .box button {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.setup-error-card .setup-error-retry {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 620px) {
  .user-actions { flex-wrap: wrap; }
  .user-actions .signed-user { min-width: 0; overflow-wrap: anywhere; }
  .user-actions > button:last-child {
    width: auto;
    flex-shrink: 0;
    overflow: visible;
    padding-left: 12px;
    padding-right: 12px;
  }
}
