:root {
  --fedex-purple: #4D148C;
  --fedex-orange: #FF6600;
  --default-font-family: Inter, "Noto Sans", ui-sans-serif, system-ui, sans-serif;
}
html, body {
  font-family: Inter, "Noto Sans", ui-sans-serif, system-ui, sans-serif;
}
.btn:not(.btn-outline):not(.btn-ghost):not(.btn-destructive) {
  background: #4D148C !important;
  border-color: #4D148C !important;
  color: #fff !important;
}
.btn-outline {
  color: #4D148C !important;
  border-color: #4D148C !important;
}
.sidebar-link.is-active {
  background: #4D148C !important;
  color: #fff !important;
}
.sidebar-logo {
  background: transparent !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  padding: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.fedex-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 4px;
  padding: 2px 4px;
}
.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.auth-brand .fedex-logo {
  height: 88px;
  max-width: 280px;
  padding: 8px 12px;
}

.barcode-card {
  padding: 1.25rem;
}
.barcode-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.barcode-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.barcode-input {
  flex: 1;
  min-width: 16rem;
  min-height: 3.25rem;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.serial-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}
.scan-layout {
  display: grid;
  grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.scan-col .card-content,
.scan-col.card {
  height: 100%;
}
.scan-grid {
  display: grid;
  grid-template-columns: 1fr 7.5rem;
  gap: 0.75rem;
}
.scan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.scan-preview-col {
  min-width: 0;
}
.scan-stage {
  position: relative;
  border-radius: 0 0 0;
  overflow: hidden;
  background: #0b1220;
  min-height: 28rem;
}
.scan-video,
.scan-preview {
  display: block;
  width: 100%;
  height: 28rem;
  object-fit: contain;
  background: #0b1220;
}
.scan-empty,
.scan-status {
  padding: 0.85rem 1rem;
}
.scan-empty {
  color: #cbd5e1;
  text-align: center;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-thumbs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.75rem 1rem 1rem;
}
.scan-thumb {
  flex: 0 0 auto;
  width: 5.5rem;
  border: 2px solid transparent;
  border-radius: 0.6rem;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
}
.scan-thumb img {
  display: block;
  width: 5.5rem;
  height: 4.2rem;
  object-fit: cover;
  border-radius: 0.45rem;
  background: #0b1220;
}
.scan-thumb span {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  text-align: center;
}
.scan-thumb.is-active {
  border-color: #4D148C;
}
@media (max-width: 960px) {
  .scan-layout,
  .scan-grid {
    grid-template-columns: 1fr;
  }
  .scan-stage,
  .scan-video,
  .scan-preview {
    min-height: 18rem;
    height: 18rem;
  }
}
.scan-fallback {
  margin-top: 0.25rem;
}
.scan-fallback summary {
  cursor: pointer;
  color: inherit;
  opacity: 0.8;
}
.hidden {
  display: none !important;
}
.print-body {
  margin: 0;
  background: #fff;
  color: #111;
}
.print-toolbar {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.print-sheet {
  max-width: 900px;
  margin: 1rem auto;
  padding: 1rem;
}
.print-page {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}
.print-sheet-page {
  display: block;
  margin: 0 0 1.25rem;
}
