/* SGW V464 - CSS consolidado V459..V463 */

/* ===== SOURCE: sgw_disparador_site_config_v459.css ===== */
html.sgw459-disparador,html.sgw459-site,html.sgw459-config{
--v459-bg:#020b19;--v459-panel:#061a33;--v459-panel2:#071f3b;--v459-line:#17466f;
--v459-text:#eaf4ff;--v459-muted:#86a4c7;--v459-blue:#1677ff;--v459-green:#19ce7a;
--v459-red:#ff4f62;--v459-amber:#ffb11b}
html.sgw459-disparador body,html.sgw459-disparador main,html.sgw459-disparador .content-area,
html.sgw459-site body,html.sgw459-site main,html.sgw459-site .content-area,
html.sgw459-config body,html.sgw459-config main,html.sgw459-config .content-area{
background:radial-gradient(circle at 90% 0,rgba(22,119,255,.08),transparent 28%),linear-gradient(180deg,#031024 0%,var(--v459-bg) 100%)!important;color:var(--v459-text)!important}
html.sgw459-config-dashboard .sgw458-editor,html.sgw459-config-dashboard .sgw458-editor *{box-sizing:border-box}
html.sgw459-disparador main h1,html.sgw459-disparador main h2,html.sgw459-disparador main h3,
html.sgw459-site main h1,html.sgw459-site main h2,html.sgw459-site main h3,
html.sgw459-config main h1,html.sgw459-config main h2,html.sgw459-config main h3{color:#f6faff!important}
html.sgw459-disparador main p,html.sgw459-disparador main small,html.sgw459-disparador main label,
html.sgw459-site main p,html.sgw459-site main small,html.sgw459-site main label,
html.sgw459-config main p,html.sgw459-config main small,html.sgw459-config main label{color:var(--v459-muted)!important}

html.sgw459-disparador main .card,html.sgw459-disparador main .panel,html.sgw459-disparador main .box,
html.sgw459-disparador main section[class*="card"],html.sgw459-disparador main div[class*="card"],
html.sgw459-site main .card,html.sgw459-site main .panel,html.sgw459-site main .box,
html.sgw459-site main section[class*="card"],html.sgw459-site main div[class*="card"],
html.sgw459-config:not(.sgw459-config-dashboard) main .card,
html.sgw459-config:not(.sgw459-config-dashboard) main .panel,
html.sgw459-config:not(.sgw459-config-dashboard) main .box,
html.sgw459-config:not(.sgw459-config-dashboard) main section[class*="card"],
html.sgw459-config:not(.sgw459-config-dashboard) main div[class*="card"]{
background:linear-gradient(180deg,var(--v459-panel2),var(--v459-panel))!important;color:var(--v459-text)!important;border:1px solid var(--v459-line)!important;box-shadow:0 13px 34px rgba(0,0,0,.17)!important}

html.sgw459-disparador main input:not([type=checkbox]):not([type=radio]),html.sgw459-disparador main select,html.sgw459-disparador main textarea,
html.sgw459-site main input:not([type=checkbox]):not([type=radio]),html.sgw459-site main select,html.sgw459-site main textarea,
html.sgw459-config:not(.sgw459-config-dashboard) main input:not([type=checkbox]):not([type=radio]),
html.sgw459-config:not(.sgw459-config-dashboard) main select,
html.sgw459-config:not(.sgw459-config-dashboard) main textarea{
background:#041a34!important;color:#f1f8ff!important;border:1px solid #1a507f!important;box-shadow:none!important}
html.sgw459-disparador main input::placeholder,html.sgw459-site main input::placeholder,html.sgw459-config main input::placeholder,
html.sgw459-disparador main textarea::placeholder,html.sgw459-site main textarea::placeholder,html.sgw459-config main textarea::placeholder{color:#6f8ead!important;opacity:1!important}

html.sgw459-disparador main button,html.sgw459-disparador main .btn,
html.sgw459-site main button,html.sgw459-site main .btn,
html.sgw459-config:not(.sgw459-config-dashboard) main button,html.sgw459-config:not(.sgw459-config-dashboard) main .btn{border-radius:9px!important}
html.sgw459-disparador main .btn-primary,html.sgw459-site main .btn-primary,
html.sgw459-config:not(.sgw459-config-dashboard) main .btn-primary{background:linear-gradient(135deg,#0b5fd7,#1677ff)!important;color:#fff!important;border-color:#2c87ff!important}
html.sgw459-disparador main .btn-success,html.sgw459-site main .btn-success,
html.sgw459-config:not(.sgw459-config-dashboard) main .btn-success{background:#0f7b4b!important;color:#fff!important;border-color:#1aa76a!important}
html.sgw459-disparador main .btn-danger,html.sgw459-site main .btn-danger,
html.sgw459-config:not(.sgw459-config-dashboard) main .btn-danger{background:#8f2333!important;color:#fff!important;border-color:#c6364c!important}

html.sgw459-disparador main table,html.sgw459-site main table,html.sgw459-config:not(.sgw459-config-dashboard) main table{
width:100%;border-collapse:separate!important;border-spacing:0!important;background:var(--v459-panel)!important;color:var(--v459-text)!important;border:1px solid var(--v459-line)!important;border-radius:12px!important;overflow:hidden!important}
html.sgw459-disparador main table thead th,html.sgw459-site main table thead th,html.sgw459-config:not(.sgw459-config-dashboard) main table thead th{
background:#0a2a4e!important;color:#c4e1ff!important;border-color:#1b4a76!important;font-weight:800!important}
html.sgw459-disparador main table tbody td,html.sgw459-site main table tbody td,html.sgw459-config:not(.sgw459-config-dashboard) main table tbody td{
background:#061a33!important;color:#dcecff!important;border-color:#12395f!important}
html.sgw459-disparador main table tbody tr:nth-child(even) td,html.sgw459-site main table tbody tr:nth-child(even) td,
html.sgw459-config:not(.sgw459-config-dashboard) main table tbody tr:nth-child(even) td{background:#071f3b!important}

html.sgw459-disparo-massa main,html.sgw459-lembrete main,html.sgw459-site-provedor main,
html.sgw459-site-bloqueio main,html.sgw459-site-pendencia main,html.sgw459-config:not(.sgw459-config-dashboard) main{padding:22px 28px 34px!important}
html.sgw459-disparo-massa main>*,html.sgw459-lembrete main>*,html.sgw459-site-provedor main>*,
html.sgw459-site-bloqueio main>*,html.sgw459-site-pendencia main>*,html.sgw459-config:not(.sgw459-config-dashboard) main>*{max-width:1480px;margin-left:auto;margin-right:auto}

html.sgw459-disparo-massa main [class*="live"],html.sgw459-disparo-massa main [class*="envio"],html.sgw459-disparo-massa main [class*="fila"],
html.sgw459-disparo-massa main [class*="schedule"],html.sgw459-disparo-massa main [class*="agend"],
html.sgw459-lembrete main [class*="message"],html.sgw459-lembrete main [class*="mensagem"],
html.sgw459-lembrete main [class*="schedule"],html.sgw459-lembrete main [class*="sync"],html.sgw459-lembrete main [class*="histor"]{
background:#071c38!important;border-color:#17466f!important;color:#eaf4ff!important}
html.sgw459-disparo-massa main [class*="log"],html.sgw459-lembrete main code,html.sgw459-lembrete main pre{
background:#031427!important;color:#a8c8e8!important;border-color:#17466f!important}

html.sgw459-site main [class*="editor"],html.sgw459-site main [class*="preview"],html.sgw459-site main [class*="page"],html.sgw459-site main [class*="template"]{border-color:#17466f!important}
html.sgw459-site main div[class*="editor"],html.sgw459-site main div[class*="page"],html.sgw459-site main div[class*="template"]{
background:#071c38!important;color:#eaf4ff!important}
html.sgw459-site main iframe{background:#fff;border:1px solid #17466f!important;border-radius:10px}
html.sgw459-site main [class*="code"],html.sgw459-site main pre,html.sgw459-site main code{
background:#031427!important;color:#83c0ff!important;border-color:#17466f!important}

html.sgw459-config:not(.sgw459-config-dashboard) main [class*="settings"],
html.sgw459-config:not(.sgw459-config-dashboard) main [class*="config"],
html.sgw459-config:not(.sgw459-config-dashboard) main [class*="section"]{border-color:#17466f!important}
html.sgw459-config:not(.sgw459-config-dashboard) main div[class*="settings"],
html.sgw459-config:not(.sgw459-config-dashboard) main div[class*="config"],
html.sgw459-config:not(.sgw459-config-dashboard) main div[class*="section"]{background:#071c38!important;color:#eaf4ff!important}
html.sgw459-codigo main pre,html.sgw459-codigo main code,html.sgw459-codigo main textarea,
html.sgw459-log main pre,html.sgw459-log main code,html.sgw459-log main [class*="log"]{
background:#031427!important;color:#8bc5ff!important;border-color:#17466f!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important}

html.sgw459-disparador .modal-content,html.sgw459-site .modal-content,html.sgw459-config .modal-content{
background:linear-gradient(180deg,#081e3a,#05152c)!important;color:#eaf4ff!important;border:1px solid #1a4c78!important;box-shadow:0 24px 65px rgba(0,0,0,.42)!important}
html.sgw459-disparador .modal-header,html.sgw459-disparador .modal-footer,
html.sgw459-site .modal-header,html.sgw459-site .modal-footer,
html.sgw459-config .modal-header,html.sgw459-config .modal-footer{background:#071b35!important;border-color:#18436d!important}

html.sgw459-disparador main div[style*="background:#fff"],html.sgw459-disparador main div[style*="background: #fff"],
html.sgw459-site main div[style*="background:#fff"]:not([class*="preview"]),html.sgw459-site main div[style*="background: #fff"]:not([class*="preview"]),
html.sgw459-config:not(.sgw459-config-dashboard) main div[style*="background:#fff"],html.sgw459-config:not(.sgw459-config-dashboard) main div[style*="background: #fff"]{
background:#071b35!important;color:#eaf4ff!important;border-color:#17456f!important}

@media(max-width:900px){
html.sgw459-disparo-massa main,html.sgw459-lembrete main,html.sgw459-site-provedor main,
html.sgw459-site-bloqueio main,html.sgw459-site-pendencia main,html.sgw459-config:not(.sgw459-config-dashboard) main{padding:14px 12px 28px!important}
}


/* ===== SOURCE: sgw_final_ui_v460.css ===== */
/* ==========================================================
 SGW V460 - REVISAO VISUAL GLOBAL FINAL
 ========================================================== */
html.sgw460-final-ui{
  --sgw460-bg:#020b19;
  --sgw460-panel:#061a33;
  --sgw460-panel2:#071f3b;
  --sgw460-panel3:#0a294b;
  --sgw460-line:#17466f;
  --sgw460-line2:#225a86;
  --sgw460-text:#eaf4ff;
  --sgw460-muted:#86a4c7;
  --sgw460-blue:#1677ff;
  --sgw460-blue2:#2f8cff;
  --sgw460-green:#19ce7a;
  --sgw460-red:#ff4f62;
  --sgw460-amber:#ffb11b;
}

/* Fundo global do painel */
html.sgw460-final-ui:not(.sgw460-preserve-map) body,
html.sgw460-final-ui:not(.sgw460-preserve-map) main,
html.sgw460-final-ui:not(.sgw460-preserve-map) .content-area{
  background:
    radial-gradient(circle at 90% 0,rgba(22,119,255,.07),transparent 30%),
    linear-gradient(180deg,#031024 0%,var(--sgw460-bg) 100%) !important;
  color:var(--sgw460-text) !important;
}

/* Tipografia final */
html.sgw460-final-ui main h1,
html.sgw460-final-ui main h2,
html.sgw460-final-ui main h3,
html.sgw460-final-ui main h4,
html.sgw460-final-ui main h5{
  color:#f6faff !important;
  letter-spacing:-.01em;
}
html.sgw460-final-ui main p,
html.sgw460-final-ui main small,
html.sgw460-final-ui main label{
  color:var(--sgw460-muted);
}

/* Cards/painéis globais, exceto editor real e mapa */
html.sgw460-final-ui:not(.sgw460-preserve-map):not(.sgw460-preserve-editor) main .card,
html.sgw460-final-ui:not(.sgw460-preserve-map):not(.sgw460-preserve-editor) main .panel,
html.sgw460-final-ui:not(.sgw460-preserve-map):not(.sgw460-preserve-editor) main .box,
html.sgw460-final-ui:not(.sgw460-preserve-map):not(.sgw460-preserve-editor) main .content-card,
html.sgw460-final-ui:not(.sgw460-preserve-map):not(.sgw460-preserve-editor) main .summary-card,
html.sgw460-final-ui:not(.sgw460-preserve-map):not(.sgw460-preserve-editor) main .metric-card,
html.sgw460-final-ui:not(.sgw460-preserve-map):not(.sgw460-preserve-editor) main .table-card{
  background:linear-gradient(180deg,var(--sgw460-panel2),var(--sgw460-panel)) !important;
  color:var(--sgw460-text) !important;
  border:1px solid var(--sgw460-line) !important;
  border-radius:12px !important;
  box-shadow:0 12px 32px rgba(0,0,0,.17) !important;
}

/* Fix automático só para superfícies brancas detectadas dentro do painel */
html.sgw460-final-ui:not(.sgw460-preserve-map):not(.sgw460-preserve-editor) .sgw460-white-fix{
  background:linear-gradient(180deg,#071c38,#05162e) !important;
  color:var(--sgw460-text) !important;
  border-color:var(--sgw460-line) !important;
}
html.sgw460-final-ui .sgw460-white-fix h1,
html.sgw460-final-ui .sgw460-white-fix h2,
html.sgw460-final-ui .sgw460-white-fix h3,
html.sgw460-final-ui .sgw460-white-fix h4,
html.sgw460-final-ui .sgw460-white-fix strong,
html.sgw460-final-ui .sgw460-white-fix b{
  color:#f4f9ff !important;
}
html.sgw460-final-ui .sgw460-white-fix p,
html.sgw460-final-ui .sgw460-white-fix span,
html.sgw460-final-ui .sgw460-white-fix small{
  color:#a8bfd7;
}

/* Tabelas */
html.sgw460-final-ui:not(.sgw460-preserve-map) .sgw460-table{
  width:100%;
  border-collapse:separate !important;
  border-spacing:0 !important;
  background:var(--sgw460-panel) !important;
  color:var(--sgw460-text) !important;
  border:1px solid var(--sgw460-line) !important;
  border-radius:12px !important;
  overflow:hidden !important;
}
html.sgw460-final-ui .sgw460-table thead th{
  background:#0a2a4e !important;
  color:#c7e3ff !important;
  border-color:#1a4a76 !important;
  font-weight:800 !important;
}
html.sgw460-final-ui .sgw460-table tbody td{
  background:#061a33 !important;
  color:#dcecff !important;
  border-color:#12395f !important;
}
html.sgw460-final-ui .sgw460-table tbody tr:nth-child(even) td{
  background:#071f3b !important;
}
html.sgw460-final-ui .sgw460-table tbody tr:hover td{
  background:#0a2a4d !important;
}

/* Campos */
html.sgw460-final-ui:not(.sgw460-preserve-editor) .sgw460-field{
  background:#041a34 !important;
  color:#f1f8ff !important;
  border:1px solid #1a507f !important;
  box-shadow:none !important;
}
html.sgw460-final-ui:not(.sgw460-preserve-editor) .sgw460-field:focus{
  border-color:#2b8bff !important;
  box-shadow:0 0 0 3px rgba(43,139,255,.12) !important;
  outline:none !important;
}
html.sgw460-final-ui .sgw460-field::placeholder{
  color:#6f8ead !important;
  opacity:1 !important;
}

/* Modais */
html.sgw460-final-ui .sgw460-modal{
  background:linear-gradient(180deg,#081e3a,#05152c) !important;
  color:#eaf4ff !important;
  border:1px solid #1a4c78 !important;
  box-shadow:0 24px 65px rgba(0,0,0,.42) !important;
}

/* Scrollbar */
html.sgw460-final-ui *{
  scrollbar-width:thin;
  scrollbar-color:#1b5b93 #041326;
}
html.sgw460-final-ui *::-webkit-scrollbar{width:8px;height:8px}
html.sgw460-final-ui *::-webkit-scrollbar-track{background:#041326}
html.sgw460-final-ui *::-webkit-scrollbar-thumb{background:#1b5b93;border-radius:10px}

/* ==========================================================
 TOPO - TODOS OS ITENS VISIVEIS
 ========================================================== */
#sgw450TopShell.sgw460-top-shell{
  width:100%;
  max-width:100%;
  overflow:hidden;
}
#sgw450TopShell .sgw460-topnav{
  display:flex !important;
  align-items:center !important;
  min-width:0 !important;
  max-width:100% !important;
  gap:clamp(2px,.45vw,8px) !important;
  overflow:visible !important;
}
#sgw450TopShell .sgw460-nav-item{
  min-width:0 !important;
  flex:0 1 auto !important;
  white-space:nowrap !important;
  padding-left:clamp(4px,.55vw,10px) !important;
  padding-right:clamp(4px,.55vw,10px) !important;
  font-size:clamp(8px,.74vw,11px) !important;
}
#sgw450TopShell.sgw460-nav-compact .sgw460-nav-item{
  padding-left:4px !important;
  padding-right:4px !important;
  font-size:8.5px !important;
}
#sgw450TopShell.sgw460-nav-compact .sgw460-nav-item svg,
#sgw450TopShell.sgw460-nav-compact .sgw460-nav-item i{
  transform:scale(.88);
}
#sgw450TopShell.sgw460-nav-ultra .sgw460-topnav{
  gap:1px !important;
}
#sgw450TopShell.sgw460-nav-ultra .sgw460-nav-item{
  padding-left:2px !important;
  padding-right:2px !important;
  font-size:7.7px !important;
  letter-spacing:-.03em !important;
}

/* Mantém logo compacto para liberar espaço */
#sgw450TopShell.sgw460-nav-compact [class*="brand"],
#sgw450TopShell.sgw460-nav-compact [class*="logo"]{
  max-width:180px !important;
}
#sgw450TopShell.sgw460-nav-ultra [class*="brand"],
#sgw450TopShell.sgw460-nav-ultra [class*="logo"]{
  max-width:150px !important;
}

/* Botões e badges */
html.sgw460-final-ui main .btn,
html.sgw460-final-ui main button{
  border-radius:9px;
}
html.sgw460-final-ui main .btn-primary,
html.sgw460-final-ui main button.primary{
  background:linear-gradient(135deg,#0b5fd7,#1677ff) !important;
  color:#fff !important;
  border-color:#2c87ff !important;
}
html.sgw460-final-ui main .btn-success{
  background:#0f7b4b !important;
  color:#fff !important;
}
html.sgw460-final-ui main .btn-danger{
  background:#8f2333 !important;
  color:#fff !important;
}
html.sgw460-final-ui main .badge,
html.sgw460-final-ui main [class*="badge"]{
  border-radius:999px;
}

/* Status */
html.sgw460-final-ui main .online,
html.sgw460-final-ui main .success{
  color:#69f0aa;
}
html.sgw460-final-ui main .offline,
html.sgw460-final-ui main .danger,
html.sgw460-final-ui main .critical{
  color:#ff8996;
}
html.sgw460-final-ui main .warning{
  color:#ffd773;
}

/* Editor V458 preservado */
html.sgw460-preserve-editor .sgw458-editor,
html.sgw460-preserve-editor .sgw458-editor *{
  box-sizing:border-box;
}

/* Mapa preservado */
html.sgw460-preserve-map .leaflet-container,
html.sgw460-preserve-map .leaflet-pane,
html.sgw460-preserve-map .leaflet-control,
html.sgw460-preserve-map .leaflet-popup,
html.sgw460-preserve-map .leaflet-popup-content-wrapper,
html.sgw460-preserve-map .leaflet-popup-tip{
  color:initial;
}

/* Responsivo */
@media(max-width:1000px){
  #sgw450TopShell .sgw460-topnav{
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scrollbar-width:none;
  }
  #sgw450TopShell .sgw460-topnav::-webkit-scrollbar{display:none}
  #sgw450TopShell .sgw460-nav-item{
    flex:0 0 auto !important;
  }
}


/* ===== SOURCE: sgw_nav_final_v461.css ===== */
/* ==========================================================
 SGW V461 - MENU / SUBMENUS / RESPONSIVO FINAL
 ========================================================== */

html.sgw461-nav-final{
  --sgw461-bg:#061a33;
  --sgw461-bg2:#08213e;
  --sgw461-line:#17466f;
  --sgw461-text:#dcecff;
  --sgw461-muted:#86a4c7;
  --sgw461-blue:#1677ff;
}

/* O V460 usava overflow hidden no shell.
   V461 libera dropdown sem perder compactação horizontal. */
html.sgw461-nav-final #sgw450TopShell.sgw461-top-shell{
  overflow:visible !important;
  position:relative !important;
  z-index:99980 !important;
}

html.sgw461-nav-final #sgw450TopShell .sgw461-topnav{
  position:relative !important;
  z-index:99981 !important;
  min-width:0 !important;
  max-width:100% !important;
}

/* Cada host de submenu precisa ser relativo */
html.sgw461-nav-final #sgw450TopShell .sgw461-menu-host{
  position:relative !important;
}

/* Dropdown base */
html.sgw461-nav-final #sgw450TopShell .sgw461-menu{
  position:absolute !important;
  top:calc(100% + 7px) !important;
  left:0;
  right:auto;
  z-index:99999 !important;

  min-width:210px !important;
  max-width:min(360px,calc(100vw - 16px)) !important;
  max-height:min(70vh,620px);

  padding:7px !important;
  margin:0 !important;

  background:
    linear-gradient(180deg,#08213e,#05162e) !important;
  border:1px solid #1a527f !important;
  border-radius:11px !important;
  box-shadow:
    0 22px 55px rgba(0,0,0,.46),
    0 0 0 1px rgba(47,140,255,.05) inset !important;

  overflow-y:auto;
  overflow-x:hidden;

  color:var(--sgw461-text) !important;
}

/* itens submenu */
html.sgw461-nav-final #sgw450TopShell .sgw461-menu a,
html.sgw461-nav-final #sgw450TopShell .sgw461-menu button{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;

  width:100% !important;
  min-height:34px !important;
  padding:7px 9px !important;

  border:0 !important;
  border-radius:7px !important;
  background:transparent !important;

  color:#bcd7f3 !important;
  font-size:10px !important;
  font-weight:650 !important;
  line-height:1.2 !important;

  white-space:normal !important;
  text-align:left !important;
  text-decoration:none !important;
}

html.sgw461-nav-final #sgw450TopShell .sgw461-menu a:hover,
html.sgw461-nav-final #sgw450TopShell .sgw461-menu button:hover{
  background:#0a2c50 !important;
  color:#fff !important;
}

html.sgw461-nav-final #sgw450TopShell .sgw461-menu a.sgw461-active{
  background:
    linear-gradient(135deg,rgba(22,119,255,.25),rgba(22,119,255,.08)) !important;
  color:#8fc6ff !important;
  box-shadow:0 0 0 1px rgba(47,140,255,.26) inset !important;
}

/* Item principal ativo */
html.sgw461-nav-final #sgw450TopShell .sgw461-trigger.sgw461-active,
html.sgw461-nav-final #sgw450TopShell .sgw461-active{
  color:#fff !important;
}

/* compactação desktop */
html.sgw461-nav-final #sgw450TopShell.sgw461-compact .sgw460-nav-item,
html.sgw461-nav-final #sgw450TopShell.sgw461-compact .sgw461-trigger{
  padding-left:4px !important;
  padding-right:4px !important;
  font-size:8.4px !important;
}

html.sgw461-nav-final #sgw450TopShell.sgw461-ultra .sgw460-nav-item,
html.sgw461-nav-final #sgw450TopShell.sgw461-ultra .sgw461-trigger{
  padding-left:2px !important;
  padding-right:2px !important;
  font-size:7.6px !important;
  letter-spacing:-.025em !important;
}

/* Evita dropdown ser cortado por containers ancestrais */
html.sgw461-nav-final #sgw450TopShell,
html.sgw461-nav-final #sgw450TopShell > *,
html.sgw461-nav-final #sgw450TopShell header,
html.sgw461-nav-final #sgw450TopShell nav{
  overflow-y:visible !important;
}

/* Mobile / tablet */
@media(max-width:1100px){
  html.sgw461-nav-final #sgw450TopShell.sgw461-top-shell{
    overflow:visible !important;
  }

  html.sgw461-nav-final #sgw450TopShell .sgw461-topnav{
    overflow-x:auto !important;
    overflow-y:visible !important;
    scrollbar-width:none;
    scroll-behavior:smooth;
    -webkit-overflow-scrolling:touch;
  }

  html.sgw461-nav-final #sgw450TopShell .sgw461-topnav::-webkit-scrollbar{
    display:none;
  }

  html.sgw461-nav-final #sgw450TopShell .sgw460-nav-item,
  html.sgw461-nav-final #sgw450TopShell .sgw461-trigger{
    flex:0 0 auto !important;
    font-size:8.5px !important;
    padding:5px 6px !important;
  }

  /* clique abre submenu */
  html.sgw461-nav-final #sgw450TopShell .sgw461-menu{
    display:none !important;
    position:fixed !important;
    top:74px !important;
    left:8px !important;
    right:8px !important;
    width:auto !important;
    max-width:none !important;
    max-height:calc(100vh - 92px) !important;
    z-index:999999 !important;
  }

  html.sgw461-nav-final #sgw450TopShell .sgw461-menu.sgw461-open{
    display:block !important;
  }

  html.sgw461-nav-final #sgw450TopShell .sgw461-menu a,
  html.sgw461-nav-final #sgw450TopShell .sgw461-menu button{
    min-height:42px !important;
    font-size:11px !important;
    padding:9px 11px !important;
  }
}

/* Celular estreito */
@media(max-width:600px){
  html.sgw461-nav-final #sgw450TopShell{
    min-height:58px !important;
  }

  html.sgw461-nav-final #sgw450TopShell .sgw461-topnav{
    gap:2px !important;
  }

  html.sgw461-nav-final #sgw450TopShell .sgw460-nav-item,
  html.sgw461-nav-final #sgw450TopShell .sgw461-trigger{
    min-height:34px !important;
    padding:5px !important;
    font-size:8px !important;
  }

  html.sgw461-nav-final #sgw450TopShell .sgw461-menu{
    top:64px !important;
    left:6px !important;
    right:6px !important;
    max-height:calc(100vh - 76px) !important;
  }
}


