/* ═══════════════════════════════════════════
   hz-features-v123.css — Styles for new features
   Progress bar, Cut map, Bulk import, Analytics, Pricing
   ═══════════════════════════════════════════ */

/* ── Progress stepper ──────────────────── */
.hz-progress { margin: 14px 0; }
.hz-progress__steps { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; overflow-x: auto; padding: 4px 0; }
.hz-progress__step { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; flex-shrink: 0; }
.hz-progress__dot {
  width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  background: var(--border, #e2e8f0); transition: all .3s ease; font-size: 13px; flex-shrink: 0;
}
.hz-progress__step--done .hz-progress__dot { background: var(--brand, #19a463); }
.hz-progress__step--active .hz-progress__dot {
  background: var(--brand, #19a463); box-shadow: 0 0 0 5px rgba(25,164,99,.15);
  width: 32px; height: 32px; font-size: 15px;
}
.hz-progress__step--cancelled .hz-progress__dot { background: var(--bad, #ef4444); }
.hz-progress__label { font-size: 11px; color: var(--muted, #64748b); text-align: center; white-space: nowrap; max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
.hz-progress__step--active .hz-progress__label { color: var(--brand, #19a463); font-weight: 700; }
.hz-progress__step--done .hz-progress__label { color: var(--text-2, #475569); }
.hz-progress__line { width: 20px; height: 2px; background: var(--border, #e2e8f0); flex-shrink: 0; margin: 0 2px; align-self: center; transition: background .3s; }
.hz-progress__line--done { background: var(--brand, #19a463); }
.hz-progress__hint {
  margin-top: 10px; padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5;
  background: var(--brand-bg, rgba(25,164,99,.06)); color: var(--text-1, #1e293b); display: flex; align-items: flex-start; gap: 8px;
}
.hz-progress__hint-icon { font-size: 16px; flex-shrink: 0; }

/* Compact variant (for list rows) */
.hz-progress--compact .hz-progress__steps { gap: 0; }
.hz-progress--compact .hz-progress__dot { width: 10px; height: 10px; font-size: 0; }
.hz-progress--compact .hz-progress__step--active .hz-progress__dot { width: 12px; height: 12px; box-shadow: 0 0 0 3px rgba(25,164,99,.18); }
.hz-progress--compact .hz-progress__line { width: 8px; height: 2px; }
.hz-progress--compact .hz-progress__label { display: none; }

/* ── Cut map viewer ────────────────────── */
.hz-cutmap { margin: 16px 0; }
.hz-cutmap__empty { text-align: center; padding: 40px 24px; color: var(--muted); }
.hz-cutmap__empty-icon { font-size: 40px; margin-bottom: 8px; }
.hz-cutmap__empty-title { font-weight: 900; font-size: 16px; margin-bottom: 6px; color: var(--text-1); }
.hz-cutmap__empty-sub { font-size: 13px; }
.hz-cutmap__summary { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 14px; color: var(--text-2); }
.hz-cutmap__stat b { color: var(--text-1); font-weight: 900; }
.hz-cutmap__divider { opacity: .3; }
.hz-cutmap__tabs { display: flex; gap: 4px; margin-bottom: 10px; flex-wrap: wrap; }
.hz-cutmap__tab {
  padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text-2); transition: all .15s;
}
.hz-cutmap__tab:hover { background: var(--surface-2); }
.hz-cutmap__tab--active { background: var(--brand); color: #fff; border-color: var(--brand); }
.hz-cutmap__canvas { min-height: 200px; }
.hz-cutmap__svg { transition: opacity .2s; }
.hz-cutmap__part:hover rect { filter: brightness(1.1); stroke-width: 2.5; }
.hz-cutmap__legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 8px 0; }
.hz-cutmap__legend-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); padding: 3px 8px; background: var(--surface-2, #f1f5f9); border-radius: 6px; }
.hz-cutmap__legend-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.hz-cutmap__legend-dim { opacity: .6; font-size: 11px; }

/* ── Bulk import dropzone ──────────────── */
.hz-dropzone:hover, .hz-dropzone.dragover { border-color: var(--brand) !important; background: var(--brand-bg, rgba(25,164,99,.04)) !important; }

/* ── Analytics ─────────────────────────── */
.an-kpi__val { font-size: 28px; font-weight: 900; color: var(--brand, #19a463); line-height: 1.2; }
.an-kpi__label { font-size: 12px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 768px) {
  .an-grid { grid-template-columns: repeat(2, 1fr) !important; }
  #anChartRevenue, #anChartStatus { max-height: 200px; }
  div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ── Pricing badge ─────────────────────── */
.hz-price-level {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.hz-price-level--base { background: #f1f5f9; color: #475569; }
.hz-price-level--retail { background: #dbeafe; color: #1d4ed8; }
.hz-price-level--dealer { background: #dcfce7; color: #15803d; }
.hz-price-level--wholesale { background: #fef3c7; color: #b45309; }
.hz-price-level--vip { background: #fae8ff; color: #9333ea; }

/* v1.2.137-fix: ARM React rest-screen baseline styles */
.arm-react-rest-root { min-height: 120px; }
.arm-react-rest-screen { padding: 0; }
.arm-react-rest-screen--dash {}
.arm-react-rest-screen--orders {}
.arm-react-rest-screen--kanban {}
.arm-react-rest-screen--kpi {}
.arm-react-rest-screen--analytics {}
.arm-react-rest-screen--import {}
.arm-react-rest-screen--rates {}
.arm-react-rest-screen--exports {}
.arm-react-rest-screen--outbox {}
.arm-react-rest-screen--dlq {}
.arm-react-rest-screen--ops {}
.arm-react-rest-screen--proc {}
.arm-react-rest-screen--delivery-center {}
.arm-error-boundary { padding: 16px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); border-radius: 8px; margin: 8px 0; font-size: 13px; color: #b91c1c; }
.dc-empty { padding: 40px; text-align: center; color: var(--muted, #888); }
.dc-empty__icon { font-size: 36px; margin-bottom: 8px; display: block; }
.dc-empty__title { font-weight: 900; font-size: 16px; margin-bottom: 4px; }
.dc-empty__sub { font-size: 13px; opacity: .7; }
.arm-skeleton { background: linear-gradient(90deg, var(--bg2, #f0f0f0) 25%, var(--bg3, #e8e8e8) 50%, var(--bg2, #f0f0f0) 75%); background-size: 200% 100%; animation: arm-sk-shine 1.5s ease-in-out infinite; border-radius: 14px; }
@keyframes arm-sk-shine { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
