:root {
  --nexarx-success: #0aad78;
  --nexarx-success-soft: #e7f8f2;
  --nexarx-pending: #d99500;
  --nexarx-pending-soft: #fff7dc;
  --nexarx-ink: #11223d;
}

.nexarx-delivery-row {
  position: relative !important;
  padding-right: 7.4rem !important;
  min-height: 5.75rem;
}

.driver-delivery-pay {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  min-height: 2.25rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid #7dddc0;
  border-radius: 999px;
  background: var(--nexarx-success-soft);
  color: #087a59;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.driver-delivery-pay.is-pending {
  border-color: #d9e1ea;
  background: #f4f7fa;
  color: #68788f;
  font-size: 0.72rem;
}

.nexarx-proof-workspace {
  width: 100%;
  max-width: 58rem;
  margin-inline: auto;
}

.nexarx-proof-camera {
  position: relative;
  overflow: hidden;
  min-height: 20rem;
  border: 1px solid #a8b9c8 !important;
  border-radius: 0.75rem !important;
  background: linear-gradient(180deg, #eaf2f1 0%, #dce8e6 63%, #b7c2c0 100%) !important;
}

.nexarx-proof-camera .d2-proof-viewfinder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(17, 34, 61, 0.08), rgba(17, 34, 61, 0.08)),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.55), rgba(205, 221, 218, 0.2) 58%, rgba(17, 34, 61, 0.12));
}

.nexarx-proof-camera .proof-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.1rem;
  display: flex;
  gap: 0.75rem;
  transform: translateX(-50%);
}

.nexarx-proof-camera .proof-control {
  position: relative;
  width: 3.55rem;
  height: 3.55rem;
  min-width: 3.55rem;
  border: 3px solid #fff !important;
  border-radius: 50% !important;
  background: #2f80ed !important;
  color: #fff !important;
  box-shadow: 0 5px 18px rgba(23, 59, 98, 0.22);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nexarx-proof-camera .proof-control:hover,
.nexarx-proof-camera .proof-control:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(23, 59, 98, 0.3);
}

.nexarx-proof-camera .proof-control.is-working {
  background: #0878d1 !important;
}

.nexarx-proof-camera .proof-control.is-complete {
  background: var(--nexarx-success) !important;
  box-shadow: 0 0 0 4px rgba(10, 173, 120, 0.18), 0 5px 18px rgba(23, 59, 98, 0.2);
}

.nexarx-proof-camera .proof-control:disabled:not(.is-complete) {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.nexarx-proof-camera .proof-control.is-complete:disabled {
  opacity: 1;
}

.nexarx-proof-camera .proof-control.is-complete::before {
  content: "";
  position: absolute;
  top: -0.18rem;
  right: -0.18rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--nexarx-success);
}

.nexarx-camera-summary {
  position: absolute;
  z-index: 2;
  top: 1rem;
  right: 1rem;
  padding: 0.4rem 0.65rem;
  border-radius: 0.35rem;
  background: rgba(17, 34, 61, 0.84);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nexarx-proof-progress {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem !important;
  margin-block: 0.75rem !important;
  pointer-events: none !important;
  user-select: none;
}

.nexarx-proof-progress > *,
.nexarx-proof-progress [class*="proof-item"] {
  min-height: 3.25rem !important;
  margin: 0 !important;
  padding: 0.65rem 0.8rem !important;
  border: 1px solid #cad5e1 !important;
  border-radius: 0.45rem !important;
  background: #f7f9fb !important;
  color: #53647b !important;
  font-size: 0.78rem !important;
  line-height: 1.25 !important;
  cursor: default !important;
}

.nexarx-proof-progress > *.is-complete,
.nexarx-proof-progress [class*="proof-item"].is-complete {
  border-color: #79dcbf !important;
  background: var(--nexarx-success-soft) !important;
  color: #087a59 !important;
}

.nexarx-warehouse-package {
  border-color: #e3b83a !important;
  background: var(--nexarx-pending-soft) !important;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.warehouse-scan-complete,
.nexarx-warehouse-package.is-scanned {
  border-color: #62d4ae !important;
  background: var(--nexarx-success-soft) !important;
  color: #087a59 !important;
}

.nexarx-warehouse-package.is-pending {
  color: #8a6500 !important;
}

@media (max-width: 680px) {
  .nexarx-delivery-row {
    padding-right: 6.35rem !important;
  }

  .driver-delivery-pay {
    right: 0.65rem;
    min-width: 4.75rem;
    min-height: 2rem;
    padding-inline: 0.5rem;
    font-size: 0.78rem;
  }

  .nexarx-proof-camera {
    min-height: min(48vh, 27rem);
    border-radius: 0 !important;
  }

  .nexarx-proof-camera .proof-controls {
    width: 100%;
    justify-content: center;
    gap: 0.6rem;
  }

  .nexarx-proof-camera .proof-control {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
  }

  .nexarx-proof-progress {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nexarx-proof-camera .proof-control,
  .nexarx-warehouse-package {
    transition: none;
  }
}

/* Camera-first driver workflow */
.delivery-page.nexarx-proof-workspace {
  max-width: 42rem;
  padding: 0.75rem 0.85rem 1.25rem;
  background: #fff;
}

.delivery-order-header {
  padding: 0.15rem 0 0.75rem;
}

.delivery-order-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  margin-bottom: 0.75rem;
}

.delivery-order-chips > span {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  padding: 0.32rem 0.58rem;
  border-radius: 0.45rem;
  background: #edf2f6;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.delivery-order-chips .delivery-mode {
  font-size: 0.78rem;
}

.delivery-order-chips .delivery-pay-chip {
  margin-left: auto;
  background: #e8faf5;
  color: #087a59;
}

.delivery-patient-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
  gap: 0.8rem;
  align-items: start;
}

.delivery-patient-grid > div,
.delivery-patient-grid > button {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #111827;
  text-align: left;
}

.delivery-patient-grid span {
  display: block;
  margin-bottom: 0.18rem;
  color: #6b7280;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
}

.delivery-patient-grid b {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  line-height: 1.28;
}

.delivery-patient-grid button b {
  color: #12aa82;
  text-decoration: underline;
}

.delivery-order-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  margin-top: 0.75rem;
  color: #263244;
  font-size: 0.78rem;
  font-weight: 700;
}

