/* Customer management styles */

.customers-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 8px;
  margin: 1.5rem 0;
}

.customers-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.customers-table thead {
  background-color: var(--color-bg-secondary, #f9fafb);
  border-bottom: 2px solid var(--color-border, #e5e7eb);
}

.customers-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-secondary, #6b7280);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.customers-table tbody tr {
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  transition: background-color 0.15s ease;
}

.customers-table tbody tr:hover {
  background-color: var(--color-bg-secondary, #f9fafb);
}

.customers-table td {
  padding: 12px 16px;
  color: var(--color-text, #1f2937);
}

.customers-table td:last-child {
  text-align: right;
}

.action-buttons {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

/* Pagination */

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.page-info {
  font-size: 14px;
  color: var(--color-text-secondary, #6b7280);
  min-width: 200px;
  text-align: center;
}

/* Info modal styles */

.info-group {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.info-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.info-label {
  font-weight: 600;
  color: var(--color-text-secondary, #6b7280);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: var(--color-text, #1f2937);
  word-break: break-word;
}

/* Modal actions */

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border, #e5e7eb);
  justify-content: flex-end;
}

.modal-actions .btn {
  flex-shrink: 0;
}

/* Search and filter controls */

.list-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.list-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 12px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.list-search:focus {
  outline: none;
  border-color: var(--color-primary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.list-filter {
  padding: 10px 12px;
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.list-filter:focus {
  outline: none;
  border-color: var(--color-primary, #3b82f6);
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .customers-table {
    font-size: 12px;
  }

  .customers-table th,
  .customers-table td {
    padding: 10px 8px;
  }

  .action-buttons {
    flex-direction: column;
    align-items: flex-end;
  }

  .info-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .info-label {
    font-size: 11px;
  }

  .pagination-controls {
    flex-direction: column;
    gap: 0.5rem;
  }

  .page-info {
    min-width: auto;
  }
}

/* Empty state */

.empty-state {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-secondary, #6b7280);
  font-size: 14px;
}