:root {
  --premium-bg: #eef4fb;
  --premium-card: rgba(255,255,255,.88);
  --premium-border: rgba(148,163,184,.28);
  --premium-text: #0f172a;
  --premium-muted: #64748b;
  --premium-green: #22c55e;
  --premium-blue: #2563eb;
  --premium-cyan: #06b6d4;
  --premium-red: #ef4444;
  --premium-shadow: 0 18px 44px rgba(15,23,42,.11);
}

body.sgw-clientes-premium {
  background:
    radial-gradient(circle at 82% 0%, rgba(34,197,94,.18), transparent 30%),
    radial-gradient(circle at 18% 18%, rgba(37,99,235,.13), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #edf3fa 100%) !important;
}

body.sgw-clientes-premium .sgw-top-search-hide {
  display: none !important;
}

body.sgw-clientes-premium .kpi-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 18px !important;
  margin-bottom: 20px !important;
}

body.sgw-clientes-premium .sgw-cliente-filter-link {
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer !important;
  position: relative !important;
  min-height: 92px !important;
  border-radius: 24px !important;
  border: 1px solid var(--premium-border) !important;
  box-shadow: var(--premium-shadow) !important;
  overflow: hidden !important;
  transition: transform .16s ease, box-shadow .16s ease, outline .16s ease !important;
}

body.sgw-clientes-premium .sgw-cliente-filter-link:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 28px 62px rgba(15,23,42,.17) !important;
}

body.sgw-clientes-premium .sgw-cliente-filter-link.sgw-selected {
  outline: 3px solid rgba(34,197,94,.42) !important;
}

body.sgw-clientes-premium .sgw-cliente-filter-link.sgw-selected::after {
  content: "FILTRO ATIVO";
  position: absolute;
  right: 14px;
  bottom: 10px;
  z-index: 5;
  padding: 5px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
}

body.sgw-clientes-premium input[type="search"],
body.sgw-clientes-premium input[name="q"],
body.sgw-clientes-premium input[placeholder*="Pesquisar"],
body.sgw-clientes-premium input[placeholder*="pesquisar"] {
  height: 52px !important;
  border-radius: 18px !important;
  border: 1px solid var(--premium-border) !important;
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 12px 28px rgba(15,23,42,.07) !important;
  padding: 0 18px !important;
  font-size: 14px !important;
}

body.sgw-clientes-premium .btn,
body.sgw-clientes-premium button,
body.sgw-clientes-premium a.btn {
  border-radius: 15px !important;
  font-weight: 900 !important;
}

body.sgw-clientes-premium .btn.primary,
body.sgw-clientes-premium .btn-success,
body.sgw-clientes-premium .btn-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  border: 0 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(34,197,94,.26) !important;
}

body.sgw-clientes-premium table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  border-radius: 24px !important;
  border: 1px solid var(--premium-border) !important;
  background: rgba(255,255,255,.92) !important;
  box-shadow: var(--premium-shadow) !important;
}

body.sgw-clientes-premium thead th {
  background: linear-gradient(180deg, #f8fbff, #f1f6fb) !important;
  color: #475569 !important;
  text-transform: uppercase !important;
  letter-spacing: .045em !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  border-bottom: 1px solid var(--premium-border) !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

body.sgw-clientes-premium tbody td {
  border-bottom: 1px solid rgba(226,232,240,.9) !important;
  padding-top: 13px !important;
  padding-bottom: 13px !important;
}

body.sgw-clientes-premium tbody tr:hover {
  background: #f8fbff !important;
}

body.sgw-clientes-premium .modal-content,
body.sgw-clientes-premium [class*="modal-content"] {
  border-radius: 28px !important;
  border: 1px solid rgba(226,232,240,.8) !important;
  box-shadow: 0 35px 90px rgba(15,23,42,.28) !important;
  overflow: hidden !important;
}

.sgw-clientes-premium-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px 0;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color: #166534;
  font-size: 12px;
  font-weight: 900;
}

.sgw-clientes-premium-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34,197,94,.14);
}


/* SGW DESATIVADOS SUAVE V1 */

