/* ============================================================
   SGW V757 — TABELAS 100% CLARAS / SEM AZUL
   Mantém somente o topo/menu azul escuro.
   ============================================================ */

html.sgw757-tables-light{
  --v757-white:#ffffff;
  --v757-zebra:#f7f9fc;
  --v757-hover:#eef3f7;
  --v757-head:#eef3f7;
  --v757-line:#d8e1ea;
  --v757-text:#24384e;
  --v757-title:#1a2d41;
  --v757-muted:#6f8092;
  --v757-btn:#edf2f6;
  --v757-btn-border:#ccd7e2;
}

/* NÃO TOCA NO TOPO */
html.sgw757-tables-light #sgw450TopShell,
html.sgw757-tables-light #sgw450TopShell *{
  /* V754 permanece responsável pelo azul escuro */
}

/* ============================================================
   TABELAS GERAIS — FORÇA FUNDO CLARO
   ============================================================ */
html.sgw757-tables-light body.sgw453-provider-server main table:not(.leaflet-container table),
html.sgw757-tables-light body.sgw453-provider-server .content-area table:not(.leaflet-container table),
html.sgw757-tables-light body.sgw-clientes-premium table,
html.sgw757-tables-light body.sgw-clientes-premium .provider-table table,
html.sgw757-tables-light body.sgw-clientes-premium .clientes-page table{
  background:var(--v757-white)!important;
  background-image:none!important;
  color:var(--v757-text)!important;
  border-color:var(--v757-line)!important;
}

html.sgw757-tables-light body.sgw453-provider-server main table:not(.leaflet-container table) thead,
html.sgw757-tables-light body.sgw453-provider-server main table:not(.leaflet-container table) thead tr,
html.sgw757-tables-light body.sgw453-provider-server main table:not(.leaflet-container table) thead th,
html.sgw757-tables-light body.sgw-clientes-premium table thead,
html.sgw757-tables-light body.sgw-clientes-premium table thead tr,
html.sgw757-tables-light body.sgw-clientes-premium table thead th{
  background:var(--v757-head)!important;
  background-image:none!important;
  color:var(--v757-title)!important;
  border-color:var(--v757-line)!important;
}

/* TODAS as linhas do corpo ficam claras */
html.sgw757-tables-light body.sgw453-provider-server main table:not(.leaflet-container table) tbody tr,
html.sgw757-tables-light body.sgw453-provider-server .content-area table:not(.leaflet-container table) tbody tr,
html.sgw757-tables-light body.sgw-clientes-premium table tbody tr,
html.sgw757-tables-light body.sgw-clientes-premium .provider-table tbody tr,
html.sgw757-tables-light body.sgw-clientes-premium .clientes-page tbody tr{
  background:var(--v757-white)!important;
  background-color:var(--v757-white)!important;
  background-image:none!important;
  color:var(--v757-text)!important;
}

/* zebra cinza claro */
html.sgw757-tables-light body.sgw453-provider-server main table:not(.leaflet-container table) tbody tr:nth-child(even),
html.sgw757-tables-light body.sgw453-provider-server .content-area table:not(.leaflet-container table) tbody tr:nth-child(even),
html.sgw757-tables-light body.sgw-clientes-premium table tbody tr:nth-child(even),
html.sgw757-tables-light body.sgw-clientes-premium .provider-table tbody tr:nth-child(even),
html.sgw757-tables-light body.sgw-clientes-premium .clientes-page tbody tr:nth-child(even){
  background:var(--v757-zebra)!important;
  background-color:var(--v757-zebra)!important;
  background-image:none!important;
}

/* células nunca herdam navy */
html.sgw757-tables-light body.sgw453-provider-server main table:not(.leaflet-container table) tbody td,
html.sgw757-tables-light body.sgw453-provider-server .content-area table:not(.leaflet-container table) tbody td,
html.sgw757-tables-light body.sgw-clientes-premium table tbody td,
html.sgw757-tables-light body.sgw-clientes-premium .provider-table tbody td,
html.sgw757-tables-light body.sgw-clientes-premium .clientes-page tbody td{
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  color:var(--v757-text)!important;
  border-color:#e4ebf2!important;
}

