:root {
  --vh: 1vh; /* fallback si JS pas encore passé */
  --w100h: calc(var(--vh) * 100);
}

.ypy-full-height { min-height: 100%; }

/* Native buttons: independent from Bootstrap. */
.ypy-button {
  --ypy-button-bg: #64748b;
  --ypy-button-border: #475569;
  --ypy-button-hover: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 14px;
  border: 1px solid var(--ypy-button-border);
  border-radius: 7px;
  background: var(--ypy-button-bg);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.ypy-button:hover { background: var(--ypy-button-hover); color: #fff; text-decoration: none; }
.ypy-button:focus-visible { outline: 2px solid rgb(22 119 255 / 28%); outline-offset: 2px; }
.ypy-button:disabled, .ypy-button.is-disabled { opacity: .55; cursor: not-allowed; }
.ypy-button-primary { --ypy-button-bg: #1677ff; --ypy-button-border: #0f62d6; --ypy-button-hover: #0f62d6; }
.ypy-button-secondary { --ypy-button-bg: #64748b; --ypy-button-border: #475569; --ypy-button-hover: #475569; }
.ypy-button-success { --ypy-button-bg: #16a34a; --ypy-button-border: #15803d; --ypy-button-hover: #15803d; }
.ypy-button-danger { --ypy-button-bg: #dc2626; --ypy-button-border: #b91c1c; --ypy-button-hover: #b91c1c; }
.ypy-button-dark { --ypy-button-bg: #334155; --ypy-button-border: #1e293b; --ypy-button-hover: #1e293b; }
.ypy-button-small { min-height: 32px; padding: 5px 10px; font-size: var(--font-size-compact); }
.ypy-button-block { display: flex; width: 100%; }
.ypy-push-end { margin-left: auto; }
.ypy-text-left { justify-content: flex-start; text-align: left; }
.ypy-modal-close {
  display: inline-grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}
.ypy-modal-close:hover { border-color: #94a3b8; background: #e2e8f0; }