/* Card DESATIVADOS mais discreto, premium e menos chamativo */
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link,
body.sgw-clientes-premium .kpi.dark {
  background: linear-gradient(135deg, #f4f7fa 0%, #e6ebf0 100%) !important;
  color: #64748b !important;
  border: 1px solid #d7e0ea !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05) !important;
}

/* Texto do card desativados */
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link small,
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link strong,
body.sgw-clientes-premium .kpi.dark small,
body.sgw-clientes-premium .kpi.dark strong {
  color: #64748b !important;
}

/* Número do card desativados um pouco mais apagado */
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link strong,
body.sgw-clientes-premium .kpi.dark strong {
  color: #475569 !important;
  opacity: .88 !important;
}

/* Ícone/bolha do card desativados bem suave */
body.sgw-clientes-premium .kpi.dark .kpi-avatar,
body.sgw-clientes-premium .kpi.dark .kpi-ghost {
  background: rgba(148, 163, 184, .13) !important;
  color: rgba(71, 85, 105, .45) !important;
  opacity: .65 !important;
}

/* Remove aparência pesada da bolha original */
body.sgw-clientes-premium .kpi.dark::before,
body.sgw-clientes-premium .kpi.dark::after,
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link::before {
  opacity: .18 !important;
  background: rgba(148, 163, 184, .18) !important;
}

/* Hover discreto */
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link:hover,
body.sgw-clientes-premium .kpi.dark:hover {
  background: linear-gradient(135deg, #eef3f7 0%, #dde5ec 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .07) !important;
}

/* Se DESATIVADOS estiver selecionado, destaque suave, sem verde forte */
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link.sgw-selected {
  outline: 2px solid rgba(100, 116, 139, .28) !important;
  box-shadow: 0 14px 32px rgba(100, 116, 139, .10) !important;
}

/* Etiqueta "FILTRO ATIVO" no desativados também discreta */
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link.sgw-selected::after {
  content: "FILTRO ATIVO" !important;
  background: #e2e8f0 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}

/* Mantém ATIVOS com destaque verde */
body.sgw-clientes-premium .kpi.green.sgw-cliente-filter-link {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(34, 197, 94, .35) !important;
  box-shadow: 0 18px 44px rgba(34, 197, 94, .20) !important;
}

/* Mantém TODOS neutro e limpo */
body.sgw-clientes-premium .kpi.kpi-white.sgw-cliente-filter-link {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

/* FIM SGW DESATIVADOS SUAVE V1 */


/* SGW NOME DESATIVADOS AMARELO V1 */

/* Quando estiver no filtro DESATIVADOS, deixa a coluna NOME em amarelo negrito */
body.sgw-status-desativados-view table tbody td:nth-child(4),
body.sgw-status-desativados-view .table tbody td:nth-child(4) {
  color: #facc15 !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.18) !important;
  letter-spacing: .2px !important;
}

/* Links dentro do nome também ficam amarelos */
body.sgw-status-desativados-view table tbody td:nth-child(4) a,
body.sgw-status-desativados-view .table tbody td:nth-child(4) a {
  color: #facc15 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

/* Hover: amarelo mais forte */
body.sgw-status-desativados-view table tbody tr:hover td:nth-child(4),
body.sgw-status-desativados-view .table tbody tr:hover td:nth-child(4) {
  color: #eab308 !important;
  font-weight: 950 !important;
}

/* END SGW NOME DESATIVADOS AMARELO V1 */

/* SGW NOME DESATIVADOS AMARELO V1 */

/* Quando estiver no filtro DESATIVADOS, deixa a coluna NOME em amarelo negrito */
body.sgw-status-desativados-view table tbody td:nth-child(4),
body.sgw-status-desativados-view .table tbody td:nth-child(4) {
  color: #facc15 !important;
  font-weight: 900 !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.18) !important;
  letter-spacing: .2px !important;
}

/* Links dentro do nome também ficam amarelos */
body.sgw-status-desativados-view table tbody td:nth-child(4) a,
body.sgw-status-desativados-view .table tbody td:nth-child(4) a {
  color: #facc15 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

/* Hover: amarelo mais forte */
body.sgw-status-desativados-view table tbody tr:hover td:nth-child(4),
body.sgw-status-desativados-view .table tbody tr:hover td:nth-child(4) {
  color: #eab308 !important;
  font-weight: 950 !important;
}

/* END SGW NOME DESATIVADOS AMARELO V1 */

/* SGW DESATIVADO NOME AMARELO EM TODOS V1 */

/* Nome do cliente desativado sempre amarelo/negrito, inclusive no filtro TODOS */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td:nth-child(4),
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row td:nth-child(4),
table tbody tr.sgw-cliente-desativado-row td:nth-child(4) {
  color: #facc15 !important;
  font-weight: 950 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.22) !important;
  letter-spacing: .15px !important;
}

/* Se o nome tiver link, strong, span ou div dentro */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td:nth-child(4) *,
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row td:nth-child(4) *,
table tbody tr.sgw-cliente-desativado-row td:nth-child(4) * {
  color: #facc15 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

/* Hover do nome desativado */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4),
table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4) {
  color: #eab308 !important;
  font-weight: 950 !important;
}

/* Fundo bem discreto para linha desativada quando estiver em TODOS */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row,
table tbody tr.sgw-cliente-desativado-row {
  background: linear-gradient(135deg, #fffdf0 0%, #fff8d7 100%) !important;
}

/* Hover da linha desativada */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row:hover,
table tbody tr.sgw-cliente-desativado-row:hover {
  background: linear-gradient(135deg, #fff7bf 0%, #fef08a 100%) !important;
  box-shadow: inset 4px 0 0 #facc15 !important;
}

/* END SGW DESATIVADO NOME AMARELO EM TODOS V1 */

/* SGW DESATIVADO NOME AMARELO EM TODOS V1 */

/* Nome do cliente desativado sempre amarelo/negrito, inclusive no filtro TODOS */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td:nth-child(4),
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row td:nth-child(4),
table tbody tr.sgw-cliente-desativado-row td:nth-child(4) {
  color: #facc15 !important;
  font-weight: 950 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.22) !important;
  letter-spacing: .15px !important;
}

/* Se o nome tiver link, strong, span ou div dentro */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td:nth-child(4) *,
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row td:nth-child(4) *,
table tbody tr.sgw-cliente-desativado-row td:nth-child(4) * {
  color: #facc15 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
}

/* Hover do nome desativado */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4),
table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4) {
  color: #eab308 !important;
  font-weight: 950 !important;
}

/* Fundo bem discreto para linha desativada quando estiver em TODOS */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row,
table tbody tr.sgw-cliente-desativado-row {
  background: linear-gradient(135deg, #fffdf0 0%, #fff8d7 100%) !important;
}

/* Hover da linha desativada */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row:hover,
table tbody tr.sgw-cliente-desativado-row:hover {
  background: linear-gradient(135deg, #fff7bf 0%, #fef08a 100%) !important;
  box-shadow: inset 4px 0 0 #facc15 !important;
}

/* END SGW DESATIVADO NOME AMARELO EM TODOS V1 */

/* SGW DESATIVADO NOME AMARELO SEM NEGRITO V2 */

/* Nome do cliente desativado: amarelo, mas SEM negrito */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td:nth-child(4),
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row td:nth-child(4),
table tbody tr.sgw-cliente-desativado-row td:nth-child(4) {
  color: #eab308 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  letter-spacing: normal !important;
}

/* Se tiver link, span, strong, div ou qualquer elemento dentro do nome */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td:nth-child(4) *,
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row td:nth-child(4) *,
table tbody tr.sgw-cliente-desativado-row td:nth-child(4) * {
  color: #eab308 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  text-decoration: none !important;
  letter-spacing: normal !important;
}

/* Hover mantém amarelo, sem negrito */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4),
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4),
table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4),
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4) *,
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4) *,
table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4) * {
  color: #ca8a04 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

/* END SGW DESATIVADO NOME AMARELO SEM NEGRITO V2 */

/* SGW DESATIVADO NOME AMARELO SEM NEGRITO V2 */

/* Nome do cliente desativado: amarelo, mas SEM negrito */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td:nth-child(4),
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row td:nth-child(4),
table tbody tr.sgw-cliente-desativado-row td:nth-child(4) {
  color: #eab308 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  letter-spacing: normal !important;
}

/* Se tiver link, span, strong, div ou qualquer elemento dentro do nome */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td:nth-child(4) *,
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row td:nth-child(4) *,
table tbody tr.sgw-cliente-desativado-row td:nth-child(4) * {
  color: #eab308 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
  text-decoration: none !important;
  letter-spacing: normal !important;
}

/* Hover mantém amarelo, sem negrito */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4),
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4),
table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4),
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4) *,
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4) *,
table tbody tr.sgw-cliente-desativado-row:hover td:nth-child(4) * {
  color: #ca8a04 !important;
  font-weight: 400 !important;
  text-shadow: none !important;
}

/* END SGW DESATIVADO NOME AMARELO SEM NEGRITO V2 */

/* SGW BULK CLIENTES V1 */

.sgw-bulk-option-btn {
  margin-left: 10px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #991b1b, #ef4444) !important;
  color: #fff !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 26px rgba(239,68,68,.22) !important;
}

.sgw-bulk-option-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.sgw-bulk-selected-counter {
  display: none;
  align-items: center;
  margin-left: 10px;
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 900;
}

/* END SGW BULK CLIENTES V1 */

/* SGW BULK CLIENTES V1 */

.sgw-bulk-option-btn {
  margin-left: 10px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #991b1b, #ef4444) !important;
  color: #fff !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 26px rgba(239,68,68,.22) !important;
}

.sgw-bulk-option-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.sgw-bulk-selected-counter {
  display: none;
  align-items: center;
  margin-left: 10px;
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 900;
}

/* END SGW BULK CLIENTES V1 */

/* SGW BULK CLIENTES V1 */

.sgw-bulk-option-btn {
  margin-left: 10px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #991b1b, #ef4444) !important;
  color: #fff !important;
  padding: 12px 16px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 26px rgba(239,68,68,.22) !important;
}

.sgw-bulk-option-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.sgw-bulk-selected-counter {
  display: none;
  align-items: center;
  margin-left: 10px;
  padding: 10px 13px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 900;
}

/* END SGW BULK CLIENTES V1 */

/* SGW OPÇÕES CLIENTES DROPDOWN V2 */

.sgw-bulk-option-btn {
  display: none !important;
}

.sgw-opcoes-clientes-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  margin-left: 8px !important;
}

.sgw-opcoes-clientes-wrap > button,
.sgw-opcoes-clientes-wrap > a {
  position: relative !important;
  z-index: 3 !important;
}

.sgw-opcoes-clientes-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 280px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148,163,184,.35);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,.22);
  padding: 8px;
  z-index: 9999;
}

.sgw-opcoes-clientes-dropdown.open {
  display: block;
}

