/* clients-view.css — Clients & Projects module per the brief. */

.clients-view {
  background: var(--paper);
  min-height: 100%;
}

.clients-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 240px);
}

/* ---------- List rail ---------- */
.clients-list {
  border-right: 1px solid var(--rule);
  overflow-y: auto;
}
.clients-list-item {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  padding: 20px 28px;
  cursor: pointer;
  font-family: var(--sans);
  transition: background var(--dur-fast) ease;
}
.clients-list-item:hover { background: rgba(80, 80, 80, 0.04); }
.clients-list-item.active { background: var(--paper-2); }
.clients-list-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

/* ---------- Detail pane ---------- */
.clients-detail {
  padding: 32px 56px 56px;
}
.clients-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.clients-projects-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--rule-strong);
  margin-bottom: 12px;
}

/* ---------- Projects table ---------- */
.clients-table {
  width: 100%;
  border-collapse: collapse;
}
.clients-table th,
.clients-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.clients-table th {
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  padding-top: 10px;
  padding-bottom: 10px;
}
.clients-table .clients-table-row { cursor: pointer; }
.clients-table .clients-table-row:hover td { background: rgba(26, 26, 26, 0.02); }

/* ---------- Accent picker (client modal) ---------- */
/* Four-up grid of named swatches. Selected one gets a slim ink ring. */
.accent-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.accent-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #FAFAF6;
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink);
  text-align: left;
  transition: border-color var(--dur-fast, 120ms) ease;
}
.accent-swatch:hover {
  border-color: var(--rule-strong);
}
.accent-swatch.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.accent-swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.accent-swatch-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .accent-picker { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .clients-body {
    grid-template-columns: 1fr;
  }
  .clients-list {
    border-right: none;
    border-bottom: 1px solid var(--rule);
    max-height: 50vh;
  }
  .clients-detail {
    padding: 24px 20px 56px;
  }
  .clients-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
