/* Scanner DDT — overlay a schermo intero sopra l'app. */
.cds-scan {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0b1f2a;
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  touch-action: none;
}
.cds-scan__stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* video e canvas si sovrappongono, stessa area */
.cds-scan__video,
.cds-scan__overlay,
.cds-scan__still {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cds-scan__overlay { pointer-events: none; }
.cds-scan__still.editing { pointer-events: auto; }
.cds-scan__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: #0b1f2a;
}
.cds-scan__hint {
  flex: 1;
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
}
.cds-scan button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.cds-scan__shoot {
  width: 62px; height: 62px; border-radius: 50%;
  background: #fff; color: #0b1f2a;
  font-size: 22px;
}
.cds-scan__ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.cds-scan__go { background: #1aa7a0; color: #fff; }
.cds-scan__loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; opacity: 0.9;
}
.cds-scan__file { display: none; }