.sgw-opcoes-clientes-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 22px;
  width: 14px;
  height: 14px;
  background: rgba(255,255,255,.98);
  border-left: 1px solid rgba(148,163,184,.35);
  border-top: 1px solid rgba(148,163,184,.35);
  transform: rotate(45deg);
}

.sgw-opcoes-clientes-item {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  text-align: left !important;
  padding: 11px 12px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: none !important;
}

.sgw-opcoes-clientes-item:hover {
  background: #f1f5f9 !important;
}

.sgw-opcoes-clientes-item.sgw-opcoes-danger {
  color: #991b1b !important;
}

.sgw-opcoes-clientes-item.sgw-opcoes-danger:hover {
  background: #fee2e2 !important;
}

.sgw-bulk-selected-counter {
  display: none;
  align-items: center;
  margin-left: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 900;
}

/* END SGW OPÇÕES CLIENTES DROPDOWN V2 */

/* SGW MENU OPÇÕES CLIENTES VERTICAL FIX V3 */

/* Caixa do menu Opções */
.sgw-opcoes-clientes-dropdown {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 12px) !important;
  left: 0 !important;
  right: auto !important;
  width: 320px !important;
  min-width: 320px !important;
  max-width: 320px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, .35) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .24) !important;
  z-index: 999999 !important;
  overflow: visible !important;
}

/* Quando abre */
.sgw-opcoes-clientes-dropdown.open {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* Cada opção uma linha separada */
.sgw-opcoes-clientes-item {
  display: flex !important;
  width: 100% !important;
  min-height: 44px !important;
  height: auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 11px 13px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  text-align: left !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  position: relative !important;
}

/* Primeira opção: excluir */
.sgw-opcoes-clientes-item.sgw-opcoes-danger {
  background: #fff1f2 !important;
  color: #991b1b !important;
}

/* Hover */
.sgw-opcoes-clientes-item:hover {
  background: #eaf2ff !important;
  transform: none !important;
}

.sgw-opcoes-clientes-item.sgw-opcoes-danger:hover {
  background: #fee2e2 !important;
}

/* Wrapper do botão Opções */
.sgw-opcoes-clientes-wrap {
  position: relative !important;
  display: inline-block !important;
  vertical-align: middle !important;
  overflow: visible !important;
}

/* Evita que algum CSS antigo coloque botão por cima do outro */
.sgw-opcoes-clientes-dropdown button,
.sgw-opcoes-clientes-dropdown .sgw-opcoes-clientes-item {
  float: none !important;
  clear: both !important;
}

/* Seta do menu */
.sgw-opcoes-clientes-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 24px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-left: 1px solid rgba(148, 163, 184, .35);
  border-top: 1px solid rgba(148, 163, 184, .35);
  transform: rotate(45deg);
}

/* END SGW MENU OPÇÕES CLIENTES VERTICAL FIX V3 */

/* SGW MENU OPÇÕES CLIENTES FINAL V4 */

.sgw-bulk-option-btn {
  display: none !important;
}

.sgw-opcoes-clientes-wrap {
  position: relative !important;
  display: inline-block !important;
  vertical-align: middle !important;
  overflow: visible !important;
  z-index: 10000 !important;
}

.sgw-opcoes-clientes-dropdown {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 12px) !important;
  left: 0 !important;
  width: 330px !important;
  min-width: 330px !important;
  max-width: 330px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, .35) !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25) !important;
  z-index: 999999 !important;
  overflow: visible !important;
}

.sgw-opcoes-clientes-dropdown.open {
  display: flex !important;
  flex-direction: column !important;
  gap: 9px !important;
}

.sgw-opcoes-clientes-dropdown::before {
  content: "";
  position: absolute !important;
  top: -7px !important;
  left: 24px !important;
  width: 14px !important;
  height: 14px !important;
  background: #ffffff !important;
  border-left: 1px solid rgba(148, 163, 184, .35) !important;
  border-top: 1px solid rgba(148, 163, 184, .35) !important;
  transform: rotate(45deg) !important;
}

.sgw-opcoes-clientes-item,
.sgw-opcoes-clientes-dropdown a.sgw-opcoes-clientes-item,
.sgw-opcoes-clientes-dropdown button.sgw-opcoes-clientes-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 9px !important;
  width: 100% !important;
  min-height: 46px !important;
  height: auto !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  line-height: 1.25 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  position: relative !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.sgw-opcoes-clientes-item span {
  display: inline-block !important;
  line-height: 1.25 !important;
}

.sgw-opcoes-ico {
  width: 20px !important;
  min-width: 20px !important;
  text-align: center !important;
}

.sgw-opcoes-clientes-item.sgw-opcoes-excel {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.sgw-opcoes-clientes-item.sgw-opcoes-danger {
  background: #fff1f2 !important;
  color: #991b1b !important;
}

.sgw-opcoes-clientes-item.sgw-opcoes-clean {
  background: #f8fafc !important;
  color: #0f172a !important;
}

.sgw-opcoes-clientes-item:hover {
  background: #eaf2ff !important;
  transform: none !important;
}

.sgw-opcoes-clientes-item.sgw-opcoes-excel:hover {
  background: #dbeafe !important;
}

.sgw-opcoes-clientes-item.sgw-opcoes-danger:hover {
  background: #fee2e2 !important;
}

.sgw-opcoes-clientes-item.sgw-opcoes-clean:hover {
  background: #e2e8f0 !important;
}

.sgw-bulk-selected-counter {
  display: none;
  align-items: center;
  margin-left: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  font-size: 12px;
  font-weight: 900;
}

/* END SGW MENU OPÇÕES CLIENTES FINAL V4 */

/* SGW BOTAO ALERTA EXCLUSAO SELECIONADOS V1 */

/* Remove definitivamente o dropdown antigo */
.sgw-opcoes-clientes-dropdown,
.sgw-opcoes-clientes-wrap .sgw-opcoes-clientes-dropdown,
.sgw-bulk-option-btn {
  display: none !important;
}

/* Botão lateral de alerta */
.sgw-alert-delete-selected-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 12px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .3px !important;
  cursor: pointer !important;
  box-shadow:
    0 0 0 3px rgba(250, 204, 21, .35),
    0 14px 34px rgba(239, 68, 68, .35) !important;
  animation: sgw-alert-delete-pulse 0.85s infinite alternate !important;
  position: relative !important;
  z-index: 20 !important;
}

/* Animação amarelo/vermelho */
@keyframes sgw-alert-delete-pulse {
  0% {
    background: linear-gradient(135deg, #facc15 0%, #f97316 45%, #dc2626 100%);
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 3px rgba(250, 204, 21, .30),
      0 12px 28px rgba(239, 68, 68, .25);
  }

  50% {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 45%, #991b1b 100%);
    transform: translateY(-1px) scale(1.025);
    box-shadow:
      0 0 0 6px rgba(239, 68, 68, .22),
      0 18px 40px rgba(220, 38, 38, .42);
  }

  100% {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 45%, #ef4444 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow:
      0 0 0 8px rgba(250, 204, 21, .20),
      0 22px 46px rgba(239, 68, 68, .48);
  }
}

.sgw-alert-delete-selected-btn:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-2px) scale(1.04) !important;
}

/* Responsivo */
@media (max-width: 900px) {
  .sgw-alert-delete-selected-btn {
    margin-left: 0 !important;
    margin-top: 10px !important;
    width: 100% !important;
  }
}

/* END SGW BOTAO ALERTA EXCLUSAO SELECIONADOS V1 */

/* SGW EXCLUSAO MASSA ALERTA V4 */

