/* ===== PRODUCTION PANEL ===== */

/* Batch Cards — new system */
.batch-card{
  background:var(--bg-card);border:1px solid var(--border-subtle);
  border-radius:var(--radius-md);padding:18px;
  border-left:4px solid #a855f7;transition:var(--transition);
}
.batch-card:hover{box-shadow:var(--shadow-hover);transform:translateY(-1px)}
.batch-card.batch-closed{border-left-color:#f59e0b;opacity:0.85}
[data-theme="dark"] .batch-card{background:rgba(15,12,50,0.65);border-color:rgba(168,85,247,0.2)}
.batch-card-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}
.batch-card-title{font-size:15px;font-weight:800;color:var(--text-primary);margin:0}
.batch-card-meta{font-size:11px;color:var(--text-muted);margin-top:3px}
.batch-status-badge{padding:4px 10px;border-radius:16px;font-size:10px;font-weight:700}
.batch-status-badge.batch-open{background:rgba(16,185,129,0.1);color:#10b981}
.batch-status-badge.batch-closed{background:rgba(245,158,11,0.1);color:#f59e0b}
[data-theme="dark"] .batch-status-badge.batch-open{background:rgba(16,185,129,0.15);color:#34d399}
[data-theme="dark"] .batch-status-badge.batch-closed{background:rgba(245,158,11,0.15);color:#fbbf24}
.batch-card-stats{font-size:12px;color:var(--text-muted);margin-bottom:12px;display:flex;gap:12px}
.batch-card-stats i{margin-right:4px;color:#a855f7}
.batch-card-actions{display:flex;gap:6px;flex-wrap:wrap}

/* Batch operation detail (inside Swal) */
.batch-op-card{
  background:rgba(255,255,255,0.03);border:1px solid var(--border-subtle);
  border-radius:var(--radius-sm);padding:12px;margin-bottom:8px;
}
.batch-op-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px;font-weight:700;color:var(--text-primary)}
.batch-op-header small{font-weight:400;color:var(--text-muted);font-size:11px}
.batch-op-section{margin-bottom:6px}
.batch-op-row{display:flex;justify-content:space-between;padding:3px 0;font-size:12px;color:var(--text-secondary)}
.batch-op-row .op-input{color:#ef4444}
.batch-op-row .op-output{color:#10b981}
.batch-op-note{font-size:11px;color:var(--text-muted);margin-top:6px;font-style:italic}

/* Low stock items */
.prod-low-stock-item{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 14px;border-radius:var(--radius-sm);
  background:rgba(245,158,11,0.06);border:1px solid rgba(245,158,11,0.15);
  font-size:13px;
}
.prod-low-stock-item .item-name{font-weight:700;color:var(--text-primary)}
.prod-low-stock-item .item-stock{font-weight:800;color:#d97706}

/* Log type badges */
.prod-log-badge{padding:4px 10px;border-radius:20px;font-size:10px;font-weight:700;display:inline-flex;align-items:center;gap:4px}
.prod-log-badge.log-batch{background:rgba(168,85,247,0.1);color:#a855f7}
.prod-log-badge.log-purchase{background:rgba(16,185,129,0.1);color:#059669}
.prod-log-badge.log-production{background:rgba(168,85,247,0.1);color:#a855f7}
.prod-log-badge.log-adjustment{background:rgba(245,158,11,0.1);color:#d97706}
.prod-log-badge.log-sale{background:rgba(59,130,246,0.1);color:#3b82f6}
[data-theme="dark"] .prod-log-badge.log-batch{background:rgba(168,85,247,0.15);color:#c084fc}
[data-theme="dark"] .prod-log-badge.log-purchase{background:rgba(16,185,129,0.15);color:#34d399}
[data-theme="dark"] .prod-log-badge.log-production{background:rgba(168,85,247,0.15);color:#c084fc}
[data-theme="dark"] .prod-log-badge.log-adjustment{background:rgba(245,158,11,0.15);color:#fbbf24}
[data-theme="dark"] .prod-log-badge.log-sale{background:rgba(59,130,246,0.15);color:#93c5fd}

/* Stock indicators */
.stock-ok{color:#10b981;font-weight:800}
.stock-low{color:#f59e0b;font-weight:800}
.stock-out{color:#ef4444;font-weight:800}
.stock-change-up{color:#10b981;font-weight:700}
.stock-change-down{color:#ef4444;font-weight:700}

/* Flow arrow */
.prod-flow-arrow{color:var(--text-muted);font-size:16px;margin:0 6px}

/* Responsive */
@media(max-width:768px){
  .batch-card{padding:14px}
  .batch-card-header{flex-direction:column;gap:6px}
}
