/* Customers (customers.js; mock docs/owner-menu-v1): search and filters, the list, and a side panel per customer. */
.cu-root > .hint { margin: -4px 0 14px; }
.cu-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.cu-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.cu-search .ico { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.cu-search .input { padding-left: 42px; }
.cu-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cu-filter { height: 34px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 600 13px/1 var(--body); color: var(--muted); cursor: pointer; }
.cu-filter[aria-pressed="true"] { background: var(--ink); color: var(--surface); box-shadow: none; } /* selected: black, like every other picker */
.cu-card { padding: 10px; }
.cu-head, .cu-row { display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) 70px 100px 110px; align-items: center; gap: 12px; padding: 10px; }
.cu-head { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.cu-row { width: 100%; border: 0; border-radius: 14px; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.cu-row:hover { background: var(--soft); }
.cu-row:focus-visible { outline: 2px solid var(--pick); outline-offset: -2px; }
.cu-row b { display: block; font-weight: 600; font-size: 14px; }
.cu-row small { display: block; color: var(--muted); font-size: 12.5px; }
.cu-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: #0d0d12; font-size: 13px; font-weight: 800; } /* the customer's own colour (customerColour) */
.cu-av.big { width: 52px; height: 52px; font-size: 17px; flex: none; }
.cu-tag { display: inline-flex; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; vertical-align: middle; }
.cu-tag.regular { background: color-mix(in srgb, #1a8a4a 14%, var(--surface)); color: #157341; }
.cu-tag.new { background: var(--pick-soft); color: var(--pick-text); }
.cu-tag.away { background: var(--warn-bg); color: var(--warn-ink); }
.cu-tag.off { background: var(--soft); color: var(--muted); }
.cu-tag.stopped { background: var(--warn-bg); color: var(--warn-ink); }
.cu-none { padding: 10px; }
.cu-drawer { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: flex-end; background: rgba(13, 13, 18, .32); }
.cu-drawer[hidden] { display: none; }
.cu-panel { width: min(440px, 100%); height: 100%; overflow-y: auto; padding: 22px; background: var(--bg); animation: cu-in .35s cubic-bezier(.32, .72, 0, 1); }
@keyframes cu-in { from { transform: translateX(30px); opacity: 0; } }
.cu-top { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.cu-top h2 { margin: 0; font-size: 21px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cu-top p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.cu-close { display: grid; place-items: center; width: 36px; height: 36px; margin-left: auto; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; flex: none; }
.cu-close:hover { background: var(--soft); }
.cu-close .ico { width: 18px; height: 18px; }
.cu-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cu-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.cu-stats div { padding: 12px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.cu-stats b { display: block; font-size: 18px; letter-spacing: -.02em; } .cu-stats span { color: var(--muted); font-size: 12px; }
.cu-nextline { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--pick-soft); color: var(--pick-text); font-size: 13.5px; font-weight: 600; }
.cu-panel .card + .card { margin-top: 12px; }
.cu-panel .card h3 { margin: 0 0 4px; font-size: 16px; }
.cu-notes .hint { margin: 0; }
.cu-hist { display: grid; margin: 6px 0 0; padding: 0; list-style: none; }
.cu-hist li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cu-hist li:last-child { border-bottom: 0; }
.cu-hist .bk-chip:not(.done):not(.next):not(.noshow) { background: var(--soft); } /* "Booked" on the white panel */
.cu-hist small { display: block; color: var(--muted); font-weight: 400; }
@media (max-width: 860px) {
  .cu-head, .cu-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .cu-wide { display: none; }
}
@media (prefers-reduced-motion: reduce) { .cu-panel { animation: none; } }
.cu-notes .soon { margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 800; vertical-align: middle; }
.cu-tag.noshow { background: color-mix(in srgb, #c0392b 12%, var(--surface)); color: #b3261e; }
.cu-stats { grid-template-columns: repeat(4, 1fr); }
.cu-notes textarea { margin-top: 8px; resize: vertical; min-height: 76px; line-height: 1.5; }
.cu-note-row { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 8px; }
.cu-note-msg { flex: 1; margin: 0; color: var(--muted); font-size: 13px; }
.cu-note-read { margin: 8px 0 0; white-space: pre-line; }
