.tempolia-webhooks-view { font-size: 14px; line-height: 1.55; }
.tempolia-webhooks-view * { box-sizing: border-box; }
tempolia-webhooks { display: block; }
#webhook-content { min-width: 0; }
.wh-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wh-page-heading h1,.wh-page-heading h2 { margin: 2px 0 8px; font-size: 28px; letter-spacing: -.03em; }
.wh-page-heading p { margin: 4px 0; color: var(--tp-muted); }
.wh-eyebrow { margin: 0; font-size: 11px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--tp-pink-dark) !important; }
.wh-guide { color: var(--tp-pink-dark); font-weight: 650; white-space: nowrap; }
.wh-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 22px 0; }
.wh-stats > div { display: flex; flex-direction: column; padding: 20px 24px; border: 1px solid var(--tp-line); background: white; border-radius: 14px; }
.wh-stats strong { font-size: 28px; letter-spacing: -.03em; }
.wh-stats span { color: var(--tp-muted); }
.wh-card { background: white; border: 1px solid var(--tp-line); border-radius: 14px; overflow: hidden; }
.wh-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 22px; }
.wh-filters label { flex: 1; min-width: 120px; font-size: 12px; font-weight: 650; }
.wh-filters input,.wh-filters select { display: block; width: 100%; height: 41px; margin-top: 6px; padding: 8px 10px; border: 1px solid #d9d4df; border-radius: 7px; background: white; color: var(--tp-ink); font: inherit; font-size: 14px; }
.tempolia-webhooks-view button { padding: 9px 15px; border: 1px solid #d9d4df; border-radius: 7px; color: var(--tp-ink); background: white; cursor: pointer; font: inherit; font-weight: 650; }
.tempolia-webhooks-view button:hover { border-color: var(--tp-pink-dark); color: var(--tp-pink-dark); }
.tempolia-webhooks-view button:disabled { cursor: default; opacity: .45; }
.tempolia-webhooks-view .wh-primary { background: var(--tp-pink-dark); border-color: var(--tp-pink-dark); color: white; }
.wh-table-wrap { position: relative; overflow-x: auto; }
.tempolia-webhooks-view table { width: 100%; border-collapse: collapse; text-align: left; }
.tempolia-webhooks-view th { background: #faf9fc; color: var(--tp-muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 14px 22px; white-space: nowrap; border-block: 1px solid var(--tp-line); }
.tempolia-webhooks-view td { padding: 19px 22px; border-bottom: 1px solid #f0edf3; vertical-align: middle; }
.tempolia-webhooks-view td strong { display: block; font-weight: 650; }
.wh-meta { display: block; color: var(--tp-muted); font-size: 12px; margin-top: 4px; overflow-wrap: anywhere; }
.wh-badge { display: inline-block; border-radius: 20px; padding: 3px 10px; color: #216d4a; background: #eaf5ef; font-size: 12px; font-weight: 650; white-space: nowrap; }
.wh-badge.inactive { color: #67616d; background: #f0edf3; }
.wh-badge.failing { color: #925500; background: #fff2d9; }
.wh-pagination { display: flex; align-items: center; gap: 8px; padding: 16px 22px; }
#wh-range { margin-right: auto; color: var(--tp-muted); }
.wh-empty { padding: 25px; color: var(--tp-muted); }
.wh-footnote { color: var(--tp-muted); font-size: 12px; margin-top: 20px; }
.wh-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#wh-message { min-height: 20px; color: var(--tp-muted); }
#wh-message.wh-error,#wh-detail-message.wh-error { color: #a22535; }
#wh-detail { width: min(1020px,calc(100% - 32px)); max-height: 90vh; border: 1px solid var(--tp-line); border-radius: 16px; padding: 0; color: var(--tp-ink); box-shadow: 0 24px 100px #30223838; }
#wh-detail::backdrop { background: #22162b75; }
#wh-detail > header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--tp-line); background: white; }
#wh-close { flex-shrink: 0; white-space: nowrap; }
#wh-detail h2 { margin: 5px 0 0; font-size: 23px; overflow-wrap: anywhere; }
#wh-detail h3 { margin: 26px 0 12px; font-size: 16px; }
#wh-detail-body { padding: 0 24px 16px; }
#wh-detail dl { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 10px 20px; }
#wh-detail dt { color: var(--tp-muted); }
#wh-detail dd { margin: 0; overflow-wrap: anywhere; }
#wh-detail code { font-size: 12px; overflow-wrap: anywhere; }
#wh-detail summary { cursor: pointer; color: var(--tp-pink-dark); }
#wh-detail th,#wh-detail td { padding: 10px 12px; }
#wh-detail footer { display: flex; justify-content: end; padding: 16px 24px; border-top: 1px solid var(--tp-line); }
#wh-confirm { margin: 12px 24px; padding: 16px; border: 1px solid var(--tp-line); border-radius: 10px; background: var(--tp-page); }
#wh-confirm p { margin-top: 0; }
#wh-confirm button + button { margin-left: 8px; }
#wh-detail-message { margin: 0 24px 12px; }
.wh-history-pager { display: flex; gap: 8px; margin-top: 12px; }
@media (max-width: 760px) {
    .wh-page-heading { align-items: start; flex-direction: column; gap: 10px; }
    .wh-stats { gap: 8px; }
    .wh-stats > div { padding: 13px 12px; }
    .wh-stats strong { font-size: 24px; }
    .wh-stats span { font-size: 11px; }
    .wh-filters { padding: 16px; gap: 10px; }
    .wh-filters label { flex-basis: 42%; }
    .tempolia-webhooks-view td { padding: 14px; }
    .wh-card .wh-table-wrap table,.wh-card .wh-table-wrap tbody { display: block; }
    .wh-card .wh-table-wrap thead { display: none; }
    .wh-card .wh-table-wrap tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 18px 16px; border-top: 1px solid var(--tp-line); }
    .wh-card .wh-table-wrap td { padding: 0; border: 0; }
    .wh-card td:nth-child(1),.wh-card td:nth-child(2) { grid-column: 1 / -1; }
    .wh-card td:nth-child(3) { grid-column: 1; grid-row: 3; }
    .wh-card td:nth-child(4) { grid-column: 1; font-size: 12px; color: var(--tp-muted); }
    .wh-card td:nth-child(4)::before { content: 'Dernier succès : '; }
    .wh-card td:nth-child(5) { grid-column: 2; grid-row: 3 / 5; align-self: center; }
    #wh-detail { width: calc(100% - 16px); }
    #wh-detail dl { grid-template-columns: 1fr; gap: 3px; }
    #wh-detail dd { margin-bottom: 10px; }
}