.delivery-special-instructions {
  margin-top: 0.75rem;
}

.delivery-special-instructions > b {
  display: block;
  margin-bottom: 0.36rem;
  color: #111827;
  font-size: 0.76rem;
}

.delivery-special-instructions > div {
  padding: 0.72rem 0.85rem;
  border-radius: 0.5rem;
  background: #f53261;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.32;
}

.delivery-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.delivery-quick-actions button {
  min-height: 2.85rem;
  border: 1px solid #152238;
  border-radius: 0.5rem;
  background: #fff;
  color: #152238;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
}

.delivery-quick-actions button:last-child {
  border-color: #35d34a;
  background: #35d34a;
  color: #07131f;
}

.delivery-quick-actions button.is-complete {
  border-color: #0aad78;
  background: #e8faf5;
  color: #087a59;
}

.delivery-page .nexarx-proof-camera {
  min-height: 0;
  aspect-ratio: 1 / 1;
  margin-top: 0.7rem;
  border: 0 !important;
  border-radius: 0.55rem !important;
  background: #152238 !important;
}

.delivery-page .nexarx-proof-camera .d2-proof-viewfinder {
  background: #dfe8ec;
}

.delivery-page .d2-proof-viewfinder > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-camera-idle {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  color: #365065;
  text-align: center;
}

.proof-camera-idle b {
  font-size: 1rem;
}

.proof-camera-idle span {
  font-size: 0.78rem;
}

.proof-frame-corners {
  position: absolute;
  inset: 24% 23% 25%;
  border: 3px solid #ff9d00;
  border-radius: 0.8rem;
  box-shadow: 0 0 0 999px rgba(8, 18, 31, 0.08);
  pointer-events: none;
}

.delivery-page .nexarx-camera-summary {
  top: 0.75rem;
  right: 0.75rem;
  max-width: calc(100% - 1.5rem);
  background: rgba(17, 34, 61, 0.82);
  font-size: 0.68rem;
}

.delivery-page .nexarx-proof-camera .proof-controls {
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  justify-content: center;
  gap: 0.48rem;
  overflow-x: auto;
  padding: 0.7rem 0.75rem;
  background: rgba(5, 14, 24, 0.62);
  transform: none;
  scrollbar-width: none;
}

.delivery-page .nexarx-proof-camera .proof-controls::-webkit-scrollbar {
  display: none;
}

.delivery-page .nexarx-proof-camera .proof-control {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  min-width: 3.2rem;
  place-items: center;
  padding: 0.18rem;
  border: 2px solid rgba(255, 255, 255, 0.9) !important;
  background: rgba(19, 32, 46, 0.9) !important;
  box-shadow: none;
  font-family: inherit;
}

.delivery-page .proof-control > svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 2;
}

.delivery-page .proof-control > small {
  position: absolute;
  right: -0.2rem;
  bottom: -0.1rem;
  padding: 0.12rem 0.2rem;
  border-radius: 0.2rem;
  background: #fff;
  color: #087a59;
  font-size: 0.42rem;
  font-weight: 900;
}

.delivery-page .nexarx-proof-camera .proof-control.is-next {
  background: #f5c526 !important;
  color: #142033 !important;
}

.delivery-page .nexarx-proof-camera .proof-control.is-complete {
  background: #35d34a !important;
  color: #fff !important;
  box-shadow: none;
}

.delivery-page .nexarx-proof-camera .proof-control.is-complete::before {
  display: none;
}

