/* Scoped receipt ledger additions; other app pages retain their existing styles. */
#view-receipt [hidden] { display: none !important; }
.receiving-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 18px; }
.receiving-filter-actions { display: flex; align-items: end; gap: 10px; }
.receiving-filter-actions button { min-height: 42px; }
.receiving-summary { margin: 0; padding: 0 18px 16px; color: var(--muted, #59665e); font-size: 13px; }
.receiving-table { min-width: 1550px; }
.receiving-table th { white-space: nowrap; }
.receiving-table td { max-width: 240px; overflow-wrap: anywhere; }
.receiving-number { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.receiving-empty { text-align: center; padding: 35px !important; color: var(--muted, #59665e); }
.receiving-pagination { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 16px 18px; }
.receiving-pagination span { font-size: 13px; }
.receiving-form > fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.receiving-lines { padding: 0 18px; display: grid; gap: 18px; }
.receiving-line { margin: 0; min-width: 0; border: 1px solid var(--line, #d9e0db); border-radius: 10px; padding: 8px 0 0; }
.receiving-line legend { margin-left: 16px; padding: 0 6px; font-weight: 700; font-size: 14px; }
.receiving-row-actions { display: flex; justify-content: flex-end; padding: 0 18px; }
.receiving-weight { display: grid; grid-template-columns: minmax(0, 1fr) 78px; gap: 6px; }
.receiving-remarks { grid-column: span 3; }
.receiving-form-footer { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.receiving-form-footer.form-actions { border-top: 1px solid var(--line, #d9e0db); justify-content: flex-end; }
.receiving-hint { color: var(--muted, #59665e); font-size: 12px; line-height: 1.7; font-weight: 400; }
.receiving-message { margin: 0 18px 16px; padding: 12px; border-radius: 6px; background: #fff0ed; color: #9b2c20; }
.receiving-stock-blank { min-height: 100px; }
.receiving-legacy { display: block; color: var(--muted, #59665e); font-size: 11px; margin-top: 4px; }
.receiving-inspection { border-radius: 4px; padding: 3px 7px; background: #edf2ef; color: #35594a; white-space: nowrap; }
.receiving-inspection.is-rejected { background: #fff0ed; color: #9b2c20; }
#receiving-detail { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line, #d9e0db); border-radius: 12px; padding: 0; color: var(--text, #24372c); background: var(--surface, #fff); }
#receiving-detail::backdrop { background: rgba(20, 32, 25, .45); }
.receiving-detail-body { padding: 18px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.receiving-detail-body dt { color: var(--muted, #59665e); font-size: 12px; margin-bottom: 6px; }
.receiving-detail-body dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; line-height: 1.6; }
@media (max-width: 1220px) { .receiving-remarks { grid-column: span 2; } }
@media (max-width: 640px) {
  .receiving-filters { grid-template-columns: minmax(0, 1fr); }
  .receiving-filter-actions button { flex: 1; }
  .receiving-remarks { grid-column: auto; }
  .receiving-form-footer { align-items: stretch; flex-direction: column; }
  .receiving-form-footer.form-actions { flex-direction: row; }
  .receiving-form-footer.form-actions button { flex: 1; }
  .receiving-pagination { justify-content: space-between; gap: 6px; }
  .receiving-detail-body { grid-template-columns: minmax(0, 1fr); }
  .receiving-line .form-grid { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  #view-receipt > .panel > .panel-header { align-items: flex-start; flex-wrap: wrap; }
}
