html, body {
  overflow-x: clip;
  margin: 0;
  min-height: 100%;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px var(--backoffice-autofill-background) inset !important;
  -webkit-text-fill-color: var(--backoffice-autofill-foreground) !important;
  caret-color: var(--backoffice-autofill-foreground);
}

.bo-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-size: 1.25rem;
  line-height: 1;
  vertical-align: middle;
}

.bo-icon-sm {
  font-size: 1rem;
}

.bo-icon-lg {
  font-size: 1.5rem;
}

.bo-icon-xlg {
    font-size: 3rem;
}

/* Preserve the existing geometry while Blueprint provides the primitives. */
.bo-button {
  display: inline-block;
  height: auto;
  line-height: inherit;
  white-space: normal;
}

.bo-button:focus-visible {
  outline: auto;
  --tw-ring-offset-width: 0px;
}

.bo-button.bo-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  padding: 0;
}

.bo-input {
  height: auto;
  font-size: inherit;
  line-height: inherit;
  box-shadow: none;
}

.bo-input:focus-visible {
  box-shadow: none;
}

.bo-required {
  color: var(--destructive-foreground);
}

.bo-field-error {
  margin-top: 0.25rem;
  color: var(--destructive-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.bo-input[aria-invalid="true"] {
  border-color: var(--destructive-foreground);
}

.bo-filter-control {
  height: 2.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.bo-date-input {
  color-scheme: dark;
}

.bo-card {
  display: block;
  gap: 0;
}

.bo-alert {
  display: block;
  grid-template-columns: none;
}

.bo-menu-trigger {
  display: flex;
  height: auto;
  padding: 0.375rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  box-shadow: none;
}

.bo-menu-trigger:hover {
  background: var(--color-slate-800);
}

.bo-menu {
  padding: 0.5rem 0;
  animation: none;
}

.bo-menu > div {
  padding: 0;
}

.bo-menu-item {
  padding: 0.625rem 1rem;
  border-radius: 0;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
