/* v4.132 - reuse inspection's white photographic UI conventions */
.wd-asset-original-file{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important}
.wd-asset-photo-entry{width:100%;padding:12px 0;text-align:center}
.wd-asset-photo-heading{font-size:13px;font-weight:650;color:#17283b;margin-bottom:12px}
.wd-asset-photo-start{display:inline-flex!important;align-items:center;justify-content:center;width:76px;height:76px;border-radius:50%!important;background:#fff!important;border:2px solid #d7e2ef!important;color:#17283b!important;box-shadow:0 4px 16px #142e4512}
.wd-asset-photo-start svg{width:37px;height:37px}
.wd-asset-photo-preview img{max-width:100%;max-height:235px;object-fit:contain;margin:12px auto;border-radius:12px}
#wdAssetCamera[hidden]{display:none!important}#wdAssetCamera{position:fixed;inset:0;background:#fff;z-index:99999;color:#16283a;display:flex;align-items:stretch;justify-content:center}
.wd-asset-camera-pane{width:100%;max-width:700px;display:flex;flex-direction:column;padding:calc(12px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));box-sizing:border-box}
.wd-asset-camera-top{display:flex;align-items:center;justify-content:space-between;font-size:17px;font-weight:700;padding:8px 0 14px}
#wdAssetCameraClose{background:#fff;color:#152c42;border:1px solid #d7e2ef;border-radius:50%;font-size:30px;width:46px;height:46px}
.wd-asset-camera-frame{background:#f3f6fa;min-height:0;flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:18px}
#wdAssetCameraVideo{width:100%;height:100%;object-fit:contain}
.wd-asset-camera-controls{display:flex;align-items:center;justify-content:space-around;min-height:110px;padding:20px 6px 5px}
.wd-asset-camera-controls button{background:#fff;color:#1a2e41;border:1px solid #d8e2eb;border-radius:50%;width:58px;height:58px;font-size:28px}
#wdAssetCameraShutter{width:84px;height:84px;border:3px solid #14283b;display:flex;align-items:center;justify-content:center}
#wdAssetCameraShutter span{display:block;width:64px;height:64px;background:#fff;border:2px solid #14283b;border-radius:50%}
#wdAssetCameraNotice{font-size:12px;color:#52657a;text-align:center}

/* v4.133 common two-action camera dock + confirmation */
.wd-asset-camera-top{justify-content:flex-end}.wd-asset-camera-top span{display:none}
#wdAssetCamera .wd-asset-camera-pane{padding-top:calc(90px + env(safe-area-inset-top));padding-bottom:calc(105px + env(safe-area-inset-bottom));position:relative;background:#fff}
#wdAssetCamera .wd-asset-camera-frame{flex:0 1 auto;height:min(45dvh,420px);min-height:180px;background:#f5f7f9}
#wdAssetCapturedPreview{width:100%;height:100%;object-fit:contain}
#wdAssetCamera .wd-asset-photo-step{text-align:center;font-weight:650;font-size:18px;margin:16px 0 8px}
#wdAssetCamera .wd-asset-camera-controls{position:fixed;bottom:calc(25px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(500px,calc(100% - 36px));display:grid;grid-template-columns:1fr 1fr 1fr;min-height:82px;padding:0;gap:0;align-items:center;background:transparent}
#wdAssetCamera .wd-asset-camera-controls button{display:grid;place-items:center;background:#fff;color:#17283b}
#wdAssetCameraBack{justify-self:start;width:54px!important;height:54px!important;border:1px solid #d7e2ee!important}
#wdAssetCameraBack svg{width:29px;height:29px}
#wdAssetCameraShutter{justify-self:center;width:78px!important;height:78px!important;border:5px solid #414141!important;box-shadow:0 0 0 1px #888;padding:0!important}
#wdAssetCameraShutter svg{width:34px;height:34px}
#wdAssetCameraDone{justify-self:end;width:54px!important;height:54px!important;color:#397d46!important}
#wdAssetCameraDone[hidden]{display:none!important}
#wdAssetCameraNotice{text-align:center;max-width:500px;align-self:center}
#wdAssetCameraClose{position:fixed;top:calc(16px + env(safe-area-inset-top));right:16px;z-index:9}
.wd-home-reg-back{border:1px solid #d7e2ee!important;background:#fff!important;border-radius:50%!important;color:#17283b!important;font-size:27px!important;width:52px!important;height:52px!important;display:grid!important;place-items:center;margin:0 0 12px!important}

/* v4.139: common HSE-style capture composition (asset + helmet QR).
   Keep camera preview, label, and controls aligned with inspection photography. */
#wdAssetCamera{z-index:200500!important;background:#fff!important}
#wdAssetCamera .wd-asset-camera-pane{
  padding:calc(108px + env(safe-area-inset-top,0px)) 16px calc(124px + env(safe-area-inset-bottom,0px))!important;
  max-width:700px;align-items:center;justify-content:flex-start;
}
#wdAssetCamera .wd-asset-camera-top{width:100%;height:0;padding:0;margin:0}
#wdAssetCamera .wd-asset-camera-frame{flex:none!important;width:min(100%,500px)!important;height:min(38dvh,395px)!important;border-radius:16px!important;background:#f7f9fb!important}
#wdAssetCameraVideo,#wdAssetCapturedPreview{object-fit:contain!important}
#wdAssetCamera .wd-asset-photo-step{font-size:18px!important;margin-top:18px!important;color:#17283b!important;text-align:center}
#wdAssetCamera .wd-asset-camera-controls{
  bottom:calc(40px + env(safe-area-inset-bottom,0px))!important;
  width:min(500px,calc(100vw - 42px))!important;grid-template-columns:1fr 1fr 1fr!important;
  height:82px!important;
}
#wdAssetCameraBack{justify-self:start!important}
#wdAssetCameraShutter{justify-self:center!important;width:78px!important;height:78px!important;border:5px solid #424242!important;border-radius:50%!important}
#wdAssetCameraDone{justify-self:end!important}
#wdAssetCameraNotice{font-size:13px!important;margin:9px 0;text-align:center}
#wdAssetCamera .wd-asset-camera-controls button[hidden]{display:none!important}
/* The registration first step uses the same centered, camera-first visual hierarchy. */
body.wd-staged-register .wd-stage-content>.wd-asset-photo-entry{padding:0!important}
body.wd-staged-register .wd-asset-photo-heading{font-size:18px!important;margin:12px 0 20px!important}
body.wd-staged-register .wd-asset-photo-start{width:78px!important;height:78px!important;border:4px solid #424242!important;border-radius:50%!important}
body.wd-staged-register .wd-stage-heading{margin:4px 0 22px!important;font-size:18px!important}
/* v4.140 same full-bleed video/capture frame as HSE, no letterboxing */
#wdAssetCamera .wd-asset-camera-frame{width:min(100%,500px)!important;height:min(43dvh,430px)!important;aspect-ratio:4/3;flex:none!important;background:#f5f7fa!important}
#wdAssetCameraVideo,#wdAssetCapturedPreview,#wdAssetGuideVideo{width:100%!important;height:100%!important;object-fit:cover!important}
#wdAssetGuide{width:100%;height:100%;display:grid;place-items:center}#wdAssetGuide[hidden]{display:none!important}
.wd-asset-guide-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:22px;height:100%;box-sizing:border-box;color:#182b40}
.wd-asset-guide-fallback .wd-guide-graphic svg{height:75px;width:75px;stroke:#17283b}.wd-asset-guide-fallback p{font-size:15px;margin:0}.wd-asset-guide-fallback small{font-size:12px;color:#718095}
#wdAssetCamera .wd-asset-camera-controls{grid-template-columns:1fr 1fr 1fr!important}#wdAssetCameraSkip{grid-column:3;justify-self:end!important;font-size:29px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0!important}#wdAssetCameraSkip small{font-size:11px}
#wdAssetCameraPlay{grid-column:2;justify-self:center!important;width:48px!important;height:48px!important;border:1px solid #d7e2ee!important}#wdAssetCameraPlay svg{width:26px;height:26px}
#wdAssetCameraShutter{grid-column:2}#wdAssetCameraDone{grid-column:3}
#wdAssetNoSerial{align-self:center;border:1px solid #d7e2ee;border-radius:22px;background:#fff;padding:9px 16px;color:#253b51;font-size:13px}#wdAssetNoSerial[hidden]{display:none!important}
#wdAssetCamera .wd-asset-recognized{position:fixed;left:50%;bottom:calc(126px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);width:min(500px,calc(100vw - 32px));max-height:35dvh;overflow:auto;background:white;border:1px solid #dce4ee;border-radius:14px;box-shadow:0 4px 20px #0002;z-index:3;padding:15px;box-sizing:border-box}
#wdAssetCamera .wd-asset-recognized[hidden]{display:none!important}.wd-asset-recognized h3{margin:0 0 9px;font-size:16px}.wd-asset-recognized label{display:block;font-size:12px;margin:8px 0}.wd-asset-recognized input{display:block;width:100%;box-sizing:border-box;padding:10px;border:1px solid #d5dfe9;border-radius:8px;margin-top:4px;font-size:16px}.wd-asset-review-actions{display:flex;gap:8px}.wd-asset-review-actions button{flex:1;padding:10px;border:1px solid #d5dfe9;border-radius:10px;background:white;color:#192c42}