.sgw-opcoes-clientes-dropdown,
.sgw-bulk-option-btn {
  display: none !important;
}

.sgw-alert-delete-selected-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 12px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .3px !important;
  cursor: pointer !important;
  box-shadow: 0 0 0 3px rgba(250,204,21,.35), 0 14px 34px rgba(239,68,68,.35) !important;
  animation: sgw-alert-delete-pulse-v4 .85s infinite alternate !important;
  position: relative !important;
  z-index: 20 !important;
}

@keyframes sgw-alert-delete-pulse-v4 {
  0% {
    background: linear-gradient(135deg,#facc15 0%,#f97316 45%,#dc2626 100%);
    transform: translateY(0) scale(1);
  }
  50% {
    background: linear-gradient(135deg,#ef4444 0%,#dc2626 45%,#991b1b 100%);
    transform: translateY(-1px) scale(1.025);
  }
  100% {
    background: linear-gradient(135deg,#fde047 0%,#f59e0b 45%,#ef4444 100%);
    transform: translateY(-2px) scale(1.04);
  }
}

.sgw-alert-delete-selected-btn:hover {
  filter: brightness(1.08) !important;
}

.sgw-clientes-excluidos-menu-link:hover {
  background: #fee2e2 !important;
}

/* END SGW EXCLUSAO MASSA ALERTA V4 */

/* SGW EXCLUSAO MASSA ALERTA V4 */

.sgw-opcoes-clientes-dropdown,
.sgw-bulk-option-btn {
  display: none !important;
}

.sgw-alert-delete-selected-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 12px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .3px !important;
  cursor: pointer !important;
  box-shadow: 0 0 0 3px rgba(250,204,21,.35), 0 14px 34px rgba(239,68,68,.35) !important;
  animation: sgw-alert-delete-pulse-v4 .85s infinite alternate !important;
  position: relative !important;
  z-index: 20 !important;
}

@keyframes sgw-alert-delete-pulse-v4 {
  0% {
    background: linear-gradient(135deg,#facc15 0%,#f97316 45%,#dc2626 100%);
    transform: translateY(0) scale(1);
  }
  50% {
    background: linear-gradient(135deg,#ef4444 0%,#dc2626 45%,#991b1b 100%);
    transform: translateY(-1px) scale(1.025);
  }
  100% {
    background: linear-gradient(135deg,#fde047 0%,#f59e0b 45%,#ef4444 100%);
    transform: translateY(-2px) scale(1.04);
  }
}

.sgw-alert-delete-selected-btn:hover {
  filter: brightness(1.08) !important;
}

.sgw-clientes-excluidos-menu-link:hover {
  background: #fee2e2 !important;
}

/* END SGW EXCLUSAO MASSA ALERTA V4 */

/* SGW EXCLUIR DIRETO COM BACKUP V7 */

.sgw-alert-delete-selected-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 12px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .3px !important;
  cursor: pointer !important;
  animation: sgw-alert-delete-pulse-v7 .85s infinite alternate !important;
  box-shadow: 0 0 0 3px rgba(250,204,21,.35), 0 14px 34px rgba(239,68,68,.35) !important;
}

@keyframes sgw-alert-delete-pulse-v7 {
  0% {
    background: linear-gradient(135deg,#facc15 0%,#f97316 45%,#dc2626 100%);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg,#ef4444 0%,#dc2626 45%,#991b1b 100%);
    transform: scale(1.025);
  }
  100% {
    background: linear-gradient(135deg,#fde047 0%,#f59e0b 45%,#ef4444 100%);
    transform: scale(1.04);
  }
}

/* END SGW EXCLUIR DIRETO COM BACKUP V7 */

/* SGW CLIENTES EXCLUIDOS LIMPEZA E VERMELHO V8 */

/* Remove botões duplicados criados fora do menu */
body.sgw-clientes-premium > .sgw-clientes-excluidos-menu-link,
.sgw-clientes-excluidos-menu-link:not(.dropdown-menu .sgw-clientes-excluidos-menu-link) {
  display: none !important;
}

/* Em Clientes Excluídos, nomes ficam vermelhos */
body.sgw-status-excluidos-view table tbody td:nth-child(4),
body.sgw-status-excluidos-view .table tbody td:nth-child(4),
body.sgw-status-excluidos-view table tbody td:nth-child(4) *,
body.sgw-status-excluidos-view .table tbody td:nth-child(4) * {
  color: #dc2626 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* Linha de cliente excluído com fundo vermelho bem suave */
body.sgw-status-excluidos-view table tbody tr,
body.sgw-status-excluidos-view .table tbody tr {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%) !important;
}

/* Hover */
body.sgw-status-excluidos-view table tbody tr:hover,
body.sgw-status-excluidos-view .table tbody tr:hover {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
}

/* Botão restaurar */
.sgw-restaurar-excluido-link {
  display: inline-flex !important;
  margin-left: 8px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #dcfce7 !important;
  color: #166534 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

/* END SGW CLIENTES EXCLUIDOS LIMPEZA E VERMELHO V8 */

/* SGW CLIENTES EXCLUIDOS LIMPEZA E VERMELHO V8 */

/* Remove botões duplicados criados fora do menu */
body.sgw-clientes-premium > .sgw-clientes-excluidos-menu-link,
.sgw-clientes-excluidos-menu-link:not(.dropdown-menu .sgw-clientes-excluidos-menu-link) {
  display: none !important;
}

/* Em Clientes Excluídos, nomes ficam vermelhos */
body.sgw-status-excluidos-view table tbody td:nth-child(4),
body.sgw-status-excluidos-view .table tbody td:nth-child(4),
body.sgw-status-excluidos-view table tbody td:nth-child(4) *,
body.sgw-status-excluidos-view .table tbody td:nth-child(4) * {
  color: #dc2626 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* Linha de cliente excluído com fundo vermelho bem suave */
body.sgw-status-excluidos-view table tbody tr,
body.sgw-status-excluidos-view .table tbody tr {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%) !important;
}

/* Hover */
body.sgw-status-excluidos-view table tbody tr:hover,
body.sgw-status-excluidos-view .table tbody tr:hover {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
}

/* Botão restaurar */
.sgw-restaurar-excluido-link {
  display: inline-flex !important;
  margin-left: 8px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #dcfce7 !important;
  color: #166534 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

/* END SGW CLIENTES EXCLUIDOS LIMPEZA E VERMELHO V8 */

/* SGW RESTAURAR CLIENTES EXCLUIDOS V9 */

/* Em Clientes Excluídos, nomes vermelhos */
body.sgw-status-excluidos-view table tbody td:nth-child(4),
body.sgw-status-excluidos-view .table tbody td:nth-child(4),
body.sgw-status-excluidos-view table tbody td:nth-child(4) *,
body.sgw-status-excluidos-view .table tbody td:nth-child(4) * {
  color: #dc2626 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* Botão restaurar selecionados: amarelo alerta */
.sgw-alert-delete-selected-btn.sgw-restore-alert-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 12px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  color: #78350f !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .3px !important;
  cursor: pointer !important;
  animation: sgw-restore-yellow-pulse-v9 .85s infinite alternate !important;
  box-shadow: 0 0 0 3px rgba(250,204,21,.35), 0 14px 34px rgba(245,158,11,.35) !important;
}

@keyframes sgw-restore-yellow-pulse-v9 {
  0% {
    background: linear-gradient(135deg,#fef08a 0%,#facc15 45%,#f59e0b 100%);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg,#fde047 0%,#eab308 45%,#f59e0b 100%);
    transform: scale(1.025);
  }
  100% {
    background: linear-gradient(135deg,#facc15 0%,#f59e0b 45%,#d97706 100%);
    transform: scale(1.04);
  }
}

/* Botão excluir normal continua vermelho/amarelo */
.sgw-alert-delete-selected-btn.sgw-delete-alert-btn {
  color: #fff !important;
  animation: sgw-delete-red-pulse-v9 .85s infinite alternate !important;
}

@keyframes sgw-delete-red-pulse-v9 {
  0% {
    background: linear-gradient(135deg,#facc15 0%,#f97316 45%,#dc2626 100%);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg,#ef4444 0%,#dc2626 45%,#991b1b 100%);
    transform: scale(1.025);
  }
  100% {
    background: linear-gradient(135deg,#fde047 0%,#f59e0b 45%,#ef4444 100%);
    transform: scale(1.04);
  }
}

/* END SGW RESTAURAR CLIENTES EXCLUIDOS V9 */

/* SGW EXCLUIR 1 CLIENTE SEM BACKUP V10 */

/* Item Clientes Excluídos dentro do menu Opções */
.sgw-clientes-excluidos-menu-link {
  display: block !important;
  padding: 10px 12px !important;
  color: #991b1b !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  border-radius: 10px !important;
}

.sgw-clientes-excluidos-menu-link:hover {
  background: #fee2e2 !important;
}

/* Em Clientes Excluídos, nomes vermelhos */
body.sgw-status-excluidos-view table tbody td:nth-child(4),
body.sgw-status-excluidos-view .table tbody td:nth-child(4),
body.sgw-status-excluidos-view table tbody td:nth-child(4) *,
body.sgw-status-excluidos-view .table tbody td:nth-child(4) * {
  color: #dc2626 !important;
  font-weight: 500 !important;
  text-shadow: none !important;
}

/* Botão padrão */
.sgw-alert-delete-selected-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: 12px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  letter-spacing: .3px !important;
  cursor: pointer !important;
  position: relative !important;
  z-index: 20 !important;
}

/* Botão excluir */
.sgw-alert-delete-selected-btn.sgw-delete-alert-btn {
  color: #fff !important;
  animation: sgw-delete-red-pulse-v10 .85s infinite alternate !important;
  box-shadow: 0 0 0 3px rgba(250,204,21,.35), 0 14px 34px rgba(239,68,68,.35) !important;
}

@keyframes sgw-delete-red-pulse-v10 {
  0% {
    background: linear-gradient(135deg,#facc15 0%,#f97316 45%,#dc2626 100%);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg,#ef4444 0%,#dc2626 45%,#991b1b 100%);
    transform: scale(1.025);
  }
  100% {
    background: linear-gradient(135deg,#fde047 0%,#f59e0b 45%,#ef4444 100%);
    transform: scale(1.04);
  }
}

/* Botão restaurar */
.sgw-alert-delete-selected-btn.sgw-restore-alert-btn {
  color: #78350f !important;
  animation: sgw-restore-yellow-pulse-v10 .85s infinite alternate !important;
  box-shadow: 0 0 0 3px rgba(250,204,21,.35), 0 14px 34px rgba(245,158,11,.35) !important;
}

@keyframes sgw-restore-yellow-pulse-v10 {
  0% {
    background: linear-gradient(135deg,#fef08a 0%,#facc15 45%,#f59e0b 100%);
    transform: scale(1);
  }
  50% {
    background: linear-gradient(135deg,#fde047 0%,#eab308 45%,#f59e0b 100%);
    transform: scale(1.025);
  }
  100% {
    background: linear-gradient(135deg,#facc15 0%,#f59e0b 45%,#d97706 100%);
    transform: scale(1.04);
  }
}

/* Botão restaurar por linha */
.sgw-restaurar-excluido-link {
  display: inline-flex !important;
  margin-left: 8px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #dcfce7 !important;
  color: #166534 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}

/* END SGW EXCLUIR 1 CLIENTE SEM BACKUP V10 */

/* SGW OPÇÕES - CLIENTES EXCLUÍDOS FIX V11 */

.sgw-clientes-excluidos-opcoes-item {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #991b1b !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  white-space: normal !important;
  text-align: left !important;
  z-index: 999999 !important;
}

.sgw-clientes-excluidos-opcoes-item:hover {
  background: #fee2e2 !important;
  color: #7f1d1d !important;
}

/* END SGW OPÇÕES - CLIENTES EXCLUÍDOS FIX V11 */

/* SGW CLIENTES EXCLUIDOS DENTRO DO MENU OPCOES V12 */

.sgw-menu-clientes-excluidos-v12 {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 10px 12px !important;
  color: #991b1b !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  background: transparent !important;
}

.sgw-menu-clientes-excluidos-v12:hover {
  background: #fee2e2 !important;
  color: #7f1d1d !important;
}

/* END SGW CLIENTES EXCLUIDOS DENTRO DO MENU OPCOES V12 */

/* SGW AUTENTICACOES MIKROTIK CARDS V1 */

#sgw-auth-mk-panel {
  margin: 16px 0 18px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.18), transparent 30%),
    linear-gradient(135deg, #f8fafc, #e8fff3);
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 42px rgba(15,23,42,.08);
}

.sgw-auth-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sgw-auth-hero h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}

.sgw-auth-hero p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 13px;
}

#sgw-auth-import-btn {
  border: 0;
  border-radius: 15px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(34,197,94,.28);
}

#sgw-auth-import-btn:disabled {
  opacity: .65;
  cursor: wait;
}

.sgw-auth-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.sgw-auth-stats > div {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 13px 15px;
  box-shadow: 0 10px 24px rgba(15,23,42,.05);
}

.sgw-auth-stats b {
  display: block;
  font-size: 24px;
  color: #0f172a;
  font-weight: 950;
}

.sgw-auth-stats span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.sgw-auth-msg {
  margin: 10px 0;
  font-size: 13px;
  font-weight: 800;
}

.sgw-auth-msg.ok {
  color: #166534;
}

.sgw-auth-msg.erro {
  color: #991b1b;
}

.sgw-auth-msg.alerta {
  color: #92400e;
}

.sgw-auth-msg.info {
  color: #1d4ed8;
}

.sgw-auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
}

.sgw-auth-card {
  border-radius: 20px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15,23,42,.08);
}

.sgw-auth-card.ok {
  border-left: 6px solid #22c55e;
  background: linear-gradient(135deg, #ffffff, #f0fdf4);
}

.sgw-auth-card.alerta {
  border-left: 6px solid #facc15;
  background: linear-gradient(135deg, #fffbea, #fef9c3);
  animation: sgwAuthAlertPulse 1s infinite alternate;
}

@keyframes sgwAuthAlertPulse {
  from {
    box-shadow: 0 0 0 2px rgba(250,204,21,.18), 0 16px 36px rgba(15,23,42,.08);
  }
  to {
    box-shadow: 0 0 0 6px rgba(250,204,21,.24), 0 20px 44px rgba(245,158,11,.16);
  }
}

.sgw-auth-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sgw-auth-card-top strong {
  display: block;
  color: #0f172a;
  font-size: 17px;
  font-weight: 950;
}

.sgw-auth-card-top span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
}

.sgw-auth-card-top em {
  font-style: normal;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.sgw-auth-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 12px;
}

.sgw-auth-card-grid label {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sgw-auth-card-grid b {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  word-break: break-word;
}

.sgw-auth-empty {
  grid-column: 1/-1;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

/* END SGW AUTENTICACOES MIKROTIK CARDS V1 */

/* SGW MIKROTIK SYNC PROGRESS V1 */

.sgw-sync-button {
  background: linear-gradient(135deg, #16a34a, #22c55e) !important;
  color: #fff !important;
  font-weight: 950 !important;
}

#sgw-sync-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

#sgw-sync-modal.open {
  display: block;
}

.sgw-sync-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(8px);
}

.sgw-sync-box {
  position: relative;
  width: min(920px, calc(100vw - 40px));
  max-height: calc(100vh - 50px);
  overflow: auto;
  margin: 25px auto;
  border-radius: 28px;
  background:
    radial-gradient(circle at 95% 5%, rgba(34,197,94,.20), transparent 28%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid rgba(219, 234, 254, .9);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .35);
  padding: 24px;
}

.sgw-sync-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.sgw-sync-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
  color: #0f172a;
}

.sgw-sync-head p {
  margin: 6px 0 0;
  color: #475569;
  font-size: 14px;
}

#sgw-sync-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
}

.sgw-sync-progress-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.sgw-sync-progress-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 900;
  color: #0f172a;
}

#sgw-sync-percent {
  color: #16a34a;
  font-size: 20px;
}

.sgw-sync-bar {
  height: 18px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

#sgw-sync-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #16a34a, #22c55e, #84cc16);
  box-shadow: 0 0 20px rgba(34, 197, 94, .55);
  transition: width .35s ease;
}

.sgw-sync-time {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.sgw-sync-time b {
  color: #0f172a;
}

.sgw-sync-summary {
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.sgw-sync-summary > div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 13px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.sgw-sync-summary b {
  display: block;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.sgw-sync-summary span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.sgw-sync-log-title {
  margin: 12px 0 8px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 950;
}

#sgw-sync-log {
  min-height: 220px;
  max-height: 340px;
  overflow: auto;
  padding: 14px;
  border-radius: 18px;
  background: #ffffff;
  color: #bbf7d0;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  box-shadow: inset 0 0 0 1px rgba(34,197,94,.18);
}

.sgw-sync-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

#sgw-sync-refresh {
  border: 0;
  border-radius: 14px;
  background: #16a34a;
  color: #fff;
  padding: 11px 16px;
  font-weight: 950;
  cursor: pointer;
}

@media(max-width: 800px) {
  .sgw-sync-summary {
    grid-template-columns: 1fr 1fr;
  }

  .sgw-sync-time {
    flex-direction: column;
  }
}

/* END SGW MIKROTIK SYNC PROGRESS V1 */

/* SGW RESTAURAR BACKUP CLIENTES ADMIN V1 */

.sgw-restore-clientes-box {
  margin: 18px 0;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #f0fdf4);
  border: 1px solid #bbf7d0;
  box-shadow: 0 18px 42px rgba(15,23,42,.08);
}

.sgw-restore-clientes-box h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.sgw-restore-clientes-box p {
  margin: 0 0 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.sgw-restore-clientes-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.sgw-restore-clientes-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.sgw-restore-clientes-form select,
.sgw-restore-clientes-form input[type="file"] {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  background: #fff;
}

@media(max-width: 900px) {
  .sgw-restore-clientes-form {
    grid-template-columns: 1fr;
  }
}

/* END SGW RESTAURAR BACKUP CLIENTES ADMIN V1 */

/* SGW AUTH CARDS EDIT V5 */

.sgw-auth-card-actions {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.sgw-auth-edit-btn {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 12px !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  font-size: 16px !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(37,99,235,.14) !important;
}

.sgw-auth-edit-btn:hover {
  background: #dbeafe !important;
  transform: translateY(-1px);
}

#sgw-auth-revincular-btn {
  border: 0;
  border-radius: 15px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2563eb, #16a34a);
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(37,99,235,.24);
}

#sgw-auth-revincular-btn:disabled {
  opacity: .65;
  cursor: wait;
}

#sgw-auth-edit-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

#sgw-auth-edit-modal.open {
  display: block;
}

.sgw-auth-edit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.62);
  backdrop-filter: blur(8px);
}

.sgw-auth-edit-box {
  position: relative;
  width: min(520px, calc(100vw - 36px));
  margin: 70px auto;
  border-radius: 24px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(34,197,94,.18), transparent 30%),
    linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #dbeafe;
  box-shadow: 0 34px 90px rgba(15,23,42,.35);
}

.sgw-auth-edit-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sgw-auth-edit-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}

#sgw-auth-edit-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

#sgw-auth-edit-form {
  display: grid;
  gap: 12px;
}

#sgw-auth-edit-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

#sgw-auth-edit-form input {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
}

#sgw-auth-edit-form small {
  color: #64748b;
  font-weight: 700;
}

