/* ثبات بصري عام: يمنع قفز الأزرار والصفحة أثناء النقر أو ظهور شريط التمرير. */
html {
  scrollbar-gutter: stable;
  scroll-behavior: auto !important;
}

.topbar,
.top-actions,
.top-actions > * {
  flex-shrink: 0;
}

/* تغيّر اللون والظل مسموح، أما تحريك العنصر نفسه فيربك المستخدم ويبدو كوميض. */
button,
[role="button"] {
  transition-property: background-color, color, border-color, box-shadow, opacity !important;
}

button:hover,
button:active,
button:focus,
[role="button"]:hover,
[role="button"]:active,
[role="button"]:focus {
  transform: none !important;
  translate: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* وضوح أزرار النوافذ في جميع السمات؛ بعض صفحات الدعم كانت تورث لون النص من الزر
   الأساسي فيصبح نص زر الإلغاء بلون الخلفية نفسه. */
#modal .form-footer button.secondary,
#modal .form-footer button[type="button"]:not(.primary) {
  background: #fff !important;
  color: #087f94 !important;
  border: 1px solid #8ccbd2 !important;
  opacity: 1 !important;
}