.delivery-page .nexarx-proof-camera .proof-control:disabled:not(.is-complete) {
  opacity: 0.38;
}

.proof-review-strip {
  display: flex;
  gap: 0.58rem;
  overflow-x: auto;
  padding: 0.72rem 0 0.4rem;
  scrollbar-width: none;
}

.proof-complete-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.7rem;
  padding: 0.65rem 0;
  border-block: 1px solid #e4eaf0;
}

.proof-complete-overview > div:first-child span,
.proof-complete-overview > div:first-child b {
  display: block;
}

.proof-complete-overview > div:first-child span {
  color: #087a59;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.proof-complete-overview > div:first-child b {
  margin-top: 0.18rem;
  color: #152238;
  font-size: 0.8rem;
}

.proof-complete-overview .proof-controls {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding: 0.15rem;
  scrollbar-width: none;
}

.proof-complete-overview .proof-controls::-webkit-scrollbar {
  display: none;
}

.proof-complete-overview .proof-control {
  position: relative;
  display: grid;
  width: 2.45rem;
  height: 2.45rem;
  min-width: 2.45rem;
  place-items: center;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #35d34a;
  color: #fff;
  box-shadow: 0 0 0 1px #7adf88;
}

.proof-complete-overview .proof-control:not(.is-complete) {
  background: #f5c526;
  color: #152238;
}

.proof-complete-overview .proof-control:disabled {
  opacity: 1;
}

.proof-complete-overview .proof-control > svg {
  width: 1.05rem;
  height: 1.05rem;
}

.proof-complete-overview .proof-control > small {
  position: absolute;
  right: -0.2rem;
  bottom: -0.15rem;
  padding: 0.08rem 0.16rem;
  border-radius: 0.18rem;
  background: #fff;
  color: #087a59;
  font-size: 0.36rem;
  font-weight: 900;
}

.proof-review-strip::-webkit-scrollbar {
  display: none;
}

.proof-add-tile,
.proof-thumbnail {
  position: relative;
  width: 6.4rem;
  min-width: 6.4rem;
  height: 6.8rem;
  overflow: hidden;
  border: 1px solid #e4eaf0;
  border-radius: 0.45rem;
  background: #f7f9fb;
  color: #152238;
  font-family: inherit;
}

.proof-add-tile {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
}

.proof-add-tile span {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border-radius: 50%;
  background: #1fc6a0;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

.proof-add-tile b {
  font-size: 0.76rem;
}

.proof-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proof-thumbnail > span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  padding: 0.3rem 0.35rem;
  background: rgba(4, 13, 24, 0.72);
  color: #fff;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-thumbnail > i {
  position: absolute;
  top: 0.32rem;
  right: 0.32rem;
  padding: 0.2rem 0.3rem;
  border-radius: 0.25rem;
  background: #fff;
  color: #152238;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 900;
}

.delivery-review-fields {
  display: grid;
  gap: 0.65rem;
  padding: 0.55rem 0 0.8rem;
}

.delivery-review-fields label > span {
  display: block;
  margin-bottom: 0.3rem;
  color: #526176;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.delivery-review-fields select,
.delivery-review-fields textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccd6e0;
  border-radius: 0.5rem;
  background: #fff;
  color: #152238;
  font: inherit;
  font-size: 0.86rem;
}

.delivery-review-fields select {
  min-height: 2.9rem;
  padding: 0 0.75rem;
}

.delivery-review-fields textarea {
  min-height: 4.8rem;
  resize: vertical;
  padding: 0.7rem 0.75rem;
}

.delivery-action-dock {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0 -0.85rem -1.25rem;
  padding: 0.65rem 0.85rem calc(env(safe-area-inset-bottom) + 0.65rem);
  border-top: 1px solid #e5eaf0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.delivery-page.is-review-ready .delivery-action-dock {
  position: sticky;
  bottom: -1px;
  margin-top: auto;
}

.delivery-page.is-review-ready {
  display: flex;
  min-height: calc(100% - 3.85rem);
  flex-direction: column;
  box-sizing: border-box;
}

.delivery-action-dock button {
  min-height: 3rem;
  border: 0;
  border-radius: 0.5rem;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
}

.delivery-attempt-button {
  background: #f53261;
}

.delivery-complete-button {
  background: #35d34a;
}

.proof-next-message {
  margin-top: 0.2rem;
  padding: 0.7rem 0;
  color: #68788f;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.proof-editor-overlay {
  position: fixed;
  z-index: 10010;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #07111f;
  color: #fff;
}

.proof-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(env(safe-area-inset-top) + 0.75rem) 0.9rem 0.75rem;
  background: #fff;
  color: #152238;
}

.proof-editor-header span,
.proof-editor-header b {
  display: block;
}

.proof-editor-header span {
  color: #68788f;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.proof-editor-header b {
  margin-top: 0.15rem;
  font-size: 0.95rem;
}

