/*
 * Button contrast of Bootstrap buttons in the business panel (/app) and the operator panel (/admin) — checked by
 * bin/contrast-check (tools/contrast-check.js), WCAG ≥ 4.5:1 in every state incl. disabled.
 * Bootstrap fades disabled buttons with opacity .65, which drops text below 3:1 (e.g. 1.6:1 on .btn-outline-secondary,
 * 2.1:1 on the yellow .btn-primary). Disabled buttons get a solid neutral look instead; link-style buttons keep their
 * colour (they have no background to fade against). Loaded after theme.css (panel) / Bootstrap (admin).
 */
.btn:disabled:not(.btn-link),
.btn.disabled:not(.btn-link),
fieldset:disabled .btn:not(.btn-link) {
  --bs-btn-disabled-opacity: 1;
  opacity: 1;
  color: #56636f !important;
  background-color: #eef1f4 !important;
  background-image: none !important;
  border-color: #dde3e8 !important;
  box-shadow: none !important;
}
/* Link-style buttons: no background to fade, so disabled = a distinct muted colour that still passes 4.5:1. */
.btn-link:disabled,
.btn-link.disabled,
fieldset:disabled .btn-link {
  --bs-btn-disabled-opacity: 1;
  --bs-btn-disabled-color: #5f6d79; /* 5.3:1 on white, 4.9:1 on #f5f7f8 */
  opacity: 1;
  color: #5f6d79 !important;
  text-decoration: none;
  cursor: not-allowed;
}
/* Sidebar actions styled as menu links (e.g. "Wyloguj"): muted against the dark sidebar (enabled #aebdc8). */
.bg-menu-theme .menu-link.btn-link:disabled,
.bg-menu-theme .menu-link.btn-link.disabled {
  color: #8a9bab !important; /* 5.0:1 on #102c40 */
}
