/* Invoice surfaces use the same restrained glass palette as index.html. */
:root {
  color-scheme: dark;
  --invoice-border: rgba(255, 255, 255, .1);
  --invoice-surface: rgba(255, 255, 255, .035);
}

html { min-height: 100%; background: #050506 !important; }
body { min-height: 100%; color: #f4f4f5; background: transparent !important; }

.panel-card {
  background: radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.12), transparent 55%),
              linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03)) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 18px 36px -22px rgba(0,0,0,.95);
}

.nav-shell {
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.025)), rgba(8,8,10,.62);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 40px -16px rgba(0,0,0,.9);
}

.btn-glass, .btn-ghost { -webkit-tap-highlight-color: transparent; }
.btn-glass:disabled, .btn-ghost:disabled { cursor: wait; opacity: .55; }
#payment-section { scroll-margin-top: 1rem; }
#inv-products-list > div { min-width: 0; }
#inv-detail-id, #inv-header-id { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  #invoice-wrapper { padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  #inv-total-idr { font-size: clamp(1.75rem, 8vw, 2.25rem); }
}

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