@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Plus Jakarta Sans", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.app-shell {
  overflow-x: hidden;
}

.content-wrapper,
.main-sidebar,
.main-sidebar .sidebar,
.nav-sidebar {
  overflow-x: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-in-out;
  z-index: 9999;
}

.page-loader.is-active {
  opacity: 1;
  pointer-events: all;
}

.loader-panel {
  background: #ffffff;
  color: #212529;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

.back-to-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1040;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}

.back-to-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scanner-shell {
  max-width: 760px;
  margin: 0 auto;
}

#reader,
#readerKembali,
#readerMasuk {
  width: 100%;
  min-height: 280px;
  border: 2px dashed #ced4da;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.scan-hint {
  font-size: 0.9rem;
  color: #6c757d;
}

.lokasi-suggest {
  max-height: 180px;
  overflow-y: auto;
  border-radius: 0.25rem;
}

.qr-card {
  width: 240px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px;
  margin: 8px;
  display: inline-block;
  text-align: center;
  vertical-align: top;
  background: #fff;
}

.qr-card img {
  max-width: 170px;
  height: auto;
}

@media print {
  .no-print {
    display: none !important;
  }

  .qr-card {
    page-break-inside: avoid;
  }
}