/* ===== SOURCE: sgw_alerta_whatsapp_v462.css ===== */
html.sgw462-central-alerta,html.sgw462-whatsapp{--bg:#020b19;--panel:#061a33;--panel2:#071f3b;--line:#17466f;--text:#eaf4ff;--muted:#86a4c7;--blue:#1677ff;--green:#19ce7a;--red:#ff4f62;--amber:#ffb11b}
html.sgw462-central-alerta body,html.sgw462-central-alerta main,html.sgw462-central-alerta .content-area,
html.sgw462-whatsapp body,html.sgw462-whatsapp main,html.sgw462-whatsapp .content-area{background:radial-gradient(circle at 90% 0,rgba(22,119,255,.08),transparent 28%),linear-gradient(180deg,#031024 0%,var(--bg) 100%)!important;color:var(--text)!important}
html.sgw462-central-alerta main h1,html.sgw462-central-alerta main h2,html.sgw462-central-alerta main h3,
html.sgw462-whatsapp main h1,html.sgw462-whatsapp main h2,html.sgw462-whatsapp main h3{color:#f6faff!important}
html.sgw462-central-alerta main .card,html.sgw462-central-alerta main .panel,html.sgw462-central-alerta main .box,html.sgw462-central-alerta main [class*="card"],
html.sgw462-whatsapp main .card,html.sgw462-whatsapp main .panel,html.sgw462-whatsapp main .box,html.sgw462-whatsapp main [class*="card"]{background:linear-gradient(180deg,var(--panel2),var(--panel))!important;color:var(--text)!important;border:1px solid var(--line)!important;box-shadow:0 13px 34px rgba(0,0,0,.18)!important}
html.sgw462-central-alerta main input:not([type=checkbox]):not([type=radio]),html.sgw462-central-alerta main select,html.sgw462-central-alerta main textarea,
html.sgw462-whatsapp main input:not([type=checkbox]):not([type=radio]),html.sgw462-whatsapp main select,html.sgw462-whatsapp main textarea{background:#041a34!important;color:#f1f8ff!important;border:1px solid #1a507f!important;box-shadow:none!important}
html.sgw462-central-alerta main table,html.sgw462-whatsapp main table{width:100%;border-collapse:separate!important;border-spacing:0!important;background:var(--panel)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:12px!important;overflow:hidden!important}
html.sgw462-central-alerta main table thead th,html.sgw462-whatsapp main table thead th{background:#0a2a4e!important;color:#c5e2ff!important;border-color:#1a4a76!important}
html.sgw462-central-alerta main table tbody td,html.sgw462-whatsapp main table tbody td{background:#061a33!important;color:#dcecff!important;border-color:#12395f!important}
html.sgw462-central-alerta main [class*="critical"],html.sgw462-central-alerta main [class*="critico"],html.sgw462-central-alerta main [class*="danger"]{background:#35131c!important;color:#ff9ba6!important;border-color:#8e2d40!important}
html.sgw462-central-alerta main [class*="warning"],html.sgw462-central-alerta main [class*="aviso"]{background:#352b0b!important;color:#ffd978!important;border-color:#866a14!important}
html.sgw462-central-alerta main [class*="success"],html.sgw462-central-alerta main [class*="online"]{color:#70efae!important}
html.sgw462-whatsapp main [class*="qr"]{background:#fff!important;border-radius:12px!important;padding:10px!important}
html.sgw462-whatsapp main [class*="connected"],html.sgw462-whatsapp main [class*="conectado"],html.sgw462-whatsapp main [class*="online"]{color:#70efae!important}
html.sgw462-whatsapp main [class*="disconnected"],html.sgw462-whatsapp main [class*="desconect"],html.sgw462-whatsapp main [class*="offline"]{color:#ff8e9a!important}
html.sgw462-central-alerta .modal-content,html.sgw462-whatsapp .modal-content{background:linear-gradient(180deg,#081e3a,#05152c)!important;color:#eaf4ff!important;border:1px solid #1a4c78!important;box-shadow:0 24px 65px rgba(0,0,0,.42)!important}
html.sgw462-central-alerta main .btn-primary,html.sgw462-whatsapp main .btn-primary{background:linear-gradient(135deg,#0b5fd7,#1677ff)!important;color:#fff!important;border-color:#2c87ff!important}
@media(max-width:900px){html.sgw462-central-alerta main,html.sgw462-whatsapp main{padding-left:12px!important;padding-right:12px!important}}


/* ===== SOURCE: sgw_admin_real_v463.css ===== */
html.sgw463-admin,html.sgw463-alertas-reais,html.sgw463-whatsapp-real{
--a-bg:#020b19;--a-panel:#061a33;--a-panel2:#071f3b;--a-line:#17466f;
--a-text:#eaf4ff;--a-muted:#86a4c7;--a-blue:#1677ff;--a-green:#19ce7a;
--a-red:#ff4f62;--a-amber:#ffb11b}

html.sgw463-admin body,html.sgw463-admin main,html.sgw463-admin .content-area,
html.sgw463-alertas-reais body,html.sgw463-alertas-reais main,
html.sgw463-whatsapp-real body,html.sgw463-whatsapp-real main{
background:radial-gradient(circle at 90% 0,rgba(22,119,255,.08),transparent 30%),linear-gradient(180deg,#031024 0%,var(--a-bg) 100%)!important;
color:var(--a-text)!important}

html.sgw463-admin main h1,html.sgw463-admin main h2,html.sgw463-admin main h3,
html.sgw463-alertas-reais main h1,html.sgw463-alertas-reais main h2,html.sgw463-alertas-reais main h3,
html.sgw463-whatsapp-real main h1,html.sgw463-whatsapp-real main h2,html.sgw463-whatsapp-real main h3{
color:#f6faff!important}

html.sgw463-admin main .card,html.sgw463-admin main .panel,html.sgw463-admin main .box,
html.sgw463-admin main [class*="card"],html.sgw463-admin main [class*="panel"],
html.sgw463-alertas-reais main .card,html.sgw463-alertas-reais main .panel,
html.sgw463-whatsapp-real main .card,html.sgw463-whatsapp-real main .panel{
background:linear-gradient(180deg,var(--a-panel2),var(--a-panel))!important;
color:var(--a-text)!important;border:1px solid var(--a-line)!important;
box-shadow:0 13px 34px rgba(0,0,0,.18)!important}

html.sgw463-admin main input:not([type=checkbox]):not([type=radio]),
html.sgw463-admin main select,html.sgw463-admin main textarea,
html.sgw463-alertas-reais main input:not([type=checkbox]):not([type=radio]),
html.sgw463-alertas-reais main select,html.sgw463-alertas-reais main textarea,
html.sgw463-whatsapp-real main input:not([type=checkbox]):not([type=radio]),
html.sgw463-whatsapp-real main select,html.sgw463-whatsapp-real main textarea{
background:#041a34!important;color:#f1f8ff!important;border:1px solid #1a507f!important;box-shadow:none!important}

html.sgw463-admin main table,html.sgw463-alertas-reais main table,html.sgw463-whatsapp-real main table{
width:100%;border-collapse:separate!important;border-spacing:0!important;
background:var(--a-panel)!important;color:var(--a-text)!important;border:1px solid var(--a-line)!important;
border-radius:12px!important;overflow:hidden!important}

html.sgw463-admin main table thead th,html.sgw463-alertas-reais main table thead th,
html.sgw463-whatsapp-real main table thead th{
background:#0a2a4e!important;color:#c5e2ff!important;border-color:#1a4a76!important}

html.sgw463-admin main table tbody td,html.sgw463-alertas-reais main table tbody td,
html.sgw463-whatsapp-real main table tbody td{
background:#061a33!important;color:#dcecff!important;border-color:#12395f!important}

html.sgw463-alertas-reais main [class*="danger"],
html.sgw463-alertas-reais main [class*="critical"],
html.sgw463-alertas-reais main [class*="critico"]{color:#ff98a3!important}

html.sgw463-alertas-reais main [class*="warning"],
html.sgw463-alertas-reais main [class*="aviso"]{color:#ffd773!important}

html.sgw463-alertas-reais main [class*="success"],
html.sgw463-alertas-reais main [class*="online"]{color:#70efae!important}

html.sgw463-whatsapp-real main [class*="qr"]{
background:#fff!important;border-radius:12px!important;padding:10px!important}

html.sgw463-admin .modal-content,html.sgw463-alertas-reais .modal-content,
html.sgw463-whatsapp-real .modal-content{
background:linear-gradient(180deg,#081e3a,#05152c)!important;color:#eaf4ff!important;
border:1px solid #1a4c78!important;box-shadow:0 24px 65px rgba(0,0,0,.42)!important}

html.sgw463-admin main .btn-primary,html.sgw463-alertas-reais main .btn-primary,
html.sgw463-whatsapp-real main .btn-primary{
background:linear-gradient(135deg,#0b5fd7,#1677ff)!important;color:#fff!important;border-color:#2c87ff!important}

html.sgw463-admin main pre,html.sgw463-admin main code{
background:#031427!important;color:#8bc5ff!important;border-color:#17466f!important}

@media(max-width:900px){
html.sgw463-admin main,html.sgw463-alertas-reais main,html.sgw463-whatsapp-real main{
padding-left:12px!important;padding-right:12px!important}}


/* ==========================================================
 SGW V504 - ADM LIMPO: SEM TOPO BRANCO E SEM CARDS GRANDES
 Escopo exclusivo do Painel Administrador.
 - remove topbar branca do ADM
 - oculta a nav horizontal V503
 - remove bloco grande do /admin (titulo/relogio/cards)
 - sobe o conteudo util restante
 Nao altera provider UI, sidebar, rotas ou logica.
 ========================================================== */

/* O sidebar Admin é injetado pelo JS e recebe #sgw-sidebar-v39.admin.
   :has() atualiza dinamicamente no Chrome moderno sem precisar restart. */
body.sgw-admin-full-only .topbar{
  display:none !important;
}

/* A sidebar esquerda fica como navegação principal. */
body.sgw-admin-full-only .sgw503-admin-nav{
  display:none !important;
}

/* Remove o espaço deixado pelo topo e sobe todas as telas administrativas. */
body.sgw-admin-full-only .content-area{
  padding-top:0 !important;
  margin-top:0 !important;
}
body.sgw-admin-full-only main.container{
  padding-top:14px !important;
  margin-top:0 !important;
}

/* Dashboard /admin: remove exatamente o bloco grande marcado.
   Mantém os painéis informativos inferiores. */
body.sgw-admin-full-only .admin-dark-home{
  display:none !important;
}
body.sgw-admin-full-only .admin-after-dark{
  margin-top:0 !important;
  padding-top:0 !important;
}

/* Aproveita melhor a largura do ADM depois da remoção do topo. */
body.sgw-admin-full-only .admin-after-dark.grid2{
  gap:14px !important;
}

/* Provedores e demais páginas: título começa mais próximo do topo. */
body.sgw-admin-full-only main.container > h1:first-of-type{
  margin-top:6px !important;
}

/* Celular/tablet: continua sem topo duplicado e sem desperdício vertical. */
@media(max-width:900px){
  body.sgw-admin-full-only main.container{
    padding-top:10px !important;
  }
}


/* ==========================================================
 SGW V505 - DASHBOARD ADM ESCURO E COMPACTO
 Escopo exclusivo do /admin restante após V504.
 - fundo escuro
 - dois painéis inferiores em tema escuro
 - tabelas compactas e legíveis
 - sem alterar /admin/provedores ou provider UI
 ========================================================== */

/* Somente a tela /admin contém .admin-after-dark. */
body.sgw-admin-full-only:has(.admin-after-dark){
  background:#031426 !important;
}

body.sgw-admin-full-only:has(.admin-after-dark) .app-shell,
body.sgw-admin-full-only:has(.admin-after-dark) .content-area,
body.sgw-admin-full-only:has(.admin-after-dark) main.container{
  background:#031426 !important;
  color:#eaf4ff !important;
}

body.sgw-admin-full-only:has(.admin-after-dark) main.container{
  min-height:calc(100vh - 1px) !important;
  padding:14px 12px 18px !important;
}

/* Dois painéis restantes */
body.sgw-admin-full-only .admin-after-dark{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:12px !important;
  margin:0 !important;
  align-items:start !important;
}

body.sgw-admin-full-only .admin-after-dark .panel{
  min-height:0 !important;
  height:auto !important;
  padding:16px !important;
  margin:0 !important;
  background:linear-gradient(180deg,#071f3b,#061a33) !important;
  color:#eaf4ff !important;
  border:1px solid #17466f !important;
  border-radius:14px !important;
  box-shadow:0 8px 24px rgba(0,0,0,.18) !important;
}

body.sgw-admin-full-only .admin-after-dark .panel h2{
  margin:0 0 12px !important;
  color:#f6faff !important;
  font-size:20px !important;
  line-height:1.2 !important;
}

/* Tabelas */
body.sgw-admin-full-only .admin-after-dark .compact-table{
  width:100% !important;
  margin:0 !important;
  border-collapse:collapse !important;
  background:transparent !important;
  color:#dcecff !important;
}

body.sgw-admin-full-only .admin-after-dark .compact-table thead th{
  position:static !important;
  background:#0a294b !important;
  color:#9dceff !important;
  border-bottom:1px solid #205985 !important;
  padding:9px 10px !important;
  font-size:11px !important;
}

body.sgw-admin-full-only .admin-after-dark .compact-table tbody td{
  background:transparent !important;
  color:#dcecff !important;
  border-bottom:1px solid #123b60 !important;
  padding:9px 10px !important;
  font-size:11px !important;
  vertical-align:middle !important;
}

body.sgw-admin-full-only .admin-after-dark .compact-table tbody tr:last-child td{
  border-bottom:0 !important;
}

body.sgw-admin-full-only .admin-after-dark .compact-table strong{
  color:#f6faff !important;
}

body.sgw-admin-full-only .admin-after-dark .compact-table small{
  color:#91afd0 !important;
}

/* Evita faixa clara residual em componentes herdados do Admin. */
body.sgw-admin-full-only:has(.admin-after-dark) .admin-after-dark,
body.sgw-admin-full-only:has(.admin-after-dark) .grid2{
  background:transparent !important;
}

/* Mobile */
@media(max-width:900px){
  body.sgw-admin-full-only .admin-after-dark{
    grid-template-columns:1fr !important;
  }
  body.sgw-admin-full-only:has(.admin-after-dark) main.container{
    padding:10px !important;
  }
}


/* ==========================================================
 SGW V506 R1 - ESCOPO ADMIN CIRURGICO
 V504/V505 ficam exclusivas do Admin Full puro.
 Provider e impersonacao nao recebem essas regras.
 ========================================================== */
body.sgw453-provider-server{--sgw-v506-provider-safe:1;}