.proof-editor-header button {
  min-height: 2.35rem;
  border: 1px solid #ccd6e0;
  border-radius: 0.45rem;
  background: #fff;
  color: #152238;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 900;
}

.proof-editor-canvas {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #07111f;
}

.proof-editor-canvas img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.proof-unavailable {
  max-width: 18rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  text-align: center;
}

.proof-editor-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.75rem 0.8rem calc(env(safe-area-inset-bottom) + 0.75rem);
  background: #fff;
}

.proof-editor-actions button {
  min-height: 2.8rem;
  border: 1px solid #ccd6e0;
  border-radius: 0.45rem;
  background: #fff;
  color: #152238;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 900;
}

.proof-editor-actions .is-danger {
  border-color: #f6a2b7;
  color: #d91f4b;
}

.proof-editor-actions .is-primary {
  border-color: #35d34a;
  background: #35d34a;
  color: #07131f;
}

.nexarx-scanner-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
  color: #152238;
}

.scanner-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: calc(env(safe-area-inset-top) + 0.7rem) 0.8rem 0.65rem;
  border-bottom: 1px solid #e4eaf0;
  background: #fff;
}

.scanner-header button {
  min-height: 2.25rem;
  border: 1px solid #ccd6e0;
  border-radius: 0.45rem;
  background: #fff;
  color: #152238;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
}

.scanner-header span,
.scanner-header b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scanner-header span {
  color: #68788f;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scanner-header b {
  margin-top: 0.14rem;
  font-size: 0.9rem;
}

.scanner-header strong {
  color: #087a59;
  font-size: 0.68rem;
  text-align: right;
}

.scanner-order-summary {
  padding: 0.7rem 0.85rem;
  background: #fff;
}

.scanner-order-summary span {
  display: inline-flex;
  padding: 0.25rem 0.48rem;
  border-radius: 0.38rem;
  background: #e8faf5;
  color: #087a59;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  font-weight: 900;
}

.scanner-order-summary b,
.scanner-order-summary small {
  display: block;
}

.scanner-order-summary b {
  margin-top: 0.4rem;
  font-size: 1rem;
}

.scanner-order-summary small {
  overflow: hidden;
  margin-top: 0.22rem;
  color: #68788f;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scanner-camera-stage {
  position: relative;
  flex: 1;
  min-height: 16rem;
  overflow: hidden;
  background: #020817;
}

.scanner-camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020817;
}

.scanner-frame {
  position: absolute;
  inset: 17% 12%;
  border: 3px solid #ff9d00;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 999px rgba(2, 8, 23, 0.2);
  pointer-events: none;
}

.scanner-sweep {
  position: absolute;
  top: 50%;
  right: 16%;
  left: 16%;
  height: 2px;
  background: #34d399;
  box-shadow: 0 0 18px #34d399;
}

.scanner-camera-status {
  position: absolute;
  right: 0.75rem;
  bottom: 0.7rem;
  left: 0.75rem;
  overflow: hidden;
  padding: 0.42rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(2, 8, 23, 0.7);
  color: #fff;
  font-size: 0.64rem;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scanner-footer {
  padding: 0.65rem 0.8rem calc(env(safe-area-inset-bottom) + 0.7rem);
  background: #fff;
}

.scanner-error {
  margin-bottom: 0.5rem;
  padding: 0.52rem 0.65rem;
  border-radius: 0.4rem;
  background: #fff0f4;
  color: #c91f49;
  font-size: 0.7rem;
  font-weight: 800;
}

.scanner-photo-button {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid #152238;
  border-radius: 0.48rem;
  background: #fff;
  color: #152238;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
}

.scanner-fallback-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.scanner-fallback-row input,
.scanner-fallback-row button {
  min-height: 2.65rem;
  box-sizing: border-box;
  border-radius: 0.48rem;
  font: inherit;
  font-size: 0.76rem;
}

.scanner-fallback-row input {
  min-width: 0;
  border: 1px solid #ccd6e0;
  padding: 0 0.65rem;
}

.scanner-fallback-row button {
  border: 0;
  background: #35d34a;
  color: #07131f;
  padding: 0 0.85rem;
  font-weight: 900;
}

.warehouse-gate-page .nexarx-warehouse-package {
  background: #fff8dd !important;
  color: #705300 !important;
}

.warehouse-gate-page .nexarx-warehouse-package.is-scanned {
  background: #e8faf5 !important;
  color: #087a59 !important;
}

.driver-orders-with-me button:last-child {
  border-bottom: 0 !important;
}

.tab-icon {
  display: grid;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
}

.tab-icon > svg {
  width: 1.25rem;
  height: 1.25rem;
}

.tab-center > svg {
  width: 1.55rem;
  height: 1.55rem;
}

@media (max-width: 420px) {
  .delivery-page.nexarx-proof-workspace {
    padding-inline: 0.65rem;
  }

  .delivery-patient-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 0.55rem;
  }

  .delivery-order-chips .delivery-pay-chip {
    margin-left: 0;
  }

  .delivery-page .nexarx-proof-camera {
    aspect-ratio: 1 / 1;
    border-radius: 0.4rem !important;
  }

  .delivery-page .nexarx-proof-camera .proof-controls {
    justify-content: flex-start;
  }

  .delivery-page .nexarx-proof-camera .proof-control {
    width: 2.95rem;
    height: 2.95rem;
    min-width: 2.95rem;
  }

  .proof-editor-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-complete-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-complete-overview .proof-controls {
    width: 100%;
    box-sizing: border-box;
  }

  .scanner-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .scanner-header strong {
    grid-column: 2;
    text-align: left;
  }
}

