/* PietroCal Webhooks settings — 9Q01.3.1 */
.pc-webhook-list{display:grid}
.pc-webhook-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:14px;padding:18px 22px;border-top:1px solid #edf0f4}
.pc-webhook-status{width:9px;height:9px;border-radius:50%;background:#9aa2ad}.pc-webhook-status.is-active{background:#2ca56b}.pc-webhook-status.is-paused{background:#a7adb6}
.pc-webhook-main{display:grid;min-width:0;gap:6px}.pc-webhook-main code{overflow:hidden;width:max-content;max-width:100%;padding:4px 7px;border-radius:7px;background:#f5f6f8;color:#46515f;font-size:11px;text-overflow:ellipsis}
.pc-webhook-main small{color:#707a88;font-size:11px}
.pc-webhook-modal{max-width:760px}.pc-webhook-form{display:grid;gap:16px;max-height:min(70vh,720px);overflow:auto;padding:20px 22px}
.pc-webhook-form>label,.pc-webhook-form>div{display:grid;gap:7px}.pc-webhook-form label>span,.pc-webhook-label{color:#687281;font-size:11px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}
.pc-webhook-form input[type="text"],.pc-webhook-form input[type="url"],.pc-webhook-form input:not([type]){width:100%;min-height:40px;box-sizing:border-box;padding:8px 11px;border:1px solid #dce2e9;border-radius:10px;background:#fff;color:#252c37;font:inherit;font-size:13px;outline:none}
.pc-webhook-form input:focus{border-color:#e99138;box-shadow:0 0 0 3px rgba(233,145,56,.12)}.pc-webhook-form label>small{color:#7a8491;font-size:11px;line-height:1.45}
.pc-webhook-events{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.pc-webhook-event-group{display:grid;align-content:start;gap:8px;margin:0;padding:12px;border:1px solid #e1e5ea;border-radius:10px}
.pc-webhook-event-group legend{padding:0 5px;color:#4d5764;font-size:11px;font-weight:800}.pc-webhook-event-group label{display:grid!important;grid-template-columns:15px minmax(0,1fr)!important;gap:2px 8px!important;align-items:start;color:#505a67;font-size:12px;line-height:1.4}
.pc-webhook-event-group input{width:15px!important;height:15px!important;min-height:0!important;margin:1px 0 0;box-shadow:none!important}.pc-webhook-event-group code{grid-column:2;color:#8a929d;font-size:10px}
@media(max-width:720px){.pc-webhook-row{grid-template-columns:10px minmax(0,1fr);padding-left:16px;padding-right:16px}.pc-webhook-row .pc-oauth-client-actions{grid-column:1/-1}.pc-webhook-events{grid-template-columns:1fr}}

.pc-webhook-history-modal{max-width:920px}
.pc-webhook-history-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:16px 20px;border-bottom:1px solid #edf0f4;background:#fafbfc}
.pc-webhook-history-summary span{display:grid;gap:4px}.pc-webhook-history-summary small{color:#7b8490;font-size:10px;font-weight:750;text-transform:uppercase}.pc-webhook-history-summary strong{font-size:14px}.pc-webhook-history-summary strong.is-healthy{color:#25865a}.pc-webhook-history-summary strong.is-warning{color:#ad6a14}.pc-webhook-history-summary strong.is-failing{color:#b64942}.pc-webhook-history-summary strong.is-idle{color:#77808c}
.pc-webhook-delivery-list{display:grid;max-height:min(62vh,650px);overflow:auto}
.pc-webhook-delivery-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 20px;border-bottom:1px solid #edf0f4}
.pc-webhook-delivery-dot{width:9px;height:9px;border-radius:50%;background:#9099a5}.pc-webhook-delivery-dot.is-succeeded{background:#2ca56b}.pc-webhook-delivery-dot.is-failed{background:#c45149}.pc-webhook-delivery-dot.is-retry{background:#d28a2d}.pc-webhook-delivery-dot.is-processing{background:#5687c8}.pc-webhook-delivery-dot.is-pending{background:#9099a5}
.pc-webhook-delivery-main{display:grid;gap:5px;min-width:0}.pc-webhook-delivery-main>div{display:flex;align-items:center;gap:8px}.pc-webhook-delivery-main span{padding:2px 7px;border-radius:999px;background:#f1f3f6;color:#68717d;font-size:10px;font-weight:750}.pc-webhook-delivery-main span.is-succeeded{background:#eaf8f1;color:#27825a}.pc-webhook-delivery-main span.is-failed{background:#fff0ef;color:#ae4942}.pc-webhook-delivery-main span.is-retry{background:#fff6e8;color:#a76818}.pc-webhook-delivery-main small{overflow:hidden;color:#727c89;font-size:11px;text-overflow:ellipsis}.pc-webhook-delivery-main small.is-error{color:#af4b45}
.pc-webhook-delivery-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}
.pc-webhook-detail-modal{max-width:900px}.pc-webhook-detail-body{display:grid;gap:18px;max-height:min(70vh,720px);overflow:auto;padding:18px 20px}.pc-webhook-detail-body section{display:grid;gap:9px}.pc-webhook-detail-body h3{margin:0;color:#414a56;font-size:12px;text-transform:uppercase;letter-spacing:.05em}.pc-webhook-detail-body pre,.pc-webhook-attempt pre{max-width:100%;margin:0;padding:12px;border-radius:10px;background:#171b22;color:#e8edf4;font-size:11px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.pc-webhook-attempt{display:grid;gap:9px;padding:13px;border:1px solid #e1e5ea;border-radius:10px}.pc-webhook-attempt header{display:flex;justify-content:space-between;gap:10px}.pc-webhook-attempt header span{color:#717b88;font-size:11px}.pc-webhook-attempt p{margin:0;color:#af4b45;font-size:12px}.pc-webhook-attempt details{display:grid;gap:7px}.pc-webhook-attempt summary{cursor:pointer;color:#596473;font-size:11px;font-weight:700}
@media(max-width:820px){.pc-webhook-history-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.pc-webhook-delivery-row{grid-template-columns:10px minmax(0,1fr)}.pc-webhook-delivery-actions{grid-column:1/-1;justify-content:flex-start}}

.pc-webhook-history-summary strong.is-processing{color:#4f78aa}