/* hover também claro */
html.sgw757-tables-light body.sgw453-provider-server main table:not(.leaflet-container table) tbody tr:hover,
html.sgw757-tables-light body.sgw453-provider-server .content-area table:not(.leaflet-container table) tbody tr:hover,
html.sgw757-tables-light body.sgw-clientes-premium table tbody tr:hover,
html.sgw757-tables-light body.sgw-clientes-premium .provider-table tbody tr:hover,
html.sgw757-tables-light body.sgw-clientes-premium .clientes-page tbody tr:hover{
  background:var(--v757-hover)!important;
  background-color:var(--v757-hover)!important;
}

html.sgw757-tables-light body.sgw453-provider-server main table:not(.leaflet-container table) tbody tr:hover td,
html.sgw757-tables-light body.sgw-clientes-premium table tbody tr:hover td{
  background:transparent!important;
  color:var(--v757-title)!important;
}

/* Links/textos dentro da tabela */
html.sgw757-tables-light body.sgw453-provider-server main table tbody a,
html.sgw757-tables-light body.sgw-clientes-premium table tbody a{
  color:#31516f!important;
}

/* botões pequenos de ação em cinza claro, sem azul */
html.sgw757-tables-light body.sgw453-provider-server main table tbody .btn,
html.sgw757-tables-light body.sgw453-provider-server main table tbody button,
html.sgw757-tables-light body.sgw453-provider-server main table tbody a[class*='btn'],
html.sgw757-tables-light body.sgw-clientes-premium table tbody .btn,
html.sgw757-tables-light body.sgw-clientes-premium table tbody button,
html.sgw757-tables-light body.sgw-clientes-premium table tbody a[class*='btn']{
  background:var(--v757-btn)!important;
  background-image:none!important;
  color:var(--v757-title)!important;
  border:1px solid var(--v757-btn-border)!important;
  box-shadow:none!important;
}

/* ============================================================
   BLOCO ESPECÍFICO DA PÁGINA CLIENTES
   ============================================================ */
html.sgw757-tables-light body.sgw-clientes-premium .table-card.provider-table.exact-table.clientes-page,
html.sgw757-tables-light body.sgw-clientes-premium .table-card.provider-table,
html.sgw757-tables-light body.sgw-clientes-premium .provider-table,
html.sgw757-tables-light body.sgw-clientes-premium .clientes-page{
  background:#fff!important;
  background-image:none!important;
  border-color:var(--v757-line)!important;
}

/* elimina classes antigas que pintam linha azul/navy */
html.sgw757-tables-light body.sgw-clientes-premium tbody tr.active,
html.sgw757-tables-light body.sgw-clientes-premium tbody tr.selected,
html.sgw757-tables-light body.sgw-clientes-premium tbody tr.highlight,
html.sgw757-tables-light body.sgw-clientes-premium tbody tr.dark,
html.sgw757-tables-light body.sgw-clientes-premium tbody tr.navy,
html.sgw757-tables-light body.sgw-clientes-premium tbody tr[class*='dark'],
html.sgw757-tables-light body.sgw-clientes-premium tbody tr[class*='navy'],
html.sgw757-tables-light body.sgw-clientes-premium tbody tr[class*='blue']{
  background:var(--v757-zebra)!important;
  background-color:var(--v757-zebra)!important;
  background-image:none!important;
  color:var(--v757-text)!important;
}

/* paginação clara */
html.sgw757-tables-light body.sgw453-provider-server main .pagination a,
html.sgw757-tables-light body.sgw453-provider-server main .pagination button,
html.sgw757-tables-light body.sgw453-provider-server main [class*='pagination'] a,
html.sgw757-tables-light body.sgw453-provider-server main [class*='pagination'] button{
  background:#fff!important;
  color:var(--v757-text)!important;
  border:1px solid var(--v757-line)!important;
}

html.sgw757-tables-light body.sgw453-provider-server main .pagination .active,
html.sgw757-tables-light body.sgw453-provider-server main [class*='pagination'] .active{
  background:#e2e8ef!important;
  color:var(--v757-title)!important;
  border-color:#becbd8!important;
}

/* protege mapa */
html.sgw757-tables-light .leaflet-container,
html.sgw757-tables-light #sgw-v748-shell,
html.sgw757-tables-light #sgw-v748-map{
  color-scheme:normal!important;
}
