.android-step-card {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.android-step-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.android-dropdown summary::-webkit-details-marker {
  display: none;
}

.android-guide-details summary::-webkit-details-marker {
  display: none;
}

.android-steps-table-wrapper {
  width: 100%;
}

.android-steps-image-col {
  width: 50%;
}

.android-step-image {
  width: 50vw;
  max-width: 760px;
  min-width: 320px;
  height: auto;
  max-height: 460px;
  object-fit: contain;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #f9fafb;
}

.android-step-image.is-loading {
  opacity: 0.7;
}

.android-step-image.is-error {
  border-color: #f59e0b;
  background: #fff7ed;
}

@media (max-width: 900px) {
  .android-steps-table thead {
    display: none;
  }

  .android-steps-table,
  .android-steps-table tbody,
  .android-steps-table tr,
  .android-steps-table td {
    display: block;
    width: 100%;
  }

  .android-steps-table tr {
    border-top: 1px solid #e5e7eb;
    padding: 0.5rem 0;
  }

  .android-step-image {
    width: 100%;
    max-width: 360px;
    height: auto;
  }
}

.barcode-prev-step:disabled,
.barcode-next-step:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Barcode wizard: vaste knoppen onderaan, scrollbare inhoud, uniforme barcode-grootte */
.barcode-model-panel-layout {
  display: flex;
  flex-direction: column;
  min-height: min(78vh, 820px);
  max-height: min(92vh, 960px);
}

.barcode-model-panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
}

.barcode-image-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  height: clamp(260px, 38vmin, 340px);
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
}

html.dark .barcode-image-frame {
  background: #111827;
  border-color: #4b5563;
}

.barcode-image-frame--placeholder {
  padding: 0.75rem 1rem;
}

.barcode-image-frame--placeholder > div {
  max-width: 100%;
  align-self: center;
}

.barcode-image-frame--on-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

html.dark .barcode-image-frame--on-green {
  background: rgba(6, 78, 59, 0.35);
  border-color: #166534;
}

.barcode-image-frame--on-red {
  background: #fef2f2;
  border-color: #fecaca;
}

html.dark .barcode-image-frame--on-red {
  background: rgba(127, 29, 29, 0.25);
  border-color: #991b1b;
}

.barcode-program-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.barcode-model-panel-nav {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) 1fr minmax(5.5rem, 7.5rem);
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}

html.dark .barcode-model-panel-nav {
  border-color: #374151;
  background: #1f2937;
}

.barcode-nav-prev {
  justify-self: start;
  width: 100%;
  max-width: 7.5rem;
}

.barcode-nav-center {
  justify-self: center;
  text-align: center;
  min-width: 0;
  padding: 0 0.25rem;
}

.barcode-nav-next {
  justify-self: end;
  width: 100%;
  max-width: 7.5rem;
}

@media (max-width: 480px) {
  .barcode-model-panel-layout {
    min-height: 70vh;
    max-height: 94vh;
  }

  .barcode-image-frame {
    max-width: 100%;
    height: clamp(240px, 42vmin, 300px);
    padding: 0.5rem 0.75rem;
  }

  .barcode-model-panel-nav {
    grid-template-columns: minmax(4rem, 5rem) minmax(0, 1fr) minmax(4rem, 5rem);
    gap: 0.25rem;
  }

  .barcode-nav-prev,
  .barcode-nav-next {
    max-width: none;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .barcode-step-indicator {
    font-size: 0.75rem;
    line-height: 1.2;
  }
}

/* Testscan: validatie alleen op het invoerveld (rand + tooltip via title in JS) */
.barcode-scan-test-input.barcode-scan-test-input--ok {
  border-color: #16a34a;
  box-shadow: 0 0 0 1px #16a34a;
}

.barcode-scan-test-input.barcode-scan-test-input--err {
  border-color: #ea580c;
  box-shadow: 0 0 0 1px #ea580c;
}

html.dark .barcode-scan-test-input.barcode-scan-test-input--ok {
  border-color: #4ade80;
  box-shadow: 0 0 0 1px #4ade80;
}

html.dark .barcode-scan-test-input.barcode-scan-test-input--err {
  border-color: #fb923c;
  box-shadow: 0 0 0 1px #fb923c;
}

.barcode-scan-test-input.barcode-scan-test-input--ok-flash {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.45);
}

html.dark .barcode-scan-test-input.barcode-scan-test-input--ok-flash {
  border-color: #4ade80;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.4);
}
