/* Auftraggeber: Archiv-Filter, Badge, Aktionsleiste */

.customer-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.customer-toolbar .table-search {
  flex: 1 1 240px;
  min-width: 0;
}

.customer-status-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  height: 40px;
  color: #5b6b7a;
  font-size: 12px;
  white-space: nowrap;
}

.customer-status-filter select {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  min-width: 140px;
  padding: 0 12px;
  border: 1px solid #dce4eb;
  border-radius: 8px;
  background: #fff;
  color: #2e4054;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  appearance: auto;
}

.customer-card.is-inactive {
  opacity: 0.78;
  background: #f7f9fb;
}

.customer-card .customer-status-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d7e0e8;
  background: #eef3f7;
  color: #5a6b7a;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Luft zwischen Aktiv-Schalter und Aktionsleiste */
.customer-edit-modal > .switch-row {
  margin-bottom: 4px;
}

.customer-edit-modal .form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 4px;
}

.customer-edit-modal .form-actions-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

/* Alle Aktionsbuttons auf gleiche Höhe / Box */
.customer-edit-modal .form-actions .primary-button,
.customer-edit-modal .form-actions .secondary-button,
.customer-edit-modal .form-actions .danger-button {
  box-sizing: border-box;
  min-height: 41px;
  height: 41px;
  padding: 0 18px;
  border-radius: 8px;
  border-width: 1px;
  border-style: solid;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
}

.customer-edit-modal .form-actions .primary-button {
  border-color: var(--blue, #3774ea);
  color: #fff;
  background: var(--blue, #3774ea);
}

.customer-edit-modal .form-actions .secondary-button {
  color: #44576a;
  background: #fff;
  border-color: #d9e1e8;
}

.customer-edit-modal .form-actions .danger-button {
  color: #a33a3a;
  border-color: #f0c7c7;
  background: #fff8f8;
}

.customer-edit-modal .form-actions .danger-button:hover {
  color: #7f1d1d;
  border-color: #e8a4a4;
  background: #fff1f1;
}

.theme-dark .customer-status-filter {
  color: #a8b4c0;
}

.theme-dark .customer-status-filter select {
  border-color: #3a4552;
  background: #1c2430;
  color: #e8eef4;
}

.theme-dark .customer-card.is-inactive {
  background: #171d26;
}

.theme-dark .customer-card .customer-status-badge {
  border-color: #3a4552;
  background: #243040;
  color: #a8b4c0;
}

.theme-dark .customer-edit-modal .form-actions .secondary-button {
  color: #d5dee7;
  background: #1c2430;
  border-color: #3a4552;
}

.theme-dark .customer-edit-modal .form-actions .danger-button {
  color: #fecaca;
  background: #ef444424;
  border-color: #f8717161;
}

.theme-dark .customer-edit-modal .form-actions .danger-button:hover {
  color: #fff5f5;
  background: #b91c1c42;
  border-color: #f8717194;
}