.sgw-auth-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.sgw-auth-edit-actions button {
  border: 0;
  border-radius: 13px;
  padding: 10px 14px;
  font-weight: 950;
  cursor: pointer;
}

.sgw-auth-edit-actions button[type="button"] {
  background: #e2e8f0;
  color: #334155;
}

.sgw-auth-edit-actions button[type="submit"] {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
}

/* END SGW AUTH CARDS EDIT V5 */

/* SGW VINCULAR CLIENTE AUTH V6 */

.sgw-auth-link-btn {
  min-height: 34px !important;
  padding: 7px 10px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #facc15, #f97316) !important;
  color: #7c2d12 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 22px rgba(245,158,11,.28) !important;
  animation: sgwAuthLinkPulseV6 .85s infinite alternate !important;
}

@keyframes sgwAuthLinkPulseV6 {
  from {
    transform: scale(1);
    box-shadow: 0 0 0 2px rgba(250,204,21,.25), 0 10px 22px rgba(245,158,11,.22);
  }
  to {
    transform: scale(1.035);
    box-shadow: 0 0 0 5px rgba(250,204,21,.30), 0 16px 30px rgba(245,158,11,.32);
  }
}

.sgw-auth-edit-box-wide {
  width: min(920px, calc(100vw - 36px)) !important;
  max-height: calc(100vh - 50px) !important;
  overflow: auto !important;
}

