/* Tam ekran yükleme — admin sayfaları (Finance ile aynı davranış) */
.page-busy {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
}
.page-busy.hidden {
  display: none !important;
}
.page-busy__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.5);
  backdrop-filter: blur(4px);
}
.page-busy__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 32px;
  border-radius: 16px;
  border: 1px solid rgba(30, 37, 50, 0.95);
  background: linear-gradient(135deg, rgba(15, 20, 25, 0.97) 0%, rgba(20, 25, 34, 0.99) 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}
.page-busy__spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(30, 37, 50, 0.9);
  border-top-color: #8b5cf6;
  animation: page-busy-spin 0.75s linear infinite;
}
@keyframes page-busy-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .page-busy__spinner {
    animation: none;
    border-top-color: #a78bfa;
    opacity: 0.9;
  }
}
.page-busy__text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
}

html[data-theme="light"] .page-busy__backdrop {
  background: rgba(248, 250, 252, 0.65);
}
html[data-theme="light"] .page-busy__panel {
  border-color: rgba(148, 163, 184, 0.35);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 252, 0.99) 100%);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}
html[data-theme="light"] .page-busy__text {
  color: #64748b;
}
html[data-theme="light"] .page-busy__spinner {
  border-color: rgba(226, 232, 240, 0.95);
  border-top-color: #6366f1;
}

body.admin-shell-page[data-ui-theme="light"] .page-busy__backdrop {
  background: rgba(248, 250, 252, 0.65);
}
body.admin-shell-page[data-ui-theme="light"] .page-busy__panel {
  border-color: rgba(148, 163, 184, 0.35);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 252, 0.99) 100%);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}
body.admin-shell-page[data-ui-theme="light"] .page-busy__text {
  color: #64748b;
}
body.admin-shell-page[data-ui-theme="light"] .page-busy__spinner {
  border-color: rgba(226, 232, 240, 0.95);
  border-top-color: #8b5cf6;
}
