/* Tab Stok Rendah — badge, progress, kartu aksi */
.ls-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
@media (max-width: 640px) {
  .ls-dashboard { grid-template-columns: 1fr; }
}
.ls-stat-card {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.ls-stat-card--critical { border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.08); }
.ls-stat-card--warning { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.08); }
.ls-stat-card--restock { border-color: rgba(59, 130, 246, 0.35); background: rgba(59, 130, 246, 0.06); }
.ls-stat-card span { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ls-stat-card b { display: block; font-size: 22px; margin-top: 4px; font-weight: 800; }

.ls-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.ls-search-wrap {
  flex: 1 1 200px;
  position: relative;
}
.ls-search-wrap i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}
.ls-search-wrap input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
}
.ls-select {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12px;
  min-width: 120px;
}
.ls-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ls-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-muted);
}
.ls-chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 197, 24, 0.12);
}

.ls-notify {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.06);
  font-size: 12px;
}
.ls-notify ul { margin: 6px 0 0; padding-left: 18px; }
.ls-notify li { margin: 4px 0; }

.ls-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 10px;
}
.ls-card--critical { border-left: 4px solid #ef4444; }
.ls-card--warning { border-left: 4px solid #f59e0b; }
.ls-card-emoji { font-size: 28px; line-height: 1; }
.ls-card-main { min-width: 0; }
.ls-card-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.ls-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.ls-badge--critical { background: #ef4444; color: #fff; }
.ls-badge--warning { background: #f59e0b; color: #111; }
.ls-badge--ok { background: #22c55e; color: #fff; }
.ls-meta {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}
.ls-stock-line {
  font-size: 12px;
  margin: 6px 0 4px;
}
.ls-progress {
  height: 6px;
  border-radius: 4px;
  background: var(--bg-elevated);
  overflow: hidden;
  margin-top: 4px;
}
.ls-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.2s ease;
}
.ls-progress-fill--critical { background: linear-gradient(90deg, #ef4444, #f87171); }
.ls-progress-fill--warning { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.ls-suggest {
  font-size: 11px;
  color: var(--accent);
  margin-top: 6px;
  font-weight: 600;
}
.ls-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.ls-actions .ep-btn { padding: 8px 10px; font-size: 11px; white-space: nowrap; }

.ls-empty {
  text-align: center;
  padding: 40px 20px;
  border-radius: 14px;
  border: 1px dashed var(--border);
  background: var(--bg-card);
}
.ls-empty-icon { font-size: 48px; margin-bottom: 10px; }
.ls-empty h3 { margin: 0 0 6px; font-size: 18px; }
.ls-empty p { margin: 0; color: var(--text-muted); font-size: 13px; }

.ls-load-more { text-align: center; margin-top: 12px; }
.ls-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 920;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ls-modal-backdrop.open { display: flex; }
.ls-modal {
  width: min(400px, 100%);
  background: var(--bg-panel, #181c27);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--border);
}
.ls-modal h3 { margin: 0 0 10px; font-size: 16px; }
.ls-modal-actions { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; }