.sgw-auth-secret-resumo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sgw-auth-secret-resumo label {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.sgw-auth-secret-resumo b {
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  word-break: break-word !important;
}

.sgw-auth-search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.sgw-auth-search-box input {
  min-height: 44px !important;
}

#sgw-auth-cliente-buscar-btn {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  padding: 0 16px;
  background: #2563eb;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.sgw-auth-cliente-selecionado {
  padding: 10px 12px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  font-weight: 850;
}

.sgw-auth-clientes-resultados {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.sgw-auth-cliente-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15,23,42,.05);
}

.sgw-auth-cliente-row:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.sgw-auth-cliente-main strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.sgw-auth-cliente-main span {
  display: block;
  margin-top: 4px;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.sgw-auth-cliente-main small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.sgw-auth-selecionar-cliente {
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.sgw-auth-loading {
  padding: 16px;
  border-radius: 16px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 900;
}

@media(max-width: 800px) {
  .sgw-auth-secret-resumo,
  .sgw-auth-search-box,
  .sgw-auth-cliente-row {
    grid-template-columns: 1fr;
  }
}

/* END SGW VINCULAR CLIENTE AUTH V6 */

/* SGW AUTENTICACOES PPP MONITOR V7 */

#sgw-pppoe-monitor {
  margin: 16px 0 22px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 42px rgba(15,23,42,.08);
}

.sgw-pppoe-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.sgw-pppoe-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 23px;
  font-weight: 950;
}

.sgw-pppoe-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

