/* v152 home-screen app. Safe areas when iPad Safari launches standalone (black-translucent status bar). */
@media (display-mode: standalone) {
  .app42-header { padding-top: env(safe-area-inset-top); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
html.pwa152-standalone .app42-header { padding-top: env(safe-area-inset-top); }
html.pwa152-standalone body { padding-bottom: env(safe-area-inset-bottom); }

/* Signature pad: finger and Apple Pencil. touch-action none keeps the page from scrolling while drawing. */
canvas#sig, .sign-card canvas {
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 180px;
  background: #fff;
  border: 1px solid #cad8e2;
  border-radius: 12px;
  box-sizing: border-box;
}

/* iPad standalone will not open the camera or the photo library for an off-screen file input.
   The control covers its label (Take Photo / Upload from Library) at full size and zero opacity. */
.wp116 label.btn { position: relative; overflow: hidden; }
.wp116 label.btn input[type=file] {
  position: absolute;
  inset: -2px;
  width: auto;
  height: auto;
  margin: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}
label.pwa152-file { position: relative !important; overflow: hidden; }
input.pwa152-fileinput {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  opacity: 0 !important;
  font-size: 16px !important;
  cursor: pointer;
  z-index: 2 !important;
}
