.customers-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2px 0 16px;
}
.customers-page-heading h1 {
  margin: 0;
  font-size: 24px;
  color: var(--text-primary);
}
.customers-page-heading p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.cust-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.cust-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
}
.cust-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: auto;
  background: var(--bg-card);
  max-height: calc(100vh - 220px);
}
.cust-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.cust-table th,
.cust-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.cust-table th {
  position: sticky;
  top: 0;
  background: var(--bg-elevated);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.cust-table tr:hover td {
  background: var(--bg-card-hover);
}
.cust-emoji {
  font-size: 22px;
  line-height: 1;
}
.cust-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.cust-badge-default {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700;
}
.cust-empty {
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.cust-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cust-modal-backdrop.open {
  display: flex;
}
.cust-modal {
  width: min(440px, 100%);
  background: var(--bg-panel);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
}
.cust-modal h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
.cust-field {
  margin-bottom: 12px;
}
.cust-field label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.cust-field input,
.cust-field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  box-sizing: border-box;
}
.cust-modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.cust-modal-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}
.cust-btn-primary {
  background: var(--accent);
  color: #000;
}
.cust-btn-ghost {
  background: var(--bg-card);
  border: 1px solid var(--border) !important;
  color: var(--text-secondary);
}
.cust-loyalty-card {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
}
.cust-loyalty-head h2 {
  margin: 0;
  font-size: 16px;
  color: var(--text-primary);
}
.cust-loyalty-head p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}
.cust-loyalty-form {
  margin-top: 14px;
}
.cust-loyalty-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  cursor: pointer;
}
.cust-loyalty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.cust-field-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
}
.cust-loyalty-preview {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--accent-dim);
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.45;
}
.cust-loyalty-readonly {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}
.cust-points-equiv {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}
