/* ============================================================
   waitlist.css — модалки листа ожидания (B40, FE-WAITLIST-001)
   ============================================================ */
.wl-modal,
.wl-add-modal{
  position:fixed; inset:0;
  width:100%; max-width:none;
  height:100%; max-height:100vh;
  border-radius:0; box-shadow:none;
  transform:none;
  padding:16px 16px calc(16px + env(safe-area-inset-bottom));
  overflow:auto;
  display:flex; flex-direction:column;
}

.wl-add-modal form{
  flex:1;
  display:flex;
  flex-direction:column;
  min-height:0;
  max-height:none;
  overflow:visible;
}

.wl-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.wl-header h2{ margin:0; }
.wl-close{
  flex:none;
  background:none;
  border:none;
  color:var(--text-muted);
  font-size:22px;
  line-height:1;
  cursor:pointer;
  padding:4px 6px;
}

.wl-rows{
  flex:1;
  max-height:none;
  margin:12px 0 0;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:0;
}

.wl-footer{
  justify-content:flex-end;
  margin:16px -16px 0;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
}
.wl-footer .btn{
  flex:0 0 auto;
  min-width:120px;
}
.wl-row{ display:flex; flex-wrap:wrap; gap:10px; padding:12px; border:1px solid var(--line); border-radius:12px; background:var(--surface-inset); font-size:13px; align-items:flex-start; }
.wl-row-main{ flex:1 1 220px; min-width:0; display:flex; flex-direction:column; gap:4px; }
.wl-row-actions{ flex:0 1 auto; display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:flex-end; }

.wl-name{ font-weight:600; color:var(--text-primary); }
.wl-phone, .wl-ms{ color:var(--accent-light); text-decoration:none; }
.wl-phone:hover, .wl-ms:hover{ text-decoration:underline; }
.wl-period{ color:var(--text-muted); font-variant-numeric:tabular-nums; }
.wl-counts{ color:var(--text-muted); }
.wl-comment{ color:var(--text-muted); font-size:12px; }

.wl-action-btn{ padding:6px 10px; border-radius:8px; border:1px solid var(--line-control); background:var(--surface-control); color:var(--text-primary); font-size:12px; font-weight:600; cursor:pointer; }
.wl-action-btn:hover{ border-color:var(--accent); color:var(--accent-light); background:var(--surface-control-hover); }
.wl-delete-btn:hover{ border-color:var(--danger-line); color:var(--danger-text); background:var(--danger-bg); }

.wl-empty{ text-align:center; color:var(--text-faint); padding:18px; }

.wl-add-modal .modal-actions{
  margin:16px -16px 0;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
}
.wl-add-modal .modal-actions .btn{
  flex:0 0 auto;
  min-width:120px;
  margin-left:auto;
}

.wl-add-modal textarea{
  width:100%; background:var(--surface-inset); border:1px solid var(--line-control); border-radius:10px;
  color:var(--text-primary); padding:10px 12px; font-size:14px;
  transition:border-color .15s, box-shadow .15s;
  resize:vertical; font-family:inherit;
}
.wl-add-modal textarea:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-focus); }
