.webhook-tab-container {
    background: #f8f9fb;
    padding: 12px 8px;
}
.webhook-tab-header {
    margin-bottom: 12px;
}
.webhook-tab-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}
.webhook-tab-subtitle {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    max-width: 720px;
}
.webhook-tab-actions .md-button {
    min-width: 150px;
}
.webhook-empty {
    background: #fff;
    border: 1px dashed #d1d5db;
    color: #6b7280;
    padding: 18px;
    text-align: center;
    border-radius: 8px;
}
.webhook-card {
    margin-bottom: 12px;
}
.webhook-card md-card-content {
    padding: 16px;
}
.webhook-card-info {
    color: #111827;
}
.webhook-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.webhook-id {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
}
.webhook-id-text {
    margin-left: 10px;
}
.webhook-id i {
    margin: 0 6px;
}
.webhook-url {
    font-size: 13px;
    color: #2563eb;
    word-break: break-all;
}
.webhook-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.webhook-test-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.webhook-test-link.is-loading {
    pointer-events: none;
    opacity: 0.65;
}
.webhook-test-link .fa-spinner {
    margin-right: 6px;
}
.webhook-test-link:hover {
    text-decoration: underline;
}
.webhook-menu .md-button.md-icon-button {
    background: #eef2f7;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    line-height: 36px;
    padding: 0;
}
.webhook-dialog .md-toolbar-tools h2 {
    font-size: 18px;
    font-weight: 600;
}
.webhook-dialog-body md-input-container {
    margin-bottom: 6px;
}
.webhook-dialog-actions {
    padding: 12px 24px;
}
.webhook-tab-copy {
    max-width: 720px;
}
.webhook-status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.webhook-status-pill.status-active {
    background: #16a34a;
}
.webhook-status-pill.status-inactive {
    background: #9ca3af;
}
.webhook-card-inactive {
    opacity: 0.78;
}
.webhook-events {
    font-size: 12px;
    color: #4b5563;
    margin-top: 6px;
}
.webhook-setting-card {
    border: 1px solid #e5e7eb;
}
.webhook-setting {
    gap: 12px;
}
.webhook-setting + .webhook-setting {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}
.webhook-setting-left {
    gap: 12px;
    flex: 1 1 auto;
}
.webhook-setting-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.webhook-setting-copy {
    max-width: 520px;
}
.webhook-setting-title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}
.webhook-setting-subtitle {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}
.webhook-setting-actions {
    gap: 6px;
    min-width: 120px;
}
.webhook-setting-actions md-switch {
    margin: 0;
}
.webhook-setting-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.webhook-setting-status.status-enabled {
    background: #10b981;
    color: #fff;
}
.webhook-setting-status.status-disabled {
    background: #e5e7eb;
    color: #6b7280;
}
.webhook-logs-split {
    display: flex;
    gap: 16px;
    align-items: stretch;
    margin-top: 12px;
}
.webhook-logs-list {
    flex: 1 1 62%;
    min-width: 480px;
    display: flex;
    flex-direction: column;
}
.webhook-logs-table {
    flex: 1 1 auto;
    max-height: 60vh;
    overflow: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}
.webhook-logs-table table {
    margin-bottom: 0;
}
.webhook-logs-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f3f4f6;
}
.webhook-logs-details {
    flex: 1 1 38%;
    min-width: 320px;
    max-height: 60vh;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
}
.webhook-logs-details-header {
    margin-bottom: 8px;
}
.webhook-logs-details-body {
    flex: 1 1 auto;
    overflow: auto;
}
.webhook-logs-detail-card {
    box-shadow: none;
    margin: 0;
}
.webhook-logs-details-empty {
    color: #6b7280;
    font-size: 13px;
    padding: 4px;
}
.webhook-logs-pagination {
    margin-top: 8px;
}
.webhook-log-active,
.webhook-logs-table .table-striped > tbody > tr.webhook-log-active > td {
    background: #eff6ff;
}
.webhook-health-bar {
    margin-top: 10px;
    gap: 10px;
    flex-wrap: wrap;
}
.webhook-health-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: 12px;
    color: #111827;
}
.webhook-health-label {
    font-weight: 600;
}
.webhook-health-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}
.webhook-health-meta {
    color: #6b7280;
    font-size: 11px;
}
.webhook-health-loading {
    color: #6b7280;
    font-size: 12px;
    margin-right: 6px;
}
.health-ok {
    background: #16a34a;
}
.health-degraded {
    background: #f59e0b;
}
.health-down {
    background: #dc2626;
}
.health-unknown {
    background: #9ca3af;
}
.webhook-logs-full .webhook-logs-list {
    flex: 1 1 100%;
    min-width: 0;
}
@media (max-width: 1100px) {
    .webhook-logs-split {
        flex-direction: column;
    }
    .webhook-logs-list,
    .webhook-logs-details {
        min-width: 0;
        max-height: none;
    }
    .webhook-logs-table {
        max-height: 50vh;
    }
}
.md-menu-backdrop {
    z-index: 1500 !important;
}
.md-open-menu-container {
    z-index: 1501 !important;
}
