/* WI-224 — Lost Bookings (/lost-bookings) styles.
   Mirrors source-mappings + reservations drawer aesthetics (blue-gradient
   sidebar, card grid) to match the admin's existing look.
*/

.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #1a365d;
}
.stat-label {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

/* Tabs */
.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
}
.tab-btn {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  transition: all 0.15s;
}
.tab-btn:hover {
  border-color: #1a365d;
  color: #1a365d;
}
.tab-btn.active {
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
  color: #fff;
  border-color: #1a365d;
}

.empty-state {
  padding: 32px;
  text-align: center;
}
.muted {
  color: #64748b;
}
.small {
  font-size: 12px;
}

/* Request cards */
.requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.request-card.status-pending {
  border-left: 4px solid #f59e0b;
}
.request-card.status-auto_approved {
  border-left: 4px solid #10b981;
}
.request-card.status-staff_approved {
  border-left: 4px solid #2b6cb0;
}
.request-card.status-rejected {
  border-left: 4px solid #94a3b8;
}

.request-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.request-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1e293b;
}
.status-chip.status-pending {
  background: #fef3c7;
  color: #92400e;
}
.status-chip.status-auto_approved {
  background: #d1fae5;
  color: #065f46;
}
.status-chip.status-staff_approved {
  background: #dbeafe;
  color: #1e40af;
}
.status-chip.status-rejected {
  background: #e2e8f0;
  color: #475569;
}

.score-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eef2ff;
  color: #3730a3;
}

.request-body {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 16px;
}
@media (max-width: 720px) {
  .request-body {
    grid-template-columns: 1fr;
  }
}

.guest-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.guest-name {
  font-weight: 600;
  font-size: 15px;
  color: #0f172a;
}

.candidate-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.booking-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13px;
}
.booking-card.candidate {
  background: #fff;
}
.booking-id {
  font-family: "JetBrains Mono", "Menlo", monospace;
  font-size: 12px;
  font-weight: 600;
  color: #1a365d;
}

.candidate-card.linked {
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f0fdf4;
}

.request-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Buttons — rely on shared booking-links.css .btn but define variants */
.btn.small {
  padding: 6px 10px;
  font-size: 12px;
}
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
}
.btn-danger:hover {
  background: #b91c1c;
}

/* Drawer */
.drawer-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
}
.drawer-root.hidden {
  display: none;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(640px, 100%);
  background: #fff;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(135deg, #1a365d 0%, #2b6cb0 100%);
  color: #fff;
}
.drawer-title {
  font-size: 18px;
  font-weight: 600;
}

.icon-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 10px;
}

.kv {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
}
.kv span {
  color: #64748b;
}

.drawer-candidate-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.notes-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #334155;
}
.notes-input {
  width: 100%;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  margin-bottom: 10px;
}