/* Screenshot-matched mobile driver experience */
:root {
  --reference-mint: #2bc7a3;
  --reference-mint-soft: #d8f5ed;
  --reference-pink: #ff3260;
  --reference-green: #3ed34e;
  --reference-blue: #28b7f3;
  --reference-yellow: #ffd126;
  --reference-ink: #111827;
  --reference-line: #e5e7eb;
}

.reference-delivery-screen {
  width: min(100%, 36.8125rem);
  min-height: 100%;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 0.75rem) 0.78rem 1.1rem;
  box-sizing: border-box;
  background: #fff;
  color: var(--reference-ink);
}

.reference-order-summary {
  display: block;
}

.reference-order-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.reference-order-chips > span,
.reference-mode-chip,
.reference-scanner-chips > * {
  display: inline-flex;
  min-height: 1.75rem;
  align-items: center;
  box-sizing: border-box;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.reference-order-chips > span {
  padding: 0.38rem 0.62rem;
  background: var(--reference-mint);
  color: #fff;
  font-size: 0.78rem;
}

.reference-order-chips .reference-order-chip {
  background: #f2f4f5;
  color: var(--reference-mint);
}

.reference-order-chips .reference-pay-chip {
  background: #4b5563;
  color: #fff;
}

.reference-order-chips .reference-item-chip {
  margin-left: auto;
}

.reference-mode-chip {
  width: fit-content;
  min-height: 1.9rem;
  margin-top: 0.45rem;
  padding: 0.36rem 0.7rem;
  background: var(--mode-color);
  color: #fff;
  font-size: 0.88rem;
}

.reference-patient-address {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
  gap: 0.7rem;
  margin-top: 0.55rem;
}

.reference-patient-address > div,
.reference-patient-address > button {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr);
  align-items: start;
  gap: 0.3rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--reference-ink);
  text-align: left;
}

.reference-patient-address svg,
.reference-pharmacy svg {
  width: 1.12rem;
  height: 1.12rem;
  color: var(--reference-mint);
  stroke-width: 3;
}

.reference-patient-address b {
  overflow-wrap: anywhere;
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.27;
}

.reference-patient-address button b,
.reference-scanner-summary .reference-patient-address > div:last-child b {
  color: var(--reference-mint);
  font-weight: 700;
  text-decoration: underline;
}

.reference-pharmacy {
  display: grid;
  grid-template-columns: 1.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.34rem;
  margin-top: 0.8rem;
}

.reference-pharmacy b,
.reference-pharmacy span {
  min-width: 0;
  font-size: 0.88rem;
}

.reference-pharmacy b {
  font-weight: 600;
}

.reference-pharmacy span {
  color: #4b5563;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.reference-order-summary h2 {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.93rem;
  font-weight: 800;
  line-height: 1.2;
}

.reference-copay-collection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.18rem 0.75rem;
  margin-top: 0.7rem;
  padding: 0.68rem 0.78rem;
  border: 2px solid #f59e0b;
  border-radius: 0.65rem;
  background: #fff7d6;
  color: #7c2d12;
}

.reference-copay-collection > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reference-copay-collection svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  color: #b45309;
  stroke-width: 2.7;
}

.reference-copay-collection strong {
  font-size: 1.32rem;
  line-height: 1;
}

.reference-copay-collection p {
  grid-column: 1 / -1;
  margin: 0.12rem 0 0;
  color: #92400e;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.3;
}

.reference-special-instructions {
  padding: 0.85rem 1rem;
  border-radius: 0.72rem;
  background: var(--reference-pink);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}

.reference-navigation-scan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.7rem;
}

.reference-navigation-scan button {
  min-height: 3rem;
  border: 1.5px solid #111827;
  border-radius: 0.55rem;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
}

.reference-navigation-scan button:last-child {
  border-color: var(--reference-green);
  background: var(--reference-green);
  color: #fff;
}

.reference-geofence-status {
  display: none;
}

.reference-geofence-status > div {
  margin: 0 !important;
  padding: 0.42rem 0.62rem !important;
  border-radius: 0.45rem !important;
  font-size: 0.62rem !important;
  line-height: 1.25 !important;
}

