﻿/* ─── Customers Page Styles ───────────────────────────────────
   Owner: pages/customers/customers.css
   Wave 8 / PR-308-C3 (Customers migration)
   Rule: Shell layout only. Zero hardcoded colors.
   ─────────────────────────────────────────────────────────── */

/* ── Panel card ─────────────────────────────────────────── */
.cust-panel {
  padding: var(--mr-space-lg) !important;
  display: flex;
  flex-direction: column;
  gap: var(--mr-space-md);
}

/* ── Header row ─────────────────────────────────────────── */
.cust-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mr-space-sm);
}

.cust-panel-header .mr-page-heading {
  margin: 0;
}

.cust-panel-actions {
  display: flex;
  gap: var(--mr-space-xs);
  align-items: center;
}

/* ── Search ─────────────────────────────────────────────── */
.cust-search {
  height: 40px;
  max-width: 420px;
}

/* ── Empty state ────────────────────────────────────────── */
.cust-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--mr-space-sm);
  padding: var(--mr-space-2xl) var(--mr-space-xl);
  color: var(--mr-text-muted);
  font-size: 13px;
}

.cust-empty span:first-child {
  font-size: 1.5rem;
  opacity: 0.6;
}

/* ── Loyalty badge — rendered by engine in Status column ── */
/* Engine adds class="mr-badge mr-badge--success" for loyalty members */
/* No extra CSS needed — mr-badge.css handles it */

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 767px) {
  .cust-search {
    max-width: 100%;
  }

  /* Table: show only Name, Mobile, Points on mobile */
  .mr-table th:nth-child(4),
  .mr-table th:nth-child(5),
  .mr-table td:nth-child(4),
  .mr-table td:nth-child(5) {
    display: none;
  }
}
