/**
 * ═══════════════════════════════════════════════════════
 * CUSTOMERS PAGE STYLES
 * ═══════════════════════════════════════════════════════
 * 
 * Styles für die Kundenverwaltung
 */

/* ─────────────────────────────────────────────────────
   CUSTOMER FILTER
   ───────────────────────────────────────────────────── */

.customer-filter {
  padding: var(--spacing-lg);
  background: var(--color-white);
  margin: var(--spacing-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-chips {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  padding-bottom: var(--spacing-xs);
  -webkit-overflow-scrolling: touch;
}

.filter-chip {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: var(--font-size-subhead);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  border: 2px solid var(--color-light-gray);
  background: var(--color-white);
  color: var(--text-primary);
}

.filter-chip:active {
  transform: scale(0.98);
}

.filter-chip.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* ─────────────────────────────────────────────────────
   CUSTOMER LIST
   ───────────────────────────────────────────────────── */

.customer-list {
  padding: 0 var(--spacing-md);
}

/* Customer Card */
.customer-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.customer-card:active {
  transform: scale(0.99);
}

.customer-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Customer Header (Avatar + Name) */
.customer-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--color-background);
}

.customer-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-round);
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-title-2);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
}

.customer-name-block {
  flex: 1;
  min-width: 0;
}

.customer-name {
  font-size: var(--font-size-headline);
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.customer-company {
  font-size: var(--font-size-subhead);
  color: var(--text-tertiary);
}

/* Customer Details */
.customer-details {
  padding: var(--spacing-lg);
  display: grid;
  gap: var(--spacing-sm);
}

.customer-detail-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-subhead);
  color: var(--text-secondary);
}

.customer-detail-item ion-icon {
  font-size: 18px;
  color: var(--color-primary);
  width: 20px;
}

/* Customer Stats (Umsatz, Bestellungen) */
.customer-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--color-background);
}

.customer-stat {
  text-align: center;
}

.customer-stat-value {
  font-size: var(--font-size-title-3);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--spacing-xs);
}

.customer-stat-label {
  font-size: var(--font-size-caption-1);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─────────────────────────────────────────────────────
   CUSTOMER DETAIL VIEW (Modal/Page)
   ───────────────────────────────────────────────────── */

.customer-detail-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: var(--spacing-xxl) var(--spacing-lg);
  text-align: center;
}

.customer-detail-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-round);
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-large-title);
  font-weight: var(--font-weight-bold);
  margin: 0 auto var(--spacing-lg);
}

.customer-detail-name {
  font-size: var(--font-size-title-1);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-xs);
}

.customer-detail-info {
  font-size: var(--font-size-subhead);
  opacity: 0.9;
}

/* Tab Navigation */
.customer-tabs {
  display: flex;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-background);
}

.customer-tab {
  flex: 1;
  padding: var(--spacing-md);
  text-align: center;
  font-size: var(--font-size-subhead);
  font-weight: var(--font-weight-medium);
  color: var(--text-tertiary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.customer-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.customer-tab:active {
  background: var(--color-background);
}