.reference-camera-stage {
  margin-top: 0.65rem;
}

.reference-camera-viewport,
.reference-scanner-camera {
  position: relative;
  overflow: hidden;
  background: #1f2937;
}

.reference-camera-viewport {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.7rem;
}

.reference-camera-viewport > img,
.reference-camera-viewport > video,
.reference-scanner-camera > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-camera-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  background: #d9e0e4;
  color: #374151;
  text-align: center;
}

.reference-camera-fallback[hidden] {
  display: none;
}

.reference-camera-fallback svg {
  width: 2rem;
  height: 2rem;
}

.reference-camera-fallback b {
  font-size: 1rem;
}

.reference-camera-fallback span {
  max-width: 15rem;
  font-size: 0.76rem;
}

.reference-camera-tool {
  position: absolute;
  z-index: 4;
  top: 0.75rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.68);
  color: #fff;
}

.reference-camera-tool.is-left {
  left: 0.75rem;
}

.reference-camera-tool.is-right {
  right: 0.75rem;
}

.reference-camera-tool svg {
  width: 1.4rem;
  height: 1.4rem;
}

.reference-camera-frame {
  position: absolute;
  z-index: 2;
  inset: 24% 23%;
  border: 4px solid #ff9d00;
  border-radius: 0.7rem;
  box-shadow: 0 0 0 999px rgba(4, 9, 16, 0.05);
  pointer-events: none;
}

.reference-camera-zoom {
  position: absolute;
  z-index: 4;
  right: 0.7rem;
  bottom: 4.65rem;
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.6);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.reference-proof-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
}

.reference-camera-viewport > .reference-proof-controls {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 4.1rem;
  padding: 0.55rem 0.65rem;
  background: rgba(13, 21, 28, 0.62);
}

.reference-proof-control {
  position: relative;
  display: grid;
  width: 2.85rem;
  height: 2.85rem;
  min-width: 2.85rem;
  place-items: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.76);
  color: #fff;
}

.reference-proof-control.is-next {
  background: var(--reference-yellow);
  color: #111827;
}

.reference-proof-control.is-complete {
  background: var(--reference-green);
  color: #fff;
}

.reference-proof-control:disabled:not(.is-complete) {
  opacity: 0.46;
}

.reference-proof-control svg {
  width: 1.35rem;
  height: 1.35rem;
  stroke-width: 2;
}

.reference-proof-control small {
  position: absolute;
  right: -0.22rem;
  bottom: -0.12rem;
  padding: 0.12rem 0.2rem;
  border-radius: 0.2rem;
  background: #fff;
  color: #0d7b60;
  font-size: 0.42rem;
  font-weight: 900;
}

.reference-photo-review {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.7rem 0 0.35rem;
  scrollbar-width: none;
}

.reference-photo-review::-webkit-scrollbar {
  display: none;
}

.reference-add-photo,
.reference-photo-tile {
  position: relative;
  width: 7rem;
  min-width: 7rem;
  height: 6.9rem;
  overflow: hidden;
  border: 1px solid #edf0f2;
  border-radius: 0.55rem;
  background: #f7f7f7;
  color: #111827;
  font: inherit;
}

.reference-add-photo {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.36rem;
}

.reference-add-photo svg {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--reference-mint);
}

.reference-add-photo b {
  font-size: 0.84rem;
}

.reference-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-photo-tile span,
.reference-photo-tile b {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 0.54rem;
}

.reference-photo-tile span {
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  padding: 0.28rem 0.35rem;
  background: rgba(8, 15, 24, 0.65);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-photo-tile b {
  top: 0.3rem;
  right: 0.3rem;
  padding: 0.2rem 0.3rem;
  border-radius: 0.25rem;
  background: #fff;
  color: #111827;
}

.reference-previous-photos h3 {
  margin: 0.55rem 0 0.4rem;
  font-size: 0.95rem;
}

.reference-previous-photos > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.reference-previous-photos img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  border-radius: 0.45rem;
  object-fit: cover;
}

.reference-next-step {
  padding: 0.55rem 0 0.1rem;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.reference-send-review {
  display: flex;
  min-height: 30rem;
  flex-direction: column;
}

.reference-review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.reference-review-heading span,
.reference-review-heading b {
  display: block;
}

.reference-review-heading span {
  font-size: 0.98rem;
  font-weight: 800;
}

.reference-review-heading b {
  margin-top: 0.15rem;
  color: #6b7280;
  font-size: 0.64rem;
}

.reference-review-heading .reference-proof-control {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-color: #fff;
  box-shadow: 0 0 0 1px #89df93;
}

.reference-review-heading .reference-proof-control svg {
  width: 1rem;
  height: 1rem;
}

.reference-photo-review.reference-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  padding-top: 0.7rem;
}

