diff --git a/backend/templates/admin_drug_usage.html b/backend/templates/admin_drug_usage.html index 0120a19..6333110 100644 --- a/backend/templates/admin_drug_usage.html +++ b/backend/templates/admin_drug_usage.html @@ -263,6 +263,10 @@ .num-secondary { color: #3b82f6; } + .negative-stock { + color: #dc2626 !important; + font-weight: 600; + } /* ── 빈 상태 ── */ .empty-state { @@ -390,6 +394,12 @@ background: #fef3c7; color: #92400e; } + .detail-table-wrapper { + max-height: 300px; + overflow-y: auto; + border: 1px solid #e2e8f0; + border-radius: 6px; + } .detail-table { width: 100%; border-collapse: separate; @@ -398,6 +408,13 @@ min-width: 0; table-layout: fixed; } + .detail-table thead th { + position: sticky; + top: 0; + background: #f8fafc; + z-index: 1; + box-shadow: 0 1px 0 #e2e8f0; + } .detail-table td, .detail-table th { padding: 4px 8px; border-bottom: 1px solid #e0e0e0; @@ -745,7 +762,7 @@ ${formatNumber(item.import_count)} ${formatNumber(item.rx_total_qty)} ${formatNumber(item.import_total_qty)} - ${formatNumber(item.current_stock)} + ${formatNumber(item.current_stock)} @@ -811,6 +828,7 @@ if (data.success && data.items.length > 0) { container.innerHTML = `

📦 입고목록 (${data.total_count}건)

+
@@ -843,6 +861,7 @@ `).join('')}
+
`; } else { container.innerHTML = ` @@ -886,6 +905,7 @@ container.innerHTML = `

💊 조제목록 (${data.total_count}건) ${patientBadges}

+
@@ -924,6 +944,7 @@ `).join('')}
+
`; } else { container.innerHTML = `