/* AURIA LASH — clients page. Dashboard precedent throughout. */

.search-shell input {
  border: none;
  background: transparent;
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding: 10px 14px;
  width: 200px;
}
.search-shell input:focus { outline: 2px solid var(--champagne); outline-offset: 1px; }

.client-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: calc(var(--unit) * 1.5);
}

.client-card {
  background: var(--white);
  border: var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: calc(var(--unit) * 2);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(var(--unit) * 1.5) calc(var(--unit) * 2);
  align-items: center;
}
.client-card.match-hidden { display: none; }
.client-card:target { border-color: var(--rose-vivid); }

.c-avatar {
  flex: none; /* the circle never squeezes, any layout, any width */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rose);
  color: var(--on-accent);
  font-family: var(--font-mark);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c-info { display: grid; gap: 3px; min-width: 0; }
.c-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.c-tag {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: bold;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--rose);
  color: var(--on-accent);
  padding: 2px 7px;
  border-radius: var(--radius);
}
.c-tag.tag-new { background: var(--champagne); }
.c-fave {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
}
.c-stats {
  font-size: 11px;
  color: var(--ink);
  opacity: 0.55;
}
.c-next { font-size: 12px; }
.c-next .a-time { margin-right: 4px; }
.c-next a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--bone); }
.c-next a:hover { border-bottom-color: var(--rose); }

.c-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: calc(var(--unit) * 1);
  border-top: 1px solid var(--pearl);
  padding-top: calc(var(--unit) * 1.5);
}
.c-actions .book-btn { padding: 6px 18px; }
.c-actions .lash-btn { padding: 6px 14px; }

/* ---------- client dossier modal ---------- */

.client-card { cursor: pointer; }

/* dossier: header/contact locked, only the map plates scroll */
.detail-card {
  max-width: 560px;
  max-height: 82vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.map-scroll {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  margin-top: calc(var(--unit) * 1);
  padding-right: 4px;
}
/* scrollbar styling comes from the house rule in layout.css */

.d-head {
  display: flex;
  flex-wrap: wrap; /* buttons drop below on narrow; details keep air */
  align-items: center;
  gap: calc(var(--unit) * 1.5) calc(var(--unit) * 2);
}
.d-head .c-avatar { width: 64px; height: 64px; font-size: 24px; }
.d-head .d-id { display: grid; gap: 4px; }
.d-head .c-name { font-size: 18px; }
.d-head .d-fave {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}
.d-head {
  padding-right: 30px; /* clear the pinned close circle */
}
.d-head .d-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--unit) * 1);
  justify-content: flex-end;
}

/* Book wears the site-wide chocolate dress from calendar.css */

.sim-note {
  font-style: italic;
  font-size: 11px;
  opacity: 0.55;
  margin: calc(var(--unit) * 1.5) 0;
}

.d-contact {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--pearl);
  border-bottom: 1px solid var(--pearl);
  padding: calc(var(--unit) * 1.5) 0;
}
.d-row { display: flex; gap: calc(var(--unit) * 2); font-size: 13px; }
.d-row .d-label {
  width: 64px;
  flex: none;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  padding-top: 2px;
}

.d-maps-head {
  display: flex;
  align-items: center;
  gap: calc(var(--unit) * 1.5);
  margin: calc(var(--unit) * 2) 0 calc(var(--unit) * 1.5);
}
.d-maps-head .rule { width: 28px; height: 2px; background: var(--champagne); }
.d-maps-head h3 {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.d-maps-head .d-lock {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--champagne);
}

.map-grid { display: grid; gap: calc(var(--unit) * 2); }

/* full-width lash map plate: the map owns the card; rose miniature
   footer band; details beneath with air at the bottom */
.map-node {
  border: var(--hairline);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  display: grid;
}
.map-thumb { background: var(--white); }
.map-thumb img { width: 100%; height: auto; display: block; }

.map-band { height: 7px; background: var(--rose); }

.map-info {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: calc(var(--unit) * 1.5) calc(var(--unit) * 2) calc(var(--unit) * 2);
}
.map-title {
  border: none;
  background: transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--ink);
  width: 100%;
  padding: 2px 0;
  border-bottom: 1px dashed transparent;
}
.map-title:hover { border-bottom-color: var(--bone); }
.map-title:focus {
  outline: none;
  border-bottom: 1px dashed var(--rose);
}
.map-date {
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: bold;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
}
.map-actions { display: flex; gap: calc(var(--unit) * 1); margin-top: 4px; }
.note-btn {
  border: 1px solid var(--rose);
  background: var(--white);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: bold;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.note-btn:hover { background: var(--rose); color: var(--on-accent); }

/* editor: field on top, full-width pearl Save seated beneath */
.note-editor {
  display: flex;
  flex-direction: column;
  gap: calc(var(--unit) * 1);
  margin-top: 6px;
}
.note-editor[hidden] { display: none; }
.note-save {
  width: 100%;
  border: none;
  background: var(--pearl);
  color: var(--ink);
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 0;
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.note-save:hover { background: var(--bone); }
/* clean field: off-white ground, no stroke, button bevel, no double
   edges ever; focus speaks through a soft tone shift */
.note-editor textarea {
  border: none;
  border-radius: var(--radius-btn);
  background: var(--ivory);
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink);
  padding: 8px 10px;
  min-height: 56px;
  resize: vertical;
}
.note-editor textarea:focus { outline: none; background: var(--pearl); }
.note-text {
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.8;
  border-left: 2px solid var(--champagne);
  padding-left: 8px;
  margin-top: 4px;
  white-space: pre-wrap;
}
.note-text:empty { display: none; }

/* ---------- desktop ---------- */

@media (min-width: 840px) {
  .client-grid { grid-template-columns: repeat(3, 1fr); }
  .search-shell input { width: 260px; }
  .detail-card { max-width: 640px; }
}
