/* Industrial Precision — ULD Registry */
.uld-registry-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #232a3a;
}
.uld-registry-table tbody tr:nth-child(even) {
  background: rgba(46, 53, 69, 0.25);
}
.uld-registry-table tbody tr:hover td {
  background: rgba(255, 193, 116, 0.06);
}
.uld-registry-table tbody tr.row-critical td {
  background: rgba(239, 68, 68, 0.08);
}
.uld-input {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  background: #070e1d !important;
  border: 1px solid #534434;
  border-radius: 0.25rem 0.25rem 0.125rem 0.125rem;
  color: #dce2f7;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.875rem;
}
.uld-input:focus {
  outline: none;
  border-color: #ffc174;
  box-shadow: 0 0 0 1px #ffc174;
}
.uld-ref-slot {
  background: #141b2b;
  border: 1px solid #534434;
  border-radius: 0.5rem;
  padding: 1rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.uld-ref-slot.is-active {
  border-color: #ffc174;
  box-shadow: 0 0 0 2px rgba(255, 193, 116, 0.25);
}
.uld-ref-slot img {
  flex: 1;
  max-height: 160px;
  width: 100%;
  object-fit: contain;
  margin: 0.5rem 0;
  border-radius: 0.25rem;
  background: #070e1d;
}
.uld-model-viewer {
  display: block;
  width: 100%;
  height: min(420px, 50vh);
  min-height: 280px;
  background: #070e1d;
  border: 1px solid #534434;
  border-radius: 0.5rem;
  --poster-color: #141b2b;
}
.uld-view-panel:not(.is-visible) {
  display: none;
}
/* Visible panels keep Tailwind display (flex / block) so flex-1 + overflow scroll works */
.uld-view-panel.is-visible {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
}
.uld-btn-primary {
  min-height: 48px;
  padding: 0.5rem 1.25rem;
  background: #ffc174;
  color: #472a00;
  font-weight: 700;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.15s, transform 0.1s;
}
.uld-btn-primary:hover {
  filter: brightness(1.08);
}
.uld-btn-primary:active {
  transform: scale(0.98);
}
.uld-btn-ghost {
  min-height: 48px;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #dce2f7;
  border: 1px solid #534434;
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: inherit;
}
.uld-btn-ghost:hover {
  background: #232a3a;
  border-color: #a08e7a;
}
.uld-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0.25rem;
  font-family: "JetBrains Mono", monospace;
}
.uld-badge-ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgb(34, 197, 94);
  color: rgb(34, 197, 94);
}
.uld-badge-muted {
  background: rgba(46, 53, 69, 0.5);
  border: 1px solid #534434;
  color: #d8c3ad;
}
.uld-glass-panel {
  background: rgba(25, 31, 47, 0.85);
  border: 1px solid #534434;
  border-radius: 0.5rem;
}