#sgw-pppoe-reload {
  border: 0;
  border-radius: 14px;
  padding: 11px 15px;
  background: linear-gradient(135deg, #2563eb, #16a34a);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.sgw-pppoe-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}

.sgw-pppoe-tabs button {
  border: 0;
  border-radius: 0;
  padding: 13px 18px;
  background: transparent;
  color: #2563eb;
  font-weight: 850;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.sgw-pppoe-tabs button.active {
  background: #0d6efd;
  color: #fff;
  border-bottom-color: #0d6efd;
}

.sgw-pppoe-tabs button small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  opacity: .85;
}

.sgw-pppoe-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

#sgw-pppoe-search {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  padding: 0 12px;
  font-size: 14px;
}

.sgw-pppoe-filters {
  display: flex;
  gap: 6px;
}

.sgw-pppoe-filters button {
  height: 38px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0 12px;
  font-weight: 850;
  cursor: pointer;
}

.sgw-pppoe-filters button.active {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.sgw-pppoe-counts {
  display: flex;
  gap: 18px;
  font-size: 13px;
  white-space: nowrap;
}

.sgw-pppoe-counts b {
  font-weight: 950;
}

.sgw-pppoe-counts .on {
  color: #16a34a;
}

.sgw-pppoe-counts .off {
  color: #ef4444;
}

.sgw-pppoe-table-wrap {
  overflow: auto;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.sgw-pppoe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sgw-pppoe-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid #e2e8f0;
}

.sgw-pppoe-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.sgw-pppoe-table tr:hover {
  background: #f1f5f9;
}

.sgw-pppoe-table tr.sem-cliente {
  background: #fff7ed;
}

.sgw-dot {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 999px;
}

.sgw-dot.on {
  background: #078b16;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.sgw-dot.off {
  background: #ef0000;
  box-shadow: 0 0 0 4px rgba(239,68,68,.12);
}

.sgw-cliente-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 300px;
}

.sgw-open-cliente,
.sgw-bind-mini {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 15px;
  padding: 0;
}

.sgw-open-cliente:hover,
.sgw-bind-mini:hover {
  color: #2563eb;
}

.sgw-profile-btn,
.sgw-vincular-btn {
  border: 0;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.sgw-profile-btn {
  background: #dbeafe;
  color: #1d4ed8;
}

.sgw-vincular-btn {
  background: #fef3c7;
  color: #92400e;
  animation: sgwAuthVincularPulseV7 .9s infinite alternate;
}

@keyframes sgwAuthVincularPulseV7 {
  from { box-shadow: 0 0 0 2px rgba(250,204,21,.18); }
  to { box-shadow: 0 0 0 6px rgba(250,204,21,.28); }
}

#sgw-cliente-profile-modal,
#sgw-auth-bind-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

#sgw-cliente-profile-modal.open,
#sgw-auth-bind-modal.open {
  display: block;
}

.sgw-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.62);
  backdrop-filter: blur(7px);
}

.sgw-modal-box {
  position: relative;
  width: min(620px, calc(100vw - 36px));
  margin: 55px auto;
  padding: 22px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #dbeafe;
  box-shadow: 0 34px 90px rgba(15,23,42,.35);
}

.sgw-modal-wide {
  width: min(950px, calc(100vw - 36px));
  max-height: calc(100vh - 60px);
  overflow: auto;
}

.sgw-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sgw-modal-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}

.sgw-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 24px;
  font-weight: 950;
  cursor: pointer;
}

.sgw-profile-card h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.sgw-profile-grid,
.sgw-bind-resumo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sgw-bind-resumo {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.sgw-profile-grid div,
.sgw-bind-resumo div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
}

.sgw-profile-grid label,
.sgw-bind-resumo label {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sgw-profile-grid b,
.sgw-bind-resumo b {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  word-break: break-word;
}

.sgw-bind-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.sgw-bind-search input {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
}

.sgw-bind-search button,
#sgw-bind-save-btn {
  border: 0;
  border-radius: 12px;
  background: #16a34a;
  color: #fff;
  padding: 0 14px;
  font-weight: 950;
  cursor: pointer;
}

#sgw-bind-selected {
  padding: 10px 12px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 10px;
}

#sgw-bind-results {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
}

.sgw-client-select-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.sgw-client-select-row:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.sgw-client-select-row strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.sgw-client-select-row span,
.sgw-client-select-row small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.sgw-client-select-row button {
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.sgw-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.sgw-cancel-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 950;
  cursor: pointer;
}

.sgw-loading,
.sgw-empty {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 850;
}

@media(max-width: 900px) {
  .sgw-pppoe-toolbar,
  .sgw-profile-grid,
  .sgw-bind-resumo,
  .sgw-bind-search,
  .sgw-client-select-row {
    grid-template-columns: 1fr;
  }

  .sgw-pppoe-counts {
    flex-wrap: wrap;
  }
}

/* END SGW AUTENTICACOES PPP MONITOR V7 */

/* SGW MONITORAMENTO CLIENTES ON/OFF PPP V8 */

#sgw-mon-onoff-v8 {
  margin: 16px 0 24px;
  padding: 18px;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  box-shadow: 0 12px 28px rgba(15,23,42,.06);
}

.sgw-mon-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.sgw-mon-top h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.sgw-mon-top p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.sgw-mon-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sgw-mon-actions button {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

#sgw-mon-active-now {
  background: #16a34a;
}

#sgw-mon-refresh {
  background: #2563eb;
}

.sgw-mon-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
  border-bottom: 1px solid #dbe3ef;
}

.sgw-mon-tabs button {
  min-width: 150px;
  border: 1px solid #dbe3ef;
  border-bottom: 0;
  background: #ffffff;
  color: #0067ff;
  padding: 14px 18px;
  font-weight: 850;
  cursor: pointer;
  text-align: left;
}

.sgw-mon-tabs button.active {
  background: #007bff;
  border-color: #007bff;
  color: #ffffff;
}

.sgw-mon-tabs button small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  opacity: .9;
}

.sgw-mon-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
}

#sgw-mon-search {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 0;
  padding: 0 12px;
  font-size: 14px;
}

.sgw-mon-filterbox {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.sgw-mon-filterbox button {
  height: 38px;
  border: 1px solid #cbd5e1;
  background: #fff;
  padding: 0 10px;
  color: #334155;
  font-weight: 850;
  cursor: pointer;
}

.sgw-mon-filterbox button.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.sgw-mon-counts {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  font-size: 13px;
}

.sgw-mon-counts b {
  font-weight: 950;
}

.sgw-mon-counts .on {
  color: #16a34a;
}

.sgw-mon-counts .off {
  color: #ef4444;
}

#sgw-mon-msg {
  margin: 8px 0;
  font-size: 12px;
  font-weight: 850;
}

#sgw-mon-msg.ok {
  color: #166534;
}

#sgw-mon-msg.info {
  color: #1d4ed8;
}

#sgw-mon-msg.alerta {
  color: #92400e;
}

#sgw-mon-msg.erro {
  color: #991b1b;
}

.sgw-mon-table-box {
  max-height: calc(100vh - 270px);
  overflow: auto;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.sgw-mon-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sgw-mon-table th {
  background: #ffffff;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  text-align: left;
  padding: 11px 10px;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 2;
}

.sgw-mon-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}

.sgw-mon-table tr:hover {
  background: #f1f5f9;
}

.sgw-mon-table tr.sem-cliente {
  background: #fff7ed;
}

.sgw-mon-dot {
  display: inline-flex;
  width: 16px;
  height: 16px;
  border-radius: 999px;
}

