/* ============================================================
   JSM Reports - PWA Install / Add-to-Home-Screen prompts
   Shown over the Flutter canvas on mobile browsers.
   ============================================================ */
#pwa-modal {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#pwa-modal.show { display: block; }

#pwa-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(9, 20, 38, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
#pwa-modal.show #pwa-backdrop { opacity: 1; pointer-events: auto; }

#pwa-sheet {
  position: relative;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(9, 20, 38, 0.28);
  padding: 20px 20px 22px;
  max-width: 460px;
  margin: 0 auto;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}
#pwa-modal.show #pwa-sheet { transform: translateY(0); }

#pwa-sheet .pwa-header { display: flex; align-items: center; gap: 12px; }
#pwa-sheet .pwa-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.25);
}
#pwa-sheet h3 { margin: 0; font-size: 18px; line-height: 1.2; color: #10233f; }
#pwa-sheet .pwa-sub { margin: 3px 0 0; font-size: 13px; color: #5b6b84; }

#pwa-body { margin-top: 14px; font-size: 14px; line-height: 1.55; color: #334155; }

.pwa-steps { margin: 8px 0 0; padding: 0; list-style: none; }
.pwa-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: #334155;
}
.pwa-step-num {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: #e3edfb;
  color: #1565C0;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-tip {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f1f6fd;
  border-left: 3px solid #1565C0;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #4a5c77;
}

#pwa-actions {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.pwa-btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  transition: transform 0.12s ease, background 0.15s ease;
}
.pwa-btn:active { transform: scale(0.96); }
.pwa-btn-primary { background: #1565C0; color: #ffffff; }
.pwa-btn-primary:hover { background: #0d47a1; }
.pwa-btn-ghost { background: transparent; color: #1565C0; }
.pwa-btn-ghost:hover { background: #eef4fc; }
