/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color: #182230;
  background: #f5f7fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f7fa;
}

button {
  font: inherit;
}

input,
select {
  min-height: 2.5rem;
  padding: 0.5rem 0.625rem;
  color: #101828;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 0.5rem;
  font: inherit;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: #fff;
  border-bottom: 1px solid #e4e7ec;
}

.app-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #f2f4f7;
  border-radius: 0.625rem;
}

.nav-link {
  padding: 0.5rem 0.75rem;
  color: #475467;
  border-radius: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #175cd3;
  background: #fff;
}

.eyebrow {
  margin: 0;
  color: #d92d20;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signed-in-as {
  margin: 0.25rem 0 0;
  color: #667085;
  font-size: 0.875rem;
}

.secondary-button {
  padding: 0.625rem 1rem;
  color: #344054;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 0.5rem;
  cursor: pointer;
}

.secondary-button:hover {
  background: #f9fafb;
}

.primary-button,
.danger-button {
  padding: 0.625rem 1rem;
  color: #fff;
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

.primary-button {
  background: #175cd3;
}

.danger-button {
  background: #b42318;
}

.notice {
  padding: 0.75rem 1rem;
  color: #067647;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  border-radius: 0.5rem;
}

.container {
  width: min(100% - 2rem, 90rem);
  margin: 0 auto;
  padding: 2.5rem 0;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.page-heading p {
  margin: 0.5rem 0 0;
  color: #667085;
}

.customer-count {
  flex: none;
  padding: 0.375rem 0.75rem;
  color: #175cd3;
  background: #eff8ff;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  color: #475467;
  font-size: 0.875rem;
}

.pagination > :last-child {
  justify-self: end;
}

.table-frame {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(16 24 40 / 5%);
}

.customers-table {
  width: 100%;
  min-width: 58rem;
  border-collapse: collapse;
  text-align: left;
}

.customers-table th,
.customers-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e4e7ec;
  vertical-align: middle;
}

.customers-table thead th {
  color: #475467;
  background: #f9fafb;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.customers-table tbody th {
  color: #101828;
  font-size: 0.875rem;
  font-weight: 600;
}

.customers-table tbody td {
  color: #475467;
  font-size: 0.875rem;
}

.customers-table tbody tr:last-child th,
.customers-table tbody tr:last-child td {
  border-bottom: 0;
}

.customer-link,
.back-link {
  color: #175cd3;
  font-weight: 600;
  text-decoration: none;
}

.customer-link:hover,
.back-link:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.detail-card {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgb(16 24 40 / 5%);
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  margin: 0;
}

.detail-list div {
  min-width: 0;
}

.detail-list dt {
  margin-bottom: 0.375rem;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: #101828;
  overflow-wrap: anywhere;
}

.status {
  display: inline-flex;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-active {
  color: #067647;
  background: #ecfdf3;
}

.status-inactive {
  color: #b54708;
  background: #fffaeb;
}

.status-deleted {
  color: #b42318;
  background: #fef3f2;
}

.status-offer {
  color: #6941c6;
  background: #f4f3ff;
}

.status-primary {
  color: #175cd3;
  background: #eff8ff;
}

.inline-form,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.inline-form label {
  color: #475467;
  font-size: 0.875rem;
  font-weight: 600;
}

.contact-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-list li,
.source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e4e7ec;
}

.contact-list li:last-child,
.source-card:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-list p,
.source-card p,
.muted,
.detail-card > p {
  margin: 0.375rem 0 0;
  color: #667085;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1rem;
}

.danger-zone {
  border-color: #fecdca;
}

.empty-state {
  padding: 4rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px dashed #d0d5dd;
  border-radius: 0.75rem;
}

.empty-state h2 {
  margin: 0;
  font-size: 1.125rem;
}

.empty-state p {
  margin: 0.5rem 0 0;
  color: #667085;
}

@media (max-width: 40rem) {
  .app-header,
  .page-heading {
    align-items: flex-start;
  }

  .app-header {
    flex-wrap: wrap;
  }

  .app-nav {
    order: 3;
    width: 100%;
  }

  .signed-in-as {
    max-width: 14rem;
  }

  .container {
    padding-top: 1.5rem;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }
}
