/* Client list page — composes theme + pipeline.css + client.css */

.clients-table {
  background: white;
  border: 1.5px solid var(--stone);
  border-radius: 12px;
  padding: var(--space-md) 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.clients-table-row {
  display: grid;
  grid-template-columns: 1.8fr 2fr 0.6fr 0.6fr 1fr 0.9fr;
  gap: 16px;
  align-items: center;
  padding: 16px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid var(--stone);
}

.clients-table-row:last-child {
  border-bottom: none;
}

.clients-table-row:hover {
  background: rgba(200, 117, 51, 0.06);
}

.clients-table-row.clients-table-head {
  cursor: default;
  padding: 8px 12px 12px;
  border-bottom: 2px solid var(--stone);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.clients-table-row.clients-table-head:hover {
  background: transparent;
}

.col-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.2;
  min-width: 0;
}

.col-name a.client-name {
  color: var(--ink);
  text-decoration: none;
}

.col-name a.client-name:hover {
  color: var(--copper);
  text-decoration: underline;
}

.col-email {
  font-size: 14px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.col-email .email-link {
  color: var(--copper);
  text-decoration: none;
  font-weight: 500;
}

.col-email .email-link:hover {
  text-decoration: underline;
}

.col-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-align: center;
}

.col-date {
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
}

.muted-link {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

.clients-table-row .overdue-flag {
  display: inline-block;
  background: #c0392b;
  color: white;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
}

.clients-table-row .overdue-flag:hover {
  background: #a0301f;
  text-decoration: none;
}

@media (max-width: 900px) {
  .clients-table-row {
    grid-template-columns: 1.6fr 1.4fr 0.5fr 0.5fr 0.9fr 0.8fr;
    gap: 10px;
    padding: 14px 8px;
  }

  .col-email {
    display: none;
  }
}

@media (max-width: 640px) {
  .clients-table {
    padding: 12px 8px;
  }
  .clients-table-row {
    grid-template-columns: 1.4fr 1fr;
    gap: 8px;
    padding: 14px 8px;
    font-size: 13px;
  }
  .col-email,
  .col-date:nth-child(6) {
    display: none;
  }
}
