
/* Webhooks de saída (Integrações > Webhooks) e aba Apps. Fundo var(--bg), cards var(--card) 6px sem borda, acento #B8F6FD com texto #121635. */
#page-integrations .oh-wrap { max-width:1100px; width:100%; display:flex; flex-direction:column; gap:16px; }
#page-integrations .oh-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
#page-integrations .oh-title { font-size:16px; font-weight:700; color:#fff; margin:0 0 6px; }
#page-integrations .oh-sub { font-size:12px; color:var(--text-3); margin:0; line-height:1.5; max-width:620px; }
.oh-add, .oh-btn { height:36px; min-height:36px; padding:0 16px; border:none; border-radius:6px; background:var(--accent); color:#121635; font-size:13px; font-weight:600; font-family:inherit; cursor:pointer; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.oh-add:hover, .oh-btn:hover { background:var(--accent-hover); }
.oh-btn.ghost { background:transparent; color:#fff; box-shadow:inset 0 0 0 1px rgba(255,255,255,.18); }
.oh-btn.ghost:hover { background:rgba(255,255,255,.06); }
.oh-btn.danger { background:#f87171; color:#1a0505; }
.oh-btn:disabled, .oh-add:disabled { opacity:.55; cursor:default; }
#page-integrations .oh-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
#page-integrations .oh-stat { background:var(--card); border:0; border-radius:6px; padding:16px 20px; min-width:0; }
#page-integrations .oh-stat b { display:block; font-size:32px; font-weight:700; line-height:1.15; color:#fff; font-variant-numeric:tabular-nums; }
#page-integrations .oh-stat span { display:block; font-size:12px; color:#919eab; margin-top:4px; }
#page-integrations .oh-table { background:var(--card); border:0; border-radius:6px; overflow:visible; }
.oh-row { display:grid; grid-template-columns:minmax(120px,1.1fr) minmax(160px,1.8fr) minmax(150px,1.5fr) 84px 130px 44px; gap:12px; align-items:center; padding:12px 16px; min-height:56px; border-top:1px solid rgba(255,255,255,.06); font-size:13px; color:#fff; }
.oh-row.oh-h { border-top:0; min-height:44px; font-size:12px; font-weight:600; color:#919eab; }
.oh-cell { min-width:0; }
.oh-name { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.oh-url { color:#c8d0d8; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-family:'Space Mono',monospace; font-size:12px; }
.oh-evs { display:flex; flex-wrap:wrap; gap:4px; }
.oh-tag { font-size:11px; font-weight:600; color:#B8F6FD; background:rgba(184,246,253,.12); padding:2px 8px; border-radius:6px; white-space:nowrap; }
.oh-sw { width:40px; height:22px; border-radius:11px; border:0; background:#3a3f46; position:relative; cursor:pointer; padding:0; transition:background .15s; flex-shrink:0; }
.oh-sw::after { content:''; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; transition:transform .15s; }
.oh-sw[aria-checked="true"] { background:#B8F6FD; }
.oh-sw[aria-checked="true"]::after { transform:translateX(18px); background:#121635; }
.oh-sw:disabled { opacity:.5; cursor:default; }
#page-integrations .oh-sw { height:22px; min-height:22px; width:40px; }
#page-integrations .oh-cell.c-st { display:flex; align-items:center; }
/* barra de abas das Integrações: rola na horizontal (a pagina nao rola) para a aba Webhooks nunca ficar escondida */
#page-integrations .int-tabs { overflow-x:auto; scrollbar-width:none; }
#page-integrations .int-tabs::-webkit-scrollbar { display:none; }
#page-integrations .int-tabs > button { flex-shrink:0; }
@media (max-width:640px) { #page-integrations .int-tabs { padding:0 8px !important; } #page-integrations .int-tabs > button { padding:0 14px !important; } }
.oh-more { width:36px; height:36px; border:0; border-radius:6px; background:transparent; color:#c8d0d8; font-size:20px; line-height:1; cursor:pointer; font-family:inherit; }
.oh-more:hover { background:rgba(255,255,255,.08); color:#fff; }
.oh-empty { padding:40px 16px; text-align:center; color:#919eab; font-size:13px; display:flex; flex-direction:column; align-items:center; gap:14px; }
.oh-empty b { color:#fff; font-size:15px; }
.oh-menu { position:fixed; z-index:10050; min-width:180px; background:#1f1f1f; border-radius:6px; padding:6px; box-shadow:0 8px 32px rgba(0,0,0,.55); }
.oh-menu button { display:block; width:100%; text-align:left; height:36px; padding:0 12px; border:0; background:transparent; color:#fff; font-size:13px; font-family:inherit; border-radius:6px; cursor:pointer; }
.oh-menu button:hover { background:rgba(255,255,255,.08); }
.oh-menu button.danger { color:#f87171; }
.oh-ov { position:fixed; inset:0; z-index:10040; background:rgba(0,0,0,.6); display:none; align-items:center; justify-content:center; padding:16px; }
.oh-modal { background:var(--card); border-radius:6px; width:600px; max-width:100%; max-height:calc(100vh - 32px); display:flex; flex-direction:column; box-shadow:0 12px 48px rgba(0,0,0,.6); }
.oh-modal.sm { width:440px; }
.oh-mh { padding:18px 20px 8px; font-size:16px; font-weight:700; color:#fff; }
.oh-mb { padding:8px 20px 4px; overflow-y:auto; display:flex; flex-direction:column; gap:14px; overscroll-behavior:contain; }
.oh-mf { padding:16px 20px 20px; display:flex; justify-content:flex-end; gap:10px; }
.oh-mf .oh-btn.cancel { width:92px; padding:0; }
.oh-mf .oh-btn.save { width:75px; padding:0; }
.oh-f { display:flex; flex-direction:column; gap:6px; }
.oh-f > label, .oh-lab { font-size:12px; font-weight:600; color:#919eab; }
.oh-in { height:40px; padding:0 12px; background:#0a0a0a; border:1px solid rgba(255,255,255,.12); border-radius:6px; color:#fff; font-size:14px; font-family:inherit; width:100%; box-sizing:border-box; }
.oh-in:focus { outline:none; border-color:#B8F6FD; }
.oh-in[readonly] { color:#c8d0d8; font-family:'Space Mono',monospace; font-size:12px; }
.oh-chk { display:flex; align-items:center; gap:10px; min-height:36px; font-size:13px; color:#fff; cursor:pointer; }
.oh-chk input { width:18px; height:18px; accent-color:#B8F6FD; flex-shrink:0; }
.oh-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.oh-prods { max-height:150px; overflow-y:auto; background:#0a0a0a; border-radius:6px; padding:4px 12px; }
.oh-secret { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.oh-secret .oh-in { flex:1 1 220px; }
.oh-err { display:none; padding:10px 12px; border-radius:6px; background:rgba(248,113,113,.12); color:#fca5a5; font-size:13px; line-height:1.5; }
.oh-hint { font-size:12px; color:#919eab; line-height:1.5; }
.oh-note { padding:10px 12px; border-radius:6px; background:rgba(184,246,253,.1); color:#B8F6FD; font-size:13px; line-height:1.5; }
.oh-dr { position:fixed; top:0; right:0; bottom:0; width:400px; max-width:100%; z-index:10045; background:var(--card); box-shadow:-12px 0 48px rgba(0,0,0,.6); display:none; flex-direction:column; }
.oh-dr-h { padding:16px 16px 12px 20px; display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:16px; font-weight:700; color:#fff; }
.oh-dr-b { flex:1; overflow-y:auto; padding:0 20px 20px; display:flex; flex-direction:column; gap:10px; overscroll-behavior:contain; }
.oh-dl { background:#0a0a0a; border-radius:6px; padding:12px; display:flex; flex-direction:column; gap:6px; font-size:12px; color:#c8d0d8; }
.oh-dl-t { display:flex; align-items:center; justify-content:space-between; gap:8px; color:#fff; font-size:13px; font-weight:600; }
.oh-chip { font-size:11px; font-weight:700; padding:2px 8px; border-radius:6px; white-space:nowrap; }
.oh-chip.ok { background:rgba(74,222,128,.15); color:#4ade80; }
.oh-chip.pend { background:rgba(245,158,11,.15); color:#f59e0b; }
.oh-chip.bad { background:rgba(248,113,113,.15); color:#f87171; }
.oh-snip { font-family:'Space Mono',monospace; font-size:11px; color:#919eab; word-break:break-word; max-height:54px; overflow:hidden; }
.oh-x { width:36px; height:36px; border:0; border-radius:6px; background:transparent; color:#c8d0d8; font-size:22px; line-height:1; cursor:pointer; flex-shrink:0; }
.oh-x:hover { background:rgba(255,255,255,.08); color:#fff; }
@media (max-width:900px) { #page-integrations .oh-stats { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px) {
  #page-integrations .oh-stats { gap:10px; }
  #page-integrations .oh-stat b { font-size:26px; }
  .oh-row.oh-h { display:none; }
  .oh-row { grid-template-columns:1fr 44px; grid-template-areas:"nm mo" "ur ur" "ev ev" "st st" "ul ul"; gap:8px 12px; padding:14px 16px; }
  .oh-row .c-nm { grid-area:nm; } .oh-row .c-ur { grid-area:ur; } .oh-row .c-ev { grid-area:ev; } .oh-row .c-st { grid-area:st; } .oh-row .c-ul { grid-area:ul; } .oh-row .c-mo { grid-area:mo; }
  .oh-row .c-ul { font-size:12px; color:#919eab; }
  .oh-add { width:100%; height:44px; }
  .oh-ov { padding:0; align-items:stretch; }
  .oh-modal, .oh-modal.sm { width:100%; max-height:100%; border-radius:0; }
  .oh-modal.sm { margin:0; height:auto; border-radius:6px 6px 0 0; }
  .oh-ov.sm-ov { align-items:flex-end; }
  .oh-grid2 { grid-template-columns:1fr; }
  .oh-in { font-size:16px; height:44px; }
  .oh-btn, .oh-add { min-height:44px; height:44px; }
  .oh-mf .oh-btn.cancel, .oh-mf .oh-btn.save { width:auto; flex:1; }
  .oh-dr { width:100%; }
  .oh-more { width:44px; height:44px; }
  .oh-menu button { height:44px; }
}