.reference-photo-grid .reference-photo-tile {
  width: 100%;
  min-width: 0;
  height: auto;
  aspect-ratio: 0.92 / 1;
}

.reference-empty-photos {
  grid-column: 1 / -1;
  padding: 1.25rem;
  border: 1px dashed #d1d5db;
  color: #6b7280;
  font-size: 0.78rem;
  text-align: center;
}

.reference-delivery-comment,
.reference-recipient-picker {
  display: block;
  margin-top: 0.7rem;
}

.reference-delivery-comment > span,
.reference-recipient-picker > span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.reference-delivery-comment textarea,
.reference-recipient-picker select {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.55rem;
  color: #111827;
  font: inherit;
}

.reference-delivery-comment textarea {
  min-height: 5.7rem;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  resize: vertical;
}

.reference-recipient-picker select {
  min-height: 3rem;
  padding: 0 0.78rem;
  border: 1px solid #92dfce;
  background: var(--reference-mint-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.reference-delivery-actions {
  position: sticky;
  z-index: 20;
  bottom: -1px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0.8rem -0.78rem -1.1rem;
  padding: 0.65rem 0.78rem calc(env(safe-area-inset-bottom) + 0.7rem);
  border-top: 1px solid #eef0f2;
  background: rgba(255, 255, 255, 0.98);
}

.reference-delivery-actions button {
  min-height: 3.15rem;
  border: 0;
  border-radius: 0.55rem;
  color: #fff;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
}

.reference-delivery-actions button:first-child {
  background: var(--reference-pink);
}

.reference-delivery-actions button:last-child {
  background: var(--reference-green);
}

.reference-route-screen {
  display: flex;
  width: min(100%, 36.8rem);
  min-height: 100%;
  box-sizing: border-box;
  flex-direction: column;
  margin-inline: auto;
  padding: 0.65rem 0.78rem 0.75rem;
  color: var(--reference-ink);
  background: #fff;
}

.reference-route-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 15rem;
  border-radius: 0.65rem;
  background: #e5ece9;
}

#driver2-route-preview-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.reference-route-map .leaflet-control-container {
  display: none;
}

.reference-route-map-chips {
  position: absolute;
  z-index: 500;
  top: 0.55rem;
  right: 0.55rem;
  left: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  pointer-events: none;
}

.reference-route-map-chips > * {
  display: inline-flex;
  min-height: 1.7rem;
  box-sizing: border-box;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(17, 24, 39, 0.76);
  color: #fff;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.reference-route-map-chips > span {
  background: rgba(40, 183, 243, 0.94);
}

.reference-route-map-chips > em {
  position: absolute;
  top: 2.05rem;
  right: 0;
}

.reference-route-map-chips svg,
.reference-route-address svg {
  width: 0.9rem;
  height: 0.9rem;
}

.reference-route-address {
  position: absolute;
  z-index: 500;
  right: 0.45rem;
  bottom: 0.45rem;
  left: 0.45rem;
  display: flex;
  min-height: 2.3rem;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.62rem;
  border: 0;
  border-radius: 0.4rem;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: left;
}

.reference-route-address span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-route-photos {
  padding-top: 0.6rem;
}

.reference-route-photos h2 {
  margin: 0 0 0.42rem;
  font-size: 0.94rem;
  line-height: 1.2;
}

.reference-route-photos > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.reference-route-photos img {
  width: 100%;
  aspect-ratio: 1.22 / 1;
  border-radius: 0.48rem;
  object-fit: cover;
}

.reference-route-order {
  position: relative;
  margin-top: 0.7rem;
  padding: 0.75rem;
  border-radius: 0.65rem;
  background: #f4f4f4;
}

.reference-route-order-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.7rem;
}

