.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#page-customers [hidden] {
  display: none !important;
}

.customer-list-intro {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 13px;
}

.customer-list-actions,
.customer-search-form,
.customer-list-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

.customer-list-actions .btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.customer-list-card {
  overflow: hidden;
}

.customer-list-toolbar {
  gap: 16px;
  flex-wrap: wrap;
}

.customer-search-form {
  flex: 1 1 460px;
  min-width: 0;
}

.customer-search-box {
  flex: 1 1 260px;
  width: auto;
}

.customer-search-box:focus-within {
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(227, 25, 55, 0.18);
}

.customer-list-count {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.customer-list-state {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 36px 24px;
  color: var(--text-secondary);
  text-align: center;
}

.customer-list-state p + .btn {
  margin-top: 16px;
}

.customer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.customer-detail-trigger {
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.customer-detail-trigger:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.customer-detail-trigger:focus-visible {
  outline: 3px solid rgba(227, 25, 55, 0.24);
  outline-offset: 3px;
}

.customer-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
}

.customer-tag-empty {
  background: var(--bg-light);
  color: var(--text-secondary);
  font-weight: 500;
}

.customer-table-scroll {
  overflow-x: auto;
}

.customer-list-pagination {
  justify-content: flex-end;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}

@media (max-width: 640px) {
  .customer-list-actions,
  .customer-search-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .customer-list-actions .btn,
  .customer-search-form .btn {
    flex: 1 1 auto;
  }

  .customer-search-box {
    flex-basis: 100%;
  }

  .customer-list-pagination {
    justify-content: space-between;
  }

  #customerListTable thead {
    display: none;
  }

  #customerListBody,
  #customerListBody tr,
  #customerListBody td {
    display: block;
    width: 100%;
  }

  #customerListBody tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  #customerListBody tr:last-child {
    border-bottom: 0;
  }

  #customerListBody td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 7px 20px;
    border: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #customerListBody td::before {
    content: attr(data-label);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
  }
}
