/* ============================================================
   Admin Webhooks — estilos (LG-3)
   ============================================================ */

.wh-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wh-row {
  cursor: pointer;
  transition: background 0.12s ease;
}
.wh-row:hover {
  background: var(--surface-hover);
}

.wh-ext-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  background: var(--bg-4);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}

.wh-muted {
  color: var(--mute);
  font-style: italic;
  font-size: 12px;
}

.wh-error-snippet {
  color: #e8a89e;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* ─── Drawer ─────────────────────────────────────────────── */
.wh-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(640px, 95vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line-2);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wh-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--bg-3);
}

.wh-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 24px;
}

.wh-drawer-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.wh-drawer-section:last-child {
  border-bottom: none;
}

.wh-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.wh-section-grid .lg-label {
  margin-bottom: 4px;
}

.wh-error-box {
  background: rgba(196, 70, 56, 0.08);
  border: 1px solid rgba(196, 70, 56, 0.3);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: #e8a89e;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.wh-client-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.6;
}

.wh-json {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
  max-height: 360px;
  overflow: auto;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-soft-2) transparent;
}
.wh-json::-webkit-scrollbar { width: 6px; height: 6px; }
.wh-json::-webkit-scrollbar-thumb { background: var(--gold-soft-2); border-radius: 3px; }
