/* Goods Receipt — component styles */

/* Sidebar override — narrower for Income page */
.sidebar {
  width: 30%;
  min-width: 240px;
}

/* Readonly PO info strip shown after line selection (used in New Receipt tab) */
.gr-info-strip {
  background: #F0F4FF;
  border: 1px solid #C7D2FE;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.5rem;
}

.gr-info-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.18rem;
  font-size: 0.8rem;
}

.gr-info-row:last-child { margin-bottom: 0; }

.gr-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #71717A;
  width: 4.2rem;
  flex-shrink: 0;
}

.gr-info-val {
  font-weight: 600;
  color: #18181B;
  font-size: 0.82rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gr-remain {
  color: #5B5BD6;
}

/* Open Lines table row */
#linesTable tbody tr td { cursor: default; }

/* Remaining qty color coding */
.remain-part  { color: #F97316; font-weight: 700; }
.remain-full  { color: #18181B; }

/* Status badge override for txn_status */
.badge-nfix { background: #FEF9C3; color: #854D0E; }
.badge-fix  { background: #DCFCE7; color: #166534; }

/* PO ref chip in recent activity */
.po-chip {
  display: inline-block;
  font-size: 0.7rem;
  background: #EEF0FF;
  color: #5B5BD6;
  border-radius: 3px;
  padding: 1px 4px;
  white-space: nowrap;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* New Receipt tab form wrap */
.receipt-form-wrap {
  max-width: 480px;
}

