/* ==========================================================================
   Receipt Center V1 — master-detail workspace (Render/CSS/Component
   rework only; see ReceiptCenterPage.js / ReceiptWorkspace.js /
   components/Receipt*.js). No backend, no API — pure UI Prototype.
   ==========================================================================
   Reuses shared Foundation classes untouched (.card, .inventory-page-shell,
   .inventory-page-header, .prototype-banner, .item-page-actions,
   .inventory-btn-*, .icon-btn, .status-badge, .inventory-badge-*,
   .drawer-tabs/.drawer-tab, .drawer-footer-meta/-actions, .field-grid,
   .inventory-section-card, .item-movement-timeline family,
   .inventory-empty-state, .query-field, .supplier-search-card). Every new
   Receipt-Center-specific class below uses a self-contained "rc-" prefix,
   matching the module-independence convention used throughout this
   session's Prototype phases (purchase-request.css / purchase-order.css /
   document-center.css all do the same).
   ========================================================================== */#inventoryHostRoot .rc-page-shell {
  gap: 0;
}#inventoryHostRoot .rc-fixed-block {
  flex-shrink: 0;
  margin-bottom: var(--ids-space-4);
}/* ---- KPI row (section 七) ---- */#inventoryHostRoot .rc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--ids-space-4);
}#inventoryHostRoot .rc-kpi-card {
  display: flex;
  align-items: center;
  gap: var(--ids-space-3);
  background: var(--color-white);
  border: 1px solid var(--ids-border-soft);
  border-radius: var(--ids-radius-lg);
  padding: var(--ids-space-4);
}#inventoryHostRoot .rc-kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--ids-radius-md);
  background: #eef6fb;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}#inventoryHostRoot .rc-kpi-card-warning .rc-kpi-icon { background: #fff6e5; color: #8a5a00; }#inventoryHostRoot .rc-kpi-card-success .rc-kpi-icon { background: #e3f5f1; color: #0e6d61; }#inventoryHostRoot .rc-kpi-card-info .rc-kpi-icon { background: #e6f0fa; color: #1c5d8c; }#inventoryHostRoot .rc-kpi-card-danger .rc-kpi-icon { background: #fbe8e6; color: #b3382c; }#inventoryHostRoot .rc-kpi-icon .inv-icon {
  width: 20px;
  height: 20px;
}#inventoryHostRoot .rc-kpi-value {
  font-size: var(--ids-font-xl);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
}#inventoryHostRoot .rc-kpi-label {
  font-size: var(--ids-font-xs);
  color: var(--color-text-muted);
  margin-top: 2px;
}/* ---- Search / filter row (section 八) ---- */#inventoryHostRoot .rc-filter-card {
  padding: var(--ids-space-3) var(--ids-space-4);
}#inventoryHostRoot .rc-filter-row {
  display: flex;
  align-items: flex-end;
  gap: var(--ids-space-3);
  flex-wrap: wrap;
}/* ---- Two-pane workspace (section 一: both panes scroll independently) ---- */#inventoryHostRoot .rc-workspace {
  display: flex;
  gap: var(--ids-space-4);
  flex: 1 1 auto;
  min-height: 0;
}#inventoryHostRoot .rc-list-panel {
  flex: 0 0 65%;
  max-width: 65%;
  height: 100%;
  overflow-y: auto;
  padding-right: 2px;
}#inventoryHostRoot .rc-panel {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: var(--color-white);
  border: 1px solid var(--ids-border-soft);
  border-radius: var(--ids-radius-lg);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}#inventoryHostRoot .rc-panel-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