.sgw-mon-dot.on {
  background: #078b16;
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.sgw-mon-dot.off {
  background: #ef0000;
  box-shadow: 0 0 0 4px rgba(239,68,68,.12);
}

.sgw-mon-cliente {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 310px;
}

.sgw-mon-open-cliente,
.sgw-mon-vincular {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  padding: 0;
}

.sgw-mon-open-cliente {
  color: #64748b;
}

.sgw-mon-open-cliente:hover {
  color: #2563eb;
}

.sgw-mon-vincular {
  color: #b45309;
  animation: sgwMonVincularPulseV8 .9s infinite alternate;
}

@keyframes sgwMonVincularPulseV8 {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.sgw-mon-table a {
  color: #007bff;
  text-decoration: none;
}

#sgw-mon-perfil-modal,
#sgw-mon-bind-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

#sgw-mon-perfil-modal.open,
#sgw-mon-bind-modal.open {
  display: block;
}

.sgw-mon-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.62);
  backdrop-filter: blur(7px);
}

.sgw-mon-modal-box {
  position: relative;
  width: min(650px, calc(100vw - 36px));
  margin: 55px auto;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #dbeafe;
  box-shadow: 0 34px 90px rgba(15,23,42,.35);
}

.sgw-mon-modal-wide {
  width: min(950px, calc(100vw - 36px));
  max-height: calc(100vh - 60px);
  overflow: auto;
}

.sgw-mon-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sgw-mon-modal-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 22px;
  font-weight: 950;
}

.sgw-mon-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 24px;
  font-weight: 950;
  cursor: pointer;
}

.sgw-mon-profile h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 20px;
  font-weight: 950;
}

.sgw-mon-profile-grid,
.sgw-mon-bind-resumo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sgw-mon-bind-resumo {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 14px;
}

.sgw-mon-profile-grid div,
.sgw-mon-bind-resumo div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px;
}

.sgw-mon-profile-grid label,
.sgw-mon-bind-resumo label {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.sgw-mon-profile-grid b,
.sgw-mon-bind-resumo b {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  word-break: break-word;
}

.sgw-mon-bind-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

.sgw-mon-bind-search input {
  height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 12px;
}

.sgw-mon-bind-search button,
#sgw-mon-bind-save-btn {
  border: 0;
  border-radius: 12px;
  background: #16a34a;
  color: #fff;
  padding: 0 14px;
  font-weight: 950;
  cursor: pointer;
}

#sgw-mon-bind-selected {
  padding: 10px 12px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 10px;
}

#sgw-mon-bind-results {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
}

.sgw-mon-client-select {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.sgw-mon-client-select:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.sgw-mon-client-select strong {
  display: block;
  color: #0f172a;
  font-size: 14px;
  font-weight: 950;
}

.sgw-mon-client-select span,
.sgw-mon-client-select small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
}

.sgw-mon-client-select button {
  border: 0;
  border-radius: 12px;
  padding: 9px 12px;
  background: #2563eb;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.sgw-mon-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.sgw-mon-cancel-btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 950;
  cursor: pointer;
}

.sgw-mon-loading,
.sgw-mon-empty {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 850;
}

@media(max-width: 900px) {
  .sgw-mon-top,
  .sgw-mon-toolbar,
  .sgw-mon-profile-grid,
  .sgw-mon-bind-resumo,
  .sgw-mon-bind-search,
  .sgw-mon-client-select {
    grid-template-columns: 1fr;
    display: grid;
  }

  .sgw-mon-counts {
    flex-wrap: wrap;
  }
}

/* END SGW MONITORAMENTO CLIENTES ON/OFF PPP V8 */

/* SGW OCULTAR BLOCO ANTIGO CLIENTES ON/OFF V11 */
body.sgw-monitor-onoff-v8-page #sgw-mon-onoff-v8 ~ * {
  display: none !important;
}
/* END SGW OCULTAR BLOCO ANTIGO CLIENTES ON/OFF V11 */


.sgw-mon-old-hidden-v11 {
  display: none !important;
}



/* ==========================================================
 SGW V493 - CLIENTES PREMIUM RESIDUOS DE TEMA
 Corrige apenas KPI/linha de desativados e nota premium.
 Nao altera filtros, paginação, perfil ou logica.
 ========================================================== */

body.sgw-clientes-premium .sgw-clientes-premium-note{
  background:#eefaf4 !important;
  color:#9ff2c7 !important;
  border-color:#217a57 !important;
}

/* DESATIVADOS: mantém semântica discreta, porém no tema escuro. */
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link,
body.sgw-clientes-premium .kpi.dark{
  background:linear-gradient(135deg,#202d3d 0%,#172435 100%) !important;
  color:#aab9c9 !important;
  border-color:#425267 !important;
  box-shadow:0 10px 24px rgba(0,0,0,.14) !important;
}
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link small,
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link strong,
body.sgw-clientes-premium .kpi.dark small,
body.sgw-clientes-premium .kpi.dark strong{
  color:#c5d3e1 !important;
}
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link strong,
body.sgw-clientes-premium .kpi.dark strong{
  color:#e2e8f0 !important;
  opacity:.92 !important;
}
body.sgw-clientes-premium .kpi.dark .kpi-avatar,
body.sgw-clientes-premium .kpi.dark .kpi-ghost{
  background:rgba(148,163,184,.12) !important;
  color:#aab9c9 !important;
}
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link:hover,
body.sgw-clientes-premium .kpi.dark:hover{
  background:linear-gradient(135deg,#26384b 0%,#1b2b3e 100%) !important;
}
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link.sgw-selected{
  outline:2px solid rgba(148,163,184,.45) !important;
}
body.sgw-clientes-premium .kpi.dark.sgw-cliente-filter-link.sgw-selected::after{
  background:#334155 !important;
  color:#e2e8f0 !important;
  border-color:#475569 !important;
}

/* TODOS: neutral escuro */
body.sgw-clientes-premium .kpi.kpi-white.sgw-cliente-filter-link{
  background:linear-gradient(135deg,#f8fbff 0%,#ffffff 100%) !important;
  color:#eaf4ff !important;
  border-color:#17466f !important;
}
body.sgw-clientes-premium .kpi.kpi-white.sgw-cliente-filter-link small{
  color:#91afd0 !important;
}
body.sgw-clientes-premium .kpi.kpi-white.sgw-cliente-filter-link strong{
  color:#f6faff !important;
}

/* Linha desativada: preserva nome amarelo sem fundo claro. */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row,
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row,
table tbody tr.sgw-cliente-desativado-row{
  background:#30270b !important;
}
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td,
body.sgw-clientes-premium .table tbody tr.sgw-cliente-desativado-row td,
table tbody tr.sgw-cliente-desativado-row td{
  background:#30270b !important;
  color:#ffe8a6 !important;
  border-color:#6e5914 !important;
}
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row:hover,
table tbody tr.sgw-cliente-desativado-row:hover{
  background:#3b300d !important;
  box-shadow:inset 4px 0 0 #facc15 !important;
}
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row:hover td,
table tbody tr.sgw-cliente-desativado-row:hover td{
  background:#3b300d !important;
}

/* Nome continua amarelo */
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td:nth-child(4),
body.sgw-clientes-premium table tbody tr.sgw-cliente-desativado-row td:nth-child(4) *,
body.sgw-status-desativados-view table tbody td:nth-child(4),
body.sgw-status-desativados-view table tbody td:nth-child(4) *{
  color:#facc15 !important;
  font-weight:950 !important;
}
