/* ===== الأساسيات ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scrollbar-gutter: stable; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
html[dir="ltr"] body { direction: ltr; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }
/* تثبيت أبعاد أيقونات Font Awesome لمنع انزياح العناصر أثناء تحميل خط الأيقونات */
.fa-solid, .fa-regular, .fa-brands, .fas, .far, .fab, .fa {
  min-width: 1em; text-align: center; font-style: normal;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: .5rem; } .gap-3 { gap: 1rem; }
.between { justify-content: space-between; }
@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main { margin: 0 !important; }
}