@media (max-width: 1200px) {#inventoryHostRoot .rc-workspace {
    flex-direction: column;
  }#inventoryHostRoot .rc-list-panel, #inventoryHostRoot .rc-panel {
    flex: 1 1 auto;
    max-width: 100%;
    height: auto;
    max-height: 60vh;
  }
}/* ---- Left: Receipt Card List (section 二) ---- */#inventoryHostRoot .rc-card-grid {
  display: flex;
  flex-direction: column;
  gap: var(--ids-space-3);
}#inventoryHostRoot .rc-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--color-white);
  border: 1px solid var(--ids-border-soft);
  border-radius: var(--ids-radius-lg);
  padding: var(--ids-space-4);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}#inventoryHostRoot .rc-card:hover {
  border-color: var(--color-teal);
}#inventoryHostRoot .rc-card.active {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 2px rgba(18, 137, 122, 0.15);
}#inventoryHostRoot .rc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ids-space-2);
}#inventoryHostRoot .rc-card-no {
  font-size: var(--ids-font-md);
  font-weight: 700;
  color: var(--color-navy);
}#inventoryHostRoot .rc-card-po {
  font-size: var(--ids-font-xs);
  color: var(--color-text-muted);
}#inventoryHostRoot .rc-card-supplier-row, #inventoryHostRoot .rc-card-date-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: var(--ids-font-sm);
}#inventoryHostRoot .rc-card-label {
  color: var(--color-text-muted);
  font-size: var(--ids-font-xs);
}#inventoryHostRoot .rc-card-value {
  color: var(--color-text);
  font-weight: 600;
}#inventoryHostRoot .rc-card-progress {
  display: flex;
  align-items: center;
  gap: var(--ids-space-2);
  margin-top: 2px;
}#inventoryHostRoot .rc-card-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--ids-surface-muted);
  overflow: hidden;
}#inventoryHostRoot .rc-card-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--color-teal);
  transition: width 200ms ease;
}#inventoryHostRoot .rc-card-progress-pct {
  font-size: var(--ids-font-xs);
  font-weight: 600;
  color: var(--color-text);
  width: 36px;
  text-align: right;
}#inventoryHostRoot .rc-card-meta {
  display: flex;
  gap: var(--ids-space-4);
  font-size: var(--ids-font-xs);
  color: var(--color-text-muted);
}#inventoryHostRoot .rc-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--ids-border-soft);
}/* ---- Right: Workspace header / tabs / summary ---- */#inventoryHostRoot .rc-ws-header {
  padding: var(--ids-space-4) var(--ids-space-5) var(--ids-space-3);
  flex-shrink: 0;
}#inventoryHostRoot .rc-ws-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--ids-space-3);
}#inventoryHostRoot .rc-ws-title {
  font-size: var(--ids-font-lg);
  font-weight: 700;
  color: var(--color-navy);
}#inventoryHostRoot .rc-ws-status-row {
  margin-top: 4px;
  font-size: var(--ids-font-sm);
  color: var(--color-text);
}#inventoryHostRoot .rc-ws-tabs {
  flex-shrink: 0;
  padding: 0 var(--ids-space-4);
  overflow-x: auto;
}#inventoryHostRoot .rc-ws-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ids-space-5);
  padding: var(--ids-space-3) var(--ids-space-5);
  background: var(--ids-surface-muted);
  border-top: 1px solid var(--ids-border-soft);
  border-bottom: 1px solid var(--ids-border-soft);
  flex-shrink: 0;
}#inventoryHostRoot .rc-ws-summary-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}#inventoryHostRoot .rc-ws-summary-label {
  font-size: 11px;
  color: var(--color-text-muted);
}#inventoryHostRoot .rc-ws-summary-value {
  font-size: var(--ids-font-lg);
  font-weight: 700;
  color: var(--color-navy);
}#inventoryHostRoot .rc-ws-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: var(--ids-space-4) var(--ids-space-5);
}#inventoryHostRoot .rc-ws-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ids-space-3);
  padding: var(--ids-space-3) var(--ids-space-5);
  border-top: 1px solid var(--ids-border-soft);
  box-shadow: 0 -4px 12px rgba(18, 43, 68, 0.04);
}/* ---- 到貨品項 tab ---- */#inventoryHostRoot .rc-items-tab-title {
  font-size: var(--ids-font-sm);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--ids-space-3);
}#inventoryHostRoot .rc-item-card-list {
  display: flex;
  flex-direction: column;
  gap: var(--ids-space-4);
}#inventoryHostRoot .rc-item-card {
  border: 1px solid var(--ids-border-soft);
  border-radius: var(--ids-radius-md);
  padding: var(--ids-space-4);
}#inventoryHostRoot .rc-item-card-header {
  display: flex;
  align-items: center;
  gap: var(--ids-space-3);
  margin-bottom: var(--ids-space-3);
}#inventoryHostRoot .rc-item-card-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--ids-radius-sm);
  flex-shrink: 0;
}#inventoryHostRoot .rc-item-card-name {
  font-size: var(--ids-font-sm);
  font-weight: 700;
  color: var(--color-text);
}#inventoryHostRoot .rc-item-card-code {
  font-size: var(--ids-font-xs);
  color: var(--color-text-muted);
}#inventoryHostRoot .rc-item-stats-row {
  display: flex;
  gap: var(--ids-space-5);
  margin-bottom: var(--ids-space-3);
  padding-bottom: var(--ids-space-3);
  border-bottom: 1px dashed var(--ids-border-soft);
}#inventoryHostRoot .rc-item-stat-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}#inventoryHostRoot .rc-item-stat-value {
  font-size: var(--ids-font-lg);
  font-weight: 700;
  color: var(--color-text);
}#inventoryHostRoot .rc-item-stat-label {
  font-size: 11px;
  color: var(--color-text-muted);
}/* ---- Batch table (section 五: 不要太密) ---- */#inventoryHostRoot .rc-batch-table {
  margin-top: var(--ids-space-2);
}#inventoryHostRoot .rc-batch-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--ids-space-2);
}#inventoryHostRoot .rc-batch-table-title {
  font-size: var(--ids-font-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}/* Each batch renders as a compact two-line entry (not a dense multi-column
   row) because the workspace panel is only ~35% of the page width — a
   7-column grid would overflow it. Line 1 = identity (LOT/EXP), line 2 =
   the four small quantity/location fields + delete, wrapping if narrow. */#inventoryHostRoot .rc-batch-entries {
  display: flex;
  flex-direction: column;
}#inventoryHostRoot .rc-batch-entry {
  padding: var(--ids-space-2) 0;
  border-bottom: 1px solid var(--ids-border-soft);
}#inventoryHostRoot .rc-batch-entry:last-child {
  border-bottom: none;
}#inventoryHostRoot .rc-batch-entry-row1 {
  display: flex;
  align-items: center;
  gap: var(--ids-space-2);
  margin-bottom: 6px;
}#inventoryHostRoot .rc-batch-lot {
  font-size: var(--ids-font-sm);
  font-weight: 600;
  color: var(--color-text);
}#inventoryHostRoot .rc-batch-exp {
  font-size: var(--ids-font-xs);
  color: var(--color-text-muted);
}#inventoryHostRoot .rc-batch-entry-row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--ids-space-2);
}#inventoryHostRoot .rc-batch-mini-readonly {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 11px;
  color: var(--color-text-muted);
  min-width: 56px;
}#inventoryHostRoot .rc-batch-mini-readonly strong {
  font-size: var(--ids-font-sm);
  font-weight: 600;
  color: var(--color-text);
}#inventoryHostRoot .rc-batch-mini-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 70px;
  min-width: 64px;
}#inventoryHostRoot .rc-batch-mini-field label {
  font-size: 11px;
  color: var(--color-text-muted);
}#inventoryHostRoot .rc-batch-entry-row1 .rc-batch-field-lot {
  flex: 1 1 auto;
  min-width: 0;
}#inventoryHostRoot .rc-batch-entry-row1 .rc-batch-field-exp {
  flex: 0 0 150px;
}#inventoryHostRoot .rc-batch-field {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--ids-border-soft);
  border-radius: var(--ids-radius-sm);
  font-size: var(--ids-font-sm);
  box-sizing: border-box;
}#inventoryHostRoot .rc-batch-empty {
  font-size: var(--ids-font-xs);
  color: var(--color-text-muted);
  padding: var(--ids-space-2) 0;
}/* ---- 不合格原因 (section 六) ---- */#inventoryHostRoot .rc-ng-section {
  display: flex;
  gap: var(--ids-space-4);
  margin-top: var(--ids-space-3);
  padding-top: var(--ids-space-3);
  border-top: 1px dashed var(--ids-border-soft);
}#inventoryHostRoot .rc-ng-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 160px;
}#inventoryHostRoot .rc-ng-field-note {
  flex: 1;
}#inventoryHostRoot .rc-ng-field label {
  font-size: 11px;
  color: var(--color-text-muted);
}#inventoryHostRoot .rc-ng-field select, #inventoryHostRoot .rc-ng-field input {
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--ids-border-soft);
  border-radius: var(--ids-radius-sm);
  font-size: var(--ids-font-sm);
}/* ---- Text tone helpers (shared by KPI/card/item stat/batch values) ---- */#inventoryHostRoot .rc-text-success { color: #0e6d61; }#inventoryHostRoot .rc-text-warning { color: #8a5a00; }#inventoryHostRoot .rc-text-danger { color: #b3382c; }#inventoryHostRoot .rc-text-info { color: #1c5d8c; }
