/* WBS reusable evidence capture */

.evidence-capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.evidence-capture-actions button {
  min-height: 38px;
}

.evidence-capture-status {
  display: block;
  min-height: 18px;
  font-size: .68rem;
  opacity: .68;
}

.wbs-camera-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8,12,18,.82);
  backdrop-filter: blur(12px);
}

.wbs-camera-dialog {
  display: grid;
  gap: 12px;
  width: min(100%, 900px);
  max-height: calc(100vh - 36px);
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
  background:
    linear-gradient(
      145deg,
      rgba(245,248,252,.98),
      rgba(226,232,240,.98)
    );
  box-shadow:
    0 24px 70px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.7);
}

.wbs-camera-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.wbs-camera-dialog-head h3,
.wbs-camera-dialog-head p {
  margin: 0;
}

.wbs-camera-dialog-head p {
  margin-top: 4px;
  opacity: .68;
}

.wbs-camera-kicker {
  margin-bottom: 4px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.wbs-camera-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 4px;
  background: #0d1117;
}

.wbs-camera-stage video {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  background: #0d1117;
}

.wbs-camera-guide {
  position: absolute;
  inset: 7%;
  pointer-events: none;
  border: 1px dashed rgba(255,255,255,.65);
  border-radius: 4px;
}

.wbs-camera-dialog-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.wbs-camera-dialog-actions .waffle-action {
  min-width: 180px;
  min-height: 44px;
}

@media (max-width: 760px) {

  .evidence-capture-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .evidence-capture-actions button {
    width: 100%;
    min-height: 48px;
  }

  .wbs-camera-overlay {
    padding: 0;
  }

  .wbs-camera-dialog {
    width: 100%;
    height: 100dvh;
    max-height: none;
    align-content: start;
    border: 0;
    border-radius: 0;
  }

  .wbs-camera-stage {
    min-height: 52dvh;
  }

  .wbs-camera-stage video {
    max-height: 62dvh;
  }

  .wbs-camera-dialog-actions .waffle-action {
    width: 100%;
    min-height: 52px;
  }
}

.fuel-camera-card input[type="file"][hidden] {
  display: none;
}

