/* Compact endpoint editor inspired by webhook.site's inspector UI. */
#Edit_receiver.modal { padding: 0; background: transparent; }
#Edit_receiver .br-webhook-dialog {
  width: min(680px, calc(100% - 24px));
  max-width: 680px;
  margin: 9vh auto 24px;
}
#Edit_receiver .modal-content {
  overflow: hidden;
  border: 1px solid #cfd5de;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(12, 17, 29, 0.24);
}
#Edit_receiver .modal-header {
  min-height: 66px;
  padding: 13px 18px;
  border-bottom: 1px solid #dfe3ea;
  background: #f7f8fa;
}
.br-dialog-heading { display: flex; min-width: 0; align-items: center; gap: 11px; }
.br-dialog-heading > div { min-width: 0; }
.br-dialog-heading > div > span {
  display: block;
  margin-bottom: 2px;
  color: #687184;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.br-dialog-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid #c8dfda;
  border-radius: 4px;
  background: #e5f4f1;
  color: #147d72;
}
#Edit_receiver .modal-title { margin: 0; color: #151923; font-size: 16px; line-height: 1.2; }
#Edit_receiver .close {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #687184;
  font-size: 22px;
  opacity: 1;
}
#Edit_receiver .close:hover { border-color: #dfe3ea; background: #fff; color: #151923; }
#Edit_receiver .modal-body { padding: 0; }
#receiver-edit-form { padding: 18px; }
.br-endpoint-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -18px -18px 18px;
  padding: 9px 18px;
  border-bottom: 1px solid #eceff3;
  background: #fbfcfd;
  color: #596274;
  font-size: 11px;
}
.br-endpoint-state span { font-weight: 700; text-transform: uppercase; }
.br-endpoint-state i { margin-right: 6px; color: #23845f; font-size: 7px; }
.br-endpoint-state code { color: #687184; font-size: 11px; }
#receiver-edit-form .br-form-field + .br-form-field { margin-top: 17px; }
.br-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.br-label-row label { margin: 0; color: #2b3240; font-size: 12px; font-weight: 700; }
.br-label-row span { color: #8991a0; font-size: 10px; text-transform: uppercase; }
.br-input-shell { position: relative; }
.br-input-shell > i {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  color: #8991a0;
  font-size: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}
#receiver-edit-form .form-control {
  height: 40px;
  padding: 8px 12px 8px 34px;
  border: 1px solid #cfd5de;
  border-radius: 3px;
  background: #fff;
  color: #151923;
  font-family: inherit;
  font-size: 13px;
  box-shadow: none;
}
#receiver-edit-form .form-control:focus {
  border-color: #147d72;
  box-shadow: 0 0 0 2px rgba(20, 125, 114, 0.13);
}
#receiver-edit-form .form-control.is-invalid { border-color: #c5454d; }
.br-field-error { display: block; min-height: 16px; margin-top: 5px; color: #b4232d; font-size: 11px; }
.br-reroute-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  margin: 3px 0 0;
  padding: 12px;
  border: 1px solid #d7dde5;
  border-radius: 4px;
  background: #f8fafb;
  cursor: pointer;
}
.br-reroute-option input { position: absolute; opacity: 0; pointer-events: none; }
.br-switch {
  position: relative;
  width: 34px;
  height: 18px;
  margin-top: 1px;
  border-radius: 9px;
  background: #aeb6c2;
  transition: background 140ms ease;
}
.br-switch span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(12, 17, 29, 0.2);
  transition: transform 140ms ease;
}
.br-reroute-option input:checked + .br-switch { background: #147d72; }
.br-reroute-option input:checked + .br-switch span { transform: translateX(16px); }
.br-reroute-option:focus-within { border-color: #147d72; box-shadow: 0 0 0 2px rgba(20, 125, 114, 0.13); }
.br-reroute-copy strong,
.br-reroute-copy small { display: block; }
.br-reroute-copy strong { color: #2b3240; font-size: 12px; }
.br-reroute-copy small { margin-top: 3px; color: #687184; font-size: 10px; line-height: 1.45; }
.br-reroute-option.is-disabled { cursor: not-allowed; opacity: 0.55; }
.br-reroute-recovery {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d7dde5;
  background: #fff;
}
.br-reroute-recovery.has-work { border-color: #e5b15b; background: #fffaf1; }
.br-reroute-recovery-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #cfd5de;
  color: #147d72;
}
.br-reroute-recovery.has-work .br-reroute-recovery-icon {
  border-color: #e5b15b;
  color: #9a5b00;
}
.br-reroute-recovery-copy strong,
.br-reroute-recovery-copy small { display: block; }
.br-reroute-recovery-copy strong { color: #2b3240; font-size: 12px; }
.br-reroute-recovery-copy small { margin-top: 3px; color: #687184; font-size: 10px; line-height: 1.45; }
.br-reroute-recovery-action {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 6px 10px;
  border: 0;
  border-radius: 3px;
  background: #147d72;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.br-reroute-recovery-action:hover { background: #0f665e; }
.br-reroute-recovery-action:disabled { cursor: wait; opacity: 0.7; }
.br-dialog-alert {
  margin: 0 0 15px;
  padding: 9px 11px;
  border-left: 3px solid #c5454d;
  background: #fcebed;
  color: #8e2730;
  font-size: 12px;
}
.br-dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 20px -18px -18px;
  padding: 13px 18px;
  border-top: 1px solid #dfe3ea;
  background: #f7f8fa;
}
.br-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 13px;
  border: 1px solid #cfd5de;
  border-radius: 3px;
  background: #fff;
  color: #343b49;
  font-size: 12px;
  font-weight: 700;
}
.br-button:hover { border-color: #aeb6c2; color: #151923; }
.br-button.is-primary { border-color: #147d72; background: #147d72; color: #fff; }
.br-button.is-primary:hover { border-color: #0e695f; background: #0e695f; color: #fff; }
.br-button.is-loading { cursor: wait; opacity: 0.7; }
.br-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  display: flex;
  max-width: min(380px, calc(100vw - 32px));
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border: 1px solid #b8d9ce;
  border-radius: 4px;
  background: #fff;
  color: #1f5f49;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(12, 17, 29, 0.16);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.br-toast.is-visible { opacity: 1; transform: translateY(0); }
@media (max-width: 575px) {
  #Edit_receiver .br-webhook-dialog { width: calc(100% - 16px); margin: 8px auto; }
  #Edit_receiver .modal-content { max-height: calc(100vh - 16px); }
}