.reference-route-order-chips span {
  display: inline-flex;
  min-height: 1.65rem;
  align-items: center;
  gap: 0.25rem;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: var(--reference-blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.reference-route-order-chips span.is-ready {
  background: var(--reference-green);
}

.reference-route-order-chips svg {
  width: 0.82rem;
  height: 0.82rem;
}

.reference-route-order .reference-patient-address {
  margin-top: 0;
}

.reference-route-order .reference-pharmacy {
  margin-top: 0.7rem;
}

.reference-route-mode {
  width: fit-content;
  margin-top: 0.65rem;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  background: var(--mode-color, var(--reference-mint));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.reference-route-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.8rem;
}

.reference-route-actions button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.55rem;
  font: inherit;
  font-size: 0.94rem;
  font-weight: 800;
}

.reference-route-actions button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.reference-route-actions .is-navigation {
  border: 1px solid #111827;
  background: #fff;
  color: #111827;
}

.reference-route-actions .is-scan {
  border: 1px solid var(--reference-green);
  background: var(--reference-green);
  color: #fff;
}

.reference-scanner-shell {
  color: var(--reference-ink);
  background: #fff;
}

.reference-scanner-header {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: calc(env(safe-area-inset-top) + 0.7rem) 0.78rem 0.55rem;
  background: #fff;
}

.reference-scanner-header > button {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 50%;
  background: #fff;
  color: #111827;
}

.reference-scanner-header > strong {
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  background: var(--reference-mint);
  color: #fff;
  font-size: 0.76rem;
}

.reference-scanner-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.reference-scanner-chips > * {
  min-width: 0;
  padding: 0.35rem 0.58rem;
  overflow: hidden;
  background: var(--reference-mint);
  color: #fff;
  font-size: 0.74rem;
  text-overflow: ellipsis;
}

.reference-scanner-chips b {
  background: #f2f4f5;
  color: var(--reference-mint);
}

.reference-scanner-summary {
  padding: 0.35rem 0.78rem 0.65rem;
}

.reference-scanner-mode {
  display: inline-flex;
  min-height: 1.85rem;
  align-items: center;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  background: var(--mode-color, var(--reference-mint));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.reference-scanner-summary h1 {
  margin: 0.5rem 0 0;
  font-size: 1.4rem;
}

.reference-scanner-summary p {
  margin: 0.3rem 0 0;
  color: #6b7280;
  font-size: 0.74rem;
  line-height: 1.35;
}

.reference-scanner-summary .reference-patient-address {
  margin-top: 0.45rem;
}

.reference-scanner-camera {
  flex: 1;
  min-height: 0;
  margin: 0 0.78rem;
  border-radius: 0.72rem;
}

.reference-scanner-camera .scanner-camera-status {
  right: 0.6rem;
  bottom: 0.55rem;
  left: 0.6rem;
}

.reference-scanner-code {
  position: absolute;
  z-index: 4;
  top: 4rem;
  left: 0.75rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.68);
  color: #fff;
}

.reference-scanner-package {
  width: fit-content;
  max-width: calc(100% - 1.56rem);
  margin: 0.55rem 0.78rem 0;
  padding: 0.42rem 0.68rem;
  overflow: hidden;
  border-radius: 0.45rem;
  background: #f3f4f6;
  color: var(--reference-mint);
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-scanner-speaker {
  display: inline-flex;
  width: fit-content;
  max-width: calc(100% - 1.56rem);
  min-height: 2.1rem;
  box-sizing: border-box;
  align-items: center;
  gap: 0.38rem;
  margin: 0.55rem 0.78rem 0;
  padding: 0.42rem 0.68rem;
  border: 1px solid #8be0cc;
  border-radius: 999px;
  background: #e9faf5;
  color: #087a59;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.reference-scanner-speaker.is-muted {
  border-color: #d1d5db;
  background: #f3f4f6;
  color: #6b7280;
}

.reference-scanner-speaker svg {
  width: 1rem;
  height: 1rem;
}

.reference-scanner-footer {
  padding: 0.58rem 0.78rem calc(env(safe-area-inset-bottom) + 0.7rem);
  background: #fff;
}

.reference-scanner-photo {
  display: flex;
  width: 100%;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid #111827;
  border-radius: 0.5rem;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.tabbar {
  min-height: 5.2rem;
  box-sizing: border-box;
  padding: 0.55rem 0 calc(env(safe-area-inset-bottom) + 0.65rem);
  border-top-color: #eef0f2;
  box-shadow: 0 -0.35rem 1.2rem rgba(17, 24, 39, 0.04);
}

.tab {
  gap: 0.22rem;
  min-width: 0;
  padding: 0.15rem;
  color: #111827;
  font-size: 0.68rem;
  font-weight: 500;
}

.tab.active {
  color: #111827;
}

.tab-icon,
.tab-icon > svg {
  width: 1.55rem;
  height: 1.55rem;
}

.reference-tabbar-center {
  width: 4.25rem;
  height: 4.25rem;
  margin-top: -1.65rem;
  border: 0.4rem solid rgba(255, 255, 255, 0.92);
  background: var(--reference-blue);
  color: #fff !important;
  box-shadow: 0 0.45rem 1rem rgba(40, 183, 243, 0.28);
}

.reference-tabbar-center.is-navigation {
  background: var(--reference-yellow);
  color: #111827 !important;
  box-shadow: 0 0.45rem 1rem rgba(255, 209, 38, 0.3);
}

.reference-tabbar-center > svg {
  width: 2rem;
  height: 2rem;
}

@media (max-width: 390px) {
  .reference-delivery-screen {
    padding-inline: 0.62rem;
  }

  .reference-order-chips > span {
    padding-inline: 0.48rem;
    font-size: 0.68rem;
  }

  .reference-patient-address {
    gap: 0.45rem;
  }

  .reference-proof-control {
    width: 2.55rem;
    height: 2.55rem;
    min-width: 2.55rem;
  }

  .reference-review-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .reference-photo-review.reference-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reference-tabbar-center {
    width: 3.9rem;
    height: 3.9rem;
  }
}
