/* SGW V311 - correção final: mapa dentro, Atualizar único no topo e caneta comodato */

.sgw311-head-actions{
  margin-left:auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  flex:0 0 auto !important;
}

.sgw311-top-update{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:auto !important;
  min-width:96px !important;
  height:34px !important;
  padding:0 15px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:999px !important;
  background:#19ad55 !important;
  color:#fff !important;
  font-size:12px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  box-shadow:0 8px 20px rgba(25,173,85,.22) !important;
  cursor:pointer !important;
}

.sgw311-head-actions .close-x{
  margin:0 !important;
  position:static !important;
  flex:0 0 auto !important;
}

.sgw311-hide-update,
.sgw311-hide-footer-actions{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* O botão antigo continua funcional, mas totalmente invisível e fora do fluxo. */
.sgw190-fullscreen-btn.sgw311-old-map-fs-hidden{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  min-width:1px !important;
  min-height:1px !important;
  padding:0 !important;
  margin:0 !important;
  opacity:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
  clip-path:inset(100%) !important;
}

.sgw159-client-map,
.sgw159-client-map.leaflet-container{
  position:relative !important;
}

/* NOVO quadradinho: filho direto da área do mapa. */
.sgw311-map-fs{
  position:absolute !important;
  top:10px !important;
  right:10px !important;
  left:auto !important;
  bottom:auto !important;
  z-index:10000 !important;
  width:34px !important;
  height:34px !important;
  min-width:34px !important;
  min-height:34px !important;
  padding:0 !important;
  margin:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid rgba(15,23,42,.15) !important;
  border-radius:7px !important;
  background:rgba(255,255,255,.96) !important;
  color:#0f172a !important;
  font-size:17px !important;
  line-height:1 !important;
  font-weight:900 !important;
  box-shadow:0 4px 12px rgba(0,0,0,.25) !important;
  cursor:pointer !important;
}
.sgw311-map-fs:hover{background:#fff !important}

.sgw311-comodato-pencil{
  width:42px !important;
  height:28px !important;
  min-width:42px !important;
  padding:0 !important;
  margin:0 8px 0 0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border:1px solid #cbd5e1 !important;
  border-radius:9px !important;
  background:#fff !important;
  color:#0f172a !important;
  font-size:15px !important;
  font-weight:900 !important;
  cursor:pointer !important;
}
.sgw311-comodato-pencil:hover{background:#f8fafc !important;border-color:#94a3b8 !important}

@media (max-width:900px){
  .sgw311-head-actions{gap:7px !important}
  .sgw311-top-update{min-width:84px !important;height:32px !important;padding:0 11px !important;font-size:11px !important}
  .sgw311-map-fs{top:8px !important;right:8px !important}
}


/* ==========================================================
 SGW V496 - CLIENTE UI V311 TEMA
 Somente botoes ainda claros no perfil.
 Nao altera mapa, fullscreen funcional ou layout.
 ========================================================== */

body.sgw-clientes-premium .sgw311-map-fs{
  background:rgba(7,31,59,.96) !important;
  color:#eaf4ff !important;
  border-color:#205985 !important;
  box-shadow:0 4px 12px rgba(0,0,0,.28) !important;
}
body.sgw-clientes-premium .sgw311-map-fs:hover{
  background:#0b3157 !important;
  border-color:#3b82f6 !important;
}

body.sgw-clientes-premium .sgw311-comodato-pencil{
  background:#0a294b !important;
  color:#eaf4ff !important;
  border-color:#205985 !important;
}
body.sgw-clientes-premium .sgw311-comodato-pencil:hover{
  background:#0b3157 !important;
  border-color:#3b82f6 !important;
}
