/* «Gözləmə siyahısı» (spec docs/waitlist-tech.md): the wishes as cards; one whose time is free now carries the signal
   colour on its edge and its free times as tickets — the time large, the master, the two ways to take it. */
.wait-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 14px; }
.wait-head__text { min-width: 0; }
.wait-head__title { font: var(--display-weight) 22px/1.2 var(--font-display); letter-spacing: var(--display-tracking); }
.wait-head__text .muted { margin-top: 4px; max-width: 62ch; font-size: 14px; }
.wait-kpis { grid-template-columns: repeat(2, 1fr); align-self: start; margin-bottom: 16px; }
.wait-kpis > div:nth-child(n) { border-left: 1px solid var(--line); border-top: 0; }
.wait-kpis > div:first-child { border-left: 0; }

.wait-sec { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.wait-sec--found { color: var(--signal, var(--accent-text)); }
.wait-list + .wait-sec { margin-top: 22px; }
.wait-list { display: grid; gap: 12px; }
.wait-list:empty { display: none; }

.wait-entry { padding: 0; overflow: hidden; }
.wait-entry.is-found { border-color: color-mix(in srgb, var(--signal, var(--accent)) 45%, var(--line)); box-shadow: inset 4px 0 0 var(--signal, var(--accent)); }
.wait-entry__top { display: flex; align-items: flex-start; gap: 12px; padding: 14px; }
.wait-entry__top .avatar { flex: none; }
.wait-entry__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wait-entry__name { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wait-entry__name:hover { text-decoration: underline; }
.wait-entry__what { font-size: 14px; font-weight: 600; color: var(--ink); }
.wait-entry__when { font-size: 13px; color: var(--ink-2); }
.wait-entry__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.wait-entry__tags .badge { height: auto; min-height: 20px; padding: 2px 8px; font-weight: 600; }
.wait-entry__note { margin-top: 2px; font-size: 13px; color: var(--ink-2); font-style: italic; }
.wait-entry__note:empty { display: none; }
.wait-entry__acts { display: flex; flex: none; gap: 6px; }
.wait-entry__close { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 0 14px 12px; }

/* a free time as a ticket: perforated on its left, the time large */
.wait-slots { display: grid; gap: 8px; padding: 0 14px 14px; }
.wait-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--signal, var(--accent)) 8%, var(--surface));
  border: 1px dashed color-mix(in srgb, var(--signal, var(--accent)) 40%, var(--line)); }
.wait-slot__time { display: flex; flex-direction: column; min-width: 92px; }
.wait-slot__time b { font-size: 18px; font-weight: 800; line-height: 1.15; color: var(--ink); }
.wait-slot__time small { font-size: 12px; color: var(--ink-2); }
.wait-slot__time small:empty { display: none; }
.wait-slot__who { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.wait-slot__acts { display: flex; gap: 6px; }
@media (max-width: 640px) {
  .wait-slot__acts { width: 100%; }
  .wait-slot__acts .btn { flex: 1; }
}

/* the sheet: the two fields under «custom» */
.wait-custom { margin-top: 8px; }

/* the dashboard's line and the client card's */
.dash-alert--wait .dash-alert__icon { background: color-mix(in srgb, var(--signal, var(--accent)) 16%, var(--bg)); color: var(--signal, var(--accent)); }
.client-wait { display: flex; flex-direction: column; gap: 6px; }
.client-wait__row { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.client-wait__row .ic { flex: none; color: var(--signal, var(--accent-text)); }
