/**
 * Warehouse Manager content area — reuses the existing ERP sidebar
 * shell (§9.1, same reasoning as Pharmacist/Branch Manager). First
 * real Inventory & Warehouse frontend — the backend
 * (modules/inventory/) existed already; this closes the "no UI yet"
 * gap tracked in ARCHITECTURE_FREEZE.md §5.
 */
.wh-loc-switch { display: flex; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 5px; }
.wh-loc-btn { padding: 8px 16px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; background: none; border: 0; font-family: inherit; }
.wh-loc-btn.active { background: var(--mint); color: var(--primary-dark); }

.wh-alert-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.wh-alert-card { border-radius: 14px; padding: 14px; display: flex; gap: 10px; align-items: flex-start; }
.wh-alert-card.low { background: #FEF3C7; }
.wh-alert-card.exp { background: #FEE2E2; }
.wh-alert-card.recall { background: #F3E8FF; }
.wh-alert-card i { font-size: 16px; margin-top: 2px; }
.wh-alert-card.low i { color: #92400E; }
.wh-alert-card.exp i { color: #991B1B; }
.wh-alert-card.recall i { color: #6B21A8; }
.wh-alert-card strong { display: block; font-size: 20px; }
.wh-alert-card span { font-size: 11.5px; }

.wh-table-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 16px; margin-bottom: 16px; }
.wh-table-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.wh-table-head h3 { font-size: 14px; margin: 0; }
.wh-table { width: 100%; border-collapse: collapse; }
.wh-table th { text-align: right; font-size: 11px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.wh-table td { padding: 10px; font-size: 12.5px; border-bottom: 1px solid var(--border); }
.wh-table tr:last-child td { border-bottom: 0; }
.wh-pill { font-size: 10.5px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.wh-pill.ok { background: #DCFCE7; color: #166534; }
.wh-pill.low { background: #FEF3C7; color: #92400E; }
.wh-pill.exp { background: #FEE2E2; color: #991B1B; }
.wh-pill.recalled { background: #F3E8FF; color: #6B21A8; }

.wh-transfer-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--border); }
.wh-transfer-row:last-child { border-bottom: 0; }
.wh-transfer-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--mint); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wh-transfer-row.request .wh-transfer-icon { background: #EFF6FF; color: #1D4ED8; }
.wh-transfer-row strong { font-size: 12.5px; display: block; }
.wh-transfer-row span { font-size: 11px; color: var(--muted); }
.wh-transfer-actions { margin-right: auto; display: flex; gap: 6px; }
.wh-empty { color: var(--muted); font-size: 11.5px; padding: 14px 4px; text-align: center; }

.wh-search-box { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 9px 14px; margin-bottom: 14px; max-width: 360px; }
.wh-search-box input { border: 0; outline: 0; flex: 1; font-family: inherit; font-size: 13px; }
.wh-timeline-row { display: flex; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--border); }
.wh-timeline-row:last-child { border-bottom: 0; }
.wh-timeline-icon { width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.wh-timeline-icon.receipt { background: #DCFCE7; color: #166534; }
.wh-timeline-icon.transfer_in { background: #DBEAFE; color: #1D4ED8; }
.wh-timeline-icon.transfer_out { background: #FEF3C7; color: #92400E; }
.wh-timeline-icon.adjustment { background: #F3E8FF; color: #6B21A8; }
.wh-timeline-icon.recall { background: #FEE2E2; color: #991B1B; }
.wh-timeline-icon.sale, .wh-timeline-icon.reservation, .wh-timeline-icon.reservation_release { background: var(--mint); color: var(--primary-dark); }
.wh-delta-positive { color: #166534; font-weight: 800; }
.wh-delta-negative { color: #991B1B; font-weight: 800; }
.wh-count-input { width: 70px; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--border); font-family: inherit; text-align: center; }

.wh-severity-critical { background: #FEE2E2; color: #991B1B; }
.wh-severity-low_stock { background: #FEE2E2; color: #991B1B; }
.wh-severity-reorder { background: #FEF3C7; color: #92400E; }
.wh-alert-row { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 12px; margin-bottom: 8px; }
.wh-alert-row.wh-severity-critical, .wh-alert-row.wh-severity-low_stock { background: #FEF2F2; border: 1px solid #FCA5A5; }
.wh-alert-row.wh-severity-reorder { background: #FFFBEB; border: 1px solid #FDE68A; }
.wh-severity-pill { font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }
.wh-threshold-form-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.wh-threshold-form-row input { width: 100%; padding: 6px 8px; border-radius: 8px; border: 1.5px solid var(--border); font-family: inherit; text-align: center; font-size: 12px; }
