/* تنقل السابق / التالي — نوافذ ونماذج */

.raya-doc-nav {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-inline-end: 6px;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.raya-doc-nav.raya-doc-nav-active {
  opacity: 1;
}

.raya-doc-nav-btn {
  width: 28px;
  height: 26px;
  border: 1px solid var(--border, #dee2e6);
  border-radius: 6px;
  background: var(--surface, #fff);
  color: var(--text-m, #6c757d);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.raya-doc-nav-btn:hover:not(:disabled) {
  background: var(--bg, #f8f9fa);
  color: var(--text, #212529);
  border-color: #cbd5e1;
}

.raya-doc-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.raya-doc-nav-pos {
  min-width: 42px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-m, #6c757d);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.raya-win-header .raya-doc-nav {
  order: 0;
  margin-inline-start: auto;
  margin-inline-end: 8px;
}

.modal-header .raya-doc-nav {
  margin-inline-end: auto;
  margin-inline-start: 8px;
}

.modal-header {
  gap: 8px;
}

.modal-header h3,
.modal-header h2 {
  flex: 1;
  min-width: 0;
}

.modal-header:has(.raya-doc-nav) {
  display: flex;
  align-items: center;
}
