* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  background: #f4f7fb;
  color: #172033;
  font-family: Arial, Helvetica, sans-serif;
}

.sidebar {
  width: 250px;
  min-height: 100vh;
  padding: 28px 18px;
  background: #111827;
  color: white;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.logo > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #2563eb;
  font-weight: bold;
}

.logo strong,
.logo small {
  display: block;
}

.logo small {
  margin-top: 3px;
  color: #9ca3af;
}

nav {
  display: grid;
  gap: 8px;
}

nav a {
  padding: 13px 15px;
  border-radius: 9px;
  color: #cbd5e1;
  text-decoration: none;
}

nav a:hover,
nav a.ativo {
  background: #2563eb;
  color: white;
}

main {
  width: calc(100% - 250px);
  padding: 32px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

header h1 {
  margin-bottom: 6px;
  font-size: 28px;
}

header p {
  color: #64748b;
}

.status {
  padding: 9px 14px;
  border-radius: 30px;
  background: #dcfce7;
  color: #166534;
  font-size: 14px;
  font-weight: bold;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 25px;
}

.card,
.painel {
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.card {
  padding: 22px;
}

.card span {
  display: block;
  margin-bottom: 14px;
  color: #64748b;
}

.card strong {
  font-size: 32px;
}

.painel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px;
}

.painel h2 {
  margin-bottom: 8px;
}

.painel p {
  color: #64748b;
}

.botao {
  padding: 12px 18px;
  border-radius: 9px;
  background: #2563eb;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 900px) {
  .sidebar {
    width: 200px;
  }

  main {
    width: calc(100% - 200px);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bloco {
  display: block;
  margin-bottom: 20px;
}

.filtros {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 180px auto auto;
  gap: 12px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 12px 13px;
  background: white;
  color: #172033;
  font-size: 15px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.botao.secundario {
  border: 1px solid #cbd5e1;
  background: white;
  color: #334155;
}

.alerta {
  margin-bottom: 20px;
  border-radius: 10px;
  padding: 13px 15px;
  font-weight: bold;
}

.alerta.sucesso {
  border: 1px solid #86efac;
  background: #dcfce7;
  color: #166534;
}

.alerta.erro {
  border: 1px solid #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.tabela-container {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  text-transform: uppercase;
}

tbody tr:hover {
  background: #f8fafc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.texto-secundario {
  display: block;
  margin-top: 5px;
  color: #64748b;
}

.vazio {
  padding: 40px;
  color: #64748b;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
}

.badge.ativo {
  background: #dcfce7;
  color: #166534;
}

.badge.inativo {
  background: #e2e8f0;
  color: #475569;
}

.acoes {
  display: flex;
  align-items: center;
  gap: 7px;
}

.acao {
  display: inline-block;
  border-radius: 7px;
  padding: 7px 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}

.acao.editar {
  background: #dbeafe;
  color: #1d4ed8;
}

.acao.status {
  background: #fef3c7;
  color: #92400e;
}

.acao.excluir {
  background: #fee2e2;
  color: #b91c1c;
}

.formulario-container {
  max-width: 900px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 25px;
  background: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.grade-formulario {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.campo label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: bold;
}

.campo-grande,
.campo-total {
  grid-column: 1 / -1;
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto;
}

.rodape-formulario {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

@media (max-width: 900px) {
  .filtros {
    grid-template-columns: 1fr;
  }

  .grade-formulario {
    grid-template-columns: 1fr;
  }

  .campo-grande,
  .campo-total {
    grid-column: auto;
  }
}

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
}

.sidebar nav {
  flex: 1;
}

main {
  margin-left: 250px;
}

.usuario-sidebar {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #334155;
}

.usuario-sidebar strong,
.usuario-sidebar small {
  display: block;
}

.usuario-sidebar small {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.usuario-sidebar form {
  margin-top: 12px;
}

.usuario-sidebar button {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #1e293b;
  color: #e2e8f0;
}

.usuario-sidebar button:hover {
  background: #dc2626;
  color: white;
}

.pagina-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
  background:
    radial-gradient(circle at top left, #1d4ed8, transparent 35%),
    #0f172a;
}

.login-container {
  width: min(1050px, 100%);
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: white;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.login-apresentacao {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(30, 64, 175, 0.90)
    );
  color: white;
}

.login-marca {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-marca > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #2563eb;
  font-weight: bold;
}

.login-marca strong,
.login-marca small {
  display: block;
}

.login-marca small {
  margin-top: 4px;
  color: #bfdbfe;
}

.login-apresentacao h1 {
  max-width: 520px;
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.1;
}

.login-apresentacao p {
  max-width: 500px;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.6;
}

.login-formulario {
  display: grid;
  place-items: center;
  padding: 48px;
}

.login-formulario form {
  width: 100%;
  max-width: 360px;
}

.login-formulario h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.login-formulario > form > p {
  margin-bottom: 28px;
  color: #64748b;
}

.login-formulario .campo {
  margin-bottom: 18px;
}

.login-botao {
  width: 100%;
  margin-top: 8px;
}

@media (max-width: 900px) {
  main {
    margin-left: 200px;
  }

  .login-container {
    grid-template-columns: 1fr;
  }

  .login-apresentacao {
    display: none;
  }
}

@media (max-width: 650px) {
  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  body:not(.pagina-login) {
    display: block;
  }

  main {
    width: 100%;
    margin-left: 0;
    padding: 20px;
  }
}

.rotulo-pagina {
  display: block;
  margin-bottom: 7px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.cabecalho-pagina {
  align-items: flex-end;
}

.cabecalho-pagina h1 {
  font-size: 32px;
}

.botao-destaque {
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
}

.barra-filtros {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}

.barra-filtros form {
  display: grid;
  grid-template-columns:
    minmax(280px, 1fr)
    190px
    190px
    auto
    auto;
  gap: 12px;
}

.lista-clientes-iptv {
  display: grid;
  grid-template-columns: repeat(
    auto-fill,
    minmax(340px, 1fr)
  );
  gap: 18px;
}

.cliente-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  background: white;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cliente-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
}

.cliente-card-topo {
  display: flex;
  align-items: center;
  gap: 13px;
}

.cliente-avatar,
.perfil-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  border-radius: 15px;
  background:
    linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-weight: 800;
}

.cliente-avatar {
  width: 48px;
  height: 48px;
}

.cliente-identidade {
  min-width: 0;
  flex: 1;
}

.cliente-identidade a {
  color: #172033;
  text-decoration: none;
}

.cliente-identidade h3 {
  overflow: hidden;
  margin-bottom: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cliente-identidade span {
  color: #64748b;
  font-size: 13px;
}

.status-iptv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-ativo {
  background: #dcfce7;
  color: #166534;
}

.status-vence_em_breve {
  background: #fef3c7;
  color: #92400e;
}

.status-vencido,
.status-bloqueado {
  background: #fee2e2;
  color: #b91c1c;
}

.status-teste {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-cancelado {
  background: #e2e8f0;
  color: #475569;
}

.cliente-card-dados {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
  padding: 17px 0;
  border-top: 1px solid #eef2f7;
  border-bottom: 1px solid #eef2f7;
}

.cliente-card-dados small,
.info-item small {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
}

.cliente-card-dados strong,
.info-item strong {
  display: block;
  font-size: 14px;
}

.fonte-mono {
  font-family: Consolas, Monaco, monospace;
}

.valor-destaque {
  color: #15803d;
}

.cliente-card-rodape {
  display: flex;
  gap: 8px;
}

.acao-card {
  flex: 1;
  border-radius: 9px;
  padding: 9px;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.acao-card.visualizar {
  background: #eff6ff;
  color: #1d4ed8;
}

.acao-card.editar {
  background: #f8fafc;
  color: #475569;
}

.acao-card.whatsapp,
.whatsapp-grande {
  background: #dcfce7;
  color: #166534;
}

.estado-vazio {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 60px 25px;
  background: white;
  text-align: center;
}

.estado-vazio p {
  margin: 9px 0 20px;
  color: #64748b;
}

.formulario-iptv {
  max-width: 1050px;
}

.secao-formulario {
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  background: white;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.titulo-secao {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.titulo-secao > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 800;
}

.titulo-secao h2 {
  margin-bottom: 3px;
  font-size: 18px;
}

.titulo-secao p {
  color: #64748b;
  font-size: 13px;
}

.perfil-cliente {
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 25px;
  background:
    linear-gradient(
      135deg,
      rgba(239, 246, 255, 0.9),
      white 55%
    );
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.perfil-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.perfil-identidade {
  display: flex;
  align-items: center;
  gap: 17px;
}

.perfil-avatar {
  width: 68px;
  height: 68px;
  font-size: 20px;
}

.perfil-identidade h1 {
  margin-bottom: 7px;
  font-size: 30px;
}

.perfil-subtitulo {
  display: flex;
  gap: 8px;
  color: #64748b;
}

.perfil-acoes {
  display: flex;
  gap: 10px;
}

.perfil-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #dbe4ef;
}

.perfil-status form {
  display: flex;
  gap: 8px;
}

.botao.pequeno {
  padding: 10px 13px;
}

.grade-detalhes-cliente {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}

.coluna-principal,
.coluna-lateral {
  display: grid;
  align-content: start;
  gap: 20px;
}

.painel-detalhes {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
  background: white;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
}

.painel-titulo {
  margin-bottom: 20px;
}

.painel-titulo h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.painel-titulo p {
  color: #64748b;
  font-size: 13px;
}

.grade-informacoes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.info-item {
  border-radius: 12px;
  padding: 15px;
  background: #f8fafc;
}

.linha-tempo {
  position: relative;
  padding-left: 10px;
}

.evento-historico {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  padding-bottom: 22px;
}

.evento-marcador {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border: 3px solid #bfdbfe;
  border-radius: 50%;
  background: #2563eb;
}

.evento-historico small {
  color: #94a3b8;
}

.evento-historico h3 {
  margin: 4px 0;
  font-size: 15px;
}

.evento-historico p {
  color: #64748b;
  font-size: 13px;
}

.registro-lateral {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f7;
}

.registro-lateral:last-child {
  border-bottom: 0;
}

.registro-lateral strong,
.registro-lateral small {
  display: block;
}

.registro-lateral small {
  margin-top: 4px;
  color: #64748b;
}

.texto-vazio {
  color: #94a3b8;
  font-size: 14px;
}

.zona-perigo {
  border-color: #fecaca;
}

.zona-perigo p {
  margin: 10px 0 15px;
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.5;
}

.botao.perigo {
  width: 100%;
  background: #dc2626;
  color: white;
}

@media (max-width: 1100px) {
  .barra-filtros form {
    grid-template-columns: 1fr 1fr;
  }

  .grade-detalhes-cliente {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .lista-clientes-iptv {
    grid-template-columns: 1fr;
  }

  .barra-filtros form,
  .grade-informacoes {
    grid-template-columns: 1fr;
  }

  .perfil-topo,
  .perfil-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .perfil-acoes,
  .perfil-status form {
    width: 100%;
    flex-direction: column;
  }

  .perfil-acoes .botao,
  .perfil-status form .botao {
    width: 100%;
    text-align: center;
  }
}

.cabecalho-dashboard {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.cabecalho-dashboard h1 {
  margin-bottom: 7px;
  font-size: 34px;
}

.cabecalho-dashboard p {
  color: #64748b;
}

.acoes-dashboard {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cards-dashboard-iptv {
  display: grid;
  grid-template-columns: repeat(
    4,
    minmax(190px, 1fr)
  );
  gap: 16px;
  margin-bottom: 20px;
}

.card-indicador {
  position: relative;
  overflow: hidden;
  min-height: 165px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  background: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card-indicador::after {
  position: absolute;
  right: -30px;
  bottom: -45px;
  width: 115px;
  height: 115px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.05;
}

.card-indicador-topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-indicador-topo > span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.icone-indicador {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: currentColor;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.card-indicador > strong {
  display: block;
  margin: 18px 0 7px;
  color: #172033;
  font-size: 33px;
}

.card-indicador > small {
  color: #94a3b8;
  font-size: 12px;
}

.card-total {
  color: #2563eb;
}

.card-ativos {
  color: #16a34a;
}

.card-alerta {
  color: #d97706;
}

.card-vencidos {
  color: #dc2626;
}

.card-bloqueados {
  color: #7c3aed;
}

.card-testes {
  color: #0891b2;
}

.card-receita {
  grid-column: span 2;
  color: #059669;
  background:
    linear-gradient(
      135deg,
      #ecfdf5,
      white 65%
    );
}

.card-receita .valor-receita {
  font-size: 30px;
}

.grade-dashboard-principal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 345px;
  gap: 20px;
}

.coluna-dashboard-principal,
.coluna-dashboard-lateral {
  display: grid;
  align-content: start;
  gap: 20px;
}

.painel-dashboard {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.cabecalho-painel-dashboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 22px;
  border-bottom: 1px solid #eef2f7;
}

.cabecalho-painel-dashboard h2 {
  margin-bottom: 4px;
  font-size: 18px;
}

.cabecalho-painel-dashboard p {
  color: #64748b;
  font-size: 13px;
}

.cabecalho-painel-dashboard > a {
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.tabela-dashboard-container {
  overflow-x: auto;
}

.tabela-dashboard {
  box-shadow: none;
}

.tabela-dashboard th {
  padding: 13px 20px;
}

.tabela-dashboard td {
  padding: 15px 20px;
}

.cliente-link-dashboard {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #172033;
  text-decoration: none;
}

.cliente-link-dashboard strong,
.cliente-link-dashboard small {
  display: block;
}

.cliente-link-dashboard small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 12px;
}

.mini-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  flex-shrink: 0;
  place-items: center;
  border-radius: 11px;
  background:
    linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.acoes-tabela-dashboard {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acoes-tabela-dashboard a {
  color: #2563eb;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.acoes-tabela-dashboard .link-whatsapp-dashboard {
  color: #15803d;
}

.lista-vencimentos-dashboard {
  padding: 0 20px;
}

.vencimento-dashboard-item {
  display: grid;
  grid-template-columns:
    55px
    minmax(160px, 1fr)
    115px
    110px
    auto;
  align-items: center;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid #eef2f7;
}

.vencimento-dashboard-item:last-child {
  border-bottom: 0;
}

.data-vencimento-dashboard {
  width: 48px;
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  text-align: center;
}

.data-vencimento-dashboard strong,
.data-vencimento-dashboard small {
  display: block;
}

.data-vencimento-dashboard strong {
  padding: 7px 5px 3px;
  color: #1d4ed8;
  font-size: 17px;
}

.data-vencimento-dashboard small {
  padding: 3px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10px;
  text-transform: uppercase;
}

.vencimento-cliente-info a {
  color: #172033;
  text-decoration: none;
}

.vencimento-cliente-info strong,
.vencimento-cliente-info small {
  display: block;
}

.vencimento-cliente-info small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.vencimento-dias {
  color: #64748b;
  font-size: 12px;
}

.vence-hoje {
  border-radius: 20px;
  padding: 6px 9px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 800;
}

.valor-vencimento-dashboard {
  color: #15803d;
  font-size: 14px;
}

.acoes-vencimento-dashboard {
  display: flex;
  gap: 7px;
}

.acoes-vencimento-dashboard a {
  border-radius: 7px;
  padding: 7px 9px;
  background: #eff6ff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.estado-vazio-dashboard {
  padding: 35px;
  color: #94a3b8;
  text-align: center;
}

.lista-lateral-dashboard {
  padding: 8px 20px;
}

.cliente-recente-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f7;
  color: #172033;
  text-decoration: none;
}

.cliente-recente-item:last-child {
  border-bottom: 0;
}

.cliente-recente-info {
  min-width: 0;
  flex: 1;
}

.cliente-recente-info strong,
.cliente-recente-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cliente-recente-info small {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

.cliente-recente-item .status-iptv {
  max-width: 90px;
  font-size: 8px;
}

.lista-cidades-dashboard {
  padding: 10px 20px;
}

.cidade-dashboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #eef2f7;
}

.cidade-dashboard-item:last-child {
  border-bottom: 0;
}

.cidade-dashboard-item span {
  color: #475569;
}

.cidade-dashboard-item strong {
  min-width: 34px;
  border-radius: 20px;
  padding: 6px 9px;
  background: #eff6ff;
  color: #1d4ed8;
  text-align: center;
  font-size: 12px;
}

.atalhos-dashboard {
  display: grid;
  gap: 10px;
  padding: 17px 20px 20px;
}

.atalhos-dashboard a {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px;
  color: #172033;
  text-decoration: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.atalhos-dashboard a:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.atalhos-dashboard strong,
.atalhos-dashboard small {
  display: block;
}

.atalhos-dashboard small {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
}

@media (max-width: 1250px) {
  .cards-dashboard-iptv {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-receita {
    grid-column: span 1;
  }

  .grade-dashboard-principal {
    grid-template-columns: 1fr;
  }

  .coluna-dashboard-lateral {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 850px) {
  .cards-dashboard-iptv {
    grid-template-columns: repeat(2, 1fr);
  }

  .cabecalho-dashboard {
    align-items: flex-start;
    flex-direction: column;
  }

  .vencimento-dashboard-item {
    grid-template-columns: 50px 1fr auto;
  }

  .vencimento-dias,
  .valor-vencimento-dashboard {
    display: none;
  }

  .coluna-dashboard-lateral {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .cards-dashboard-iptv {
    grid-template-columns: 1fr;
  }

  .acoes-dashboard {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .acoes-dashboard .botao {
    text-align: center;
  }

  .vencimento-dashboard-item {
    grid-template-columns: 48px 1fr;
  }

  .acoes-vencimento-dashboard {
    grid-column: 1 / -1;
  }
}

.botao-pagamento {
  background: #eff6ff;
  color: #1d4ed8;
}

.botao-renovar {
  background:
    linear-gradient(135deg, #059669, #16a34a);
  color: white;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.20);
}

.resumo-financeiro-cliente {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.resumo-financeiro-cliente > div {
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  padding: 16px;
  background: #f8fafc;
}

.resumo-financeiro-cliente small,
.resumo-financeiro-cliente strong {
  display: block;
}

.resumo-financeiro-cliente small {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 12px;
}

.resumo-financeiro-cliente strong {
  color: #172033;
}

@media (max-width: 750px) {
  .resumo-financeiro-cliente {
    grid-template-columns: 1fr;
  }

  .perfil-acoes {
    flex-wrap: wrap;
  }
}

.botao-cobranca {
  background: #dcfce7;
  color: #166534;
}

.variaveis-mensagem {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.variaveis-mensagem code {
  border-radius: 8px;
  padding: 7px 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
}

.grade-cobranca {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    370px;
  gap: 20px;
  align-items: start;
}

.painel-preview-whatsapp {
  overflow: hidden;
  min-height: 550px;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  background: #efeae2;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.preview-whatsapp-topo {
  padding: 18px;
  background: #075e54;
  color: white;
}

.preview-whatsapp-topo strong,
.preview-whatsapp-topo small {
  display: block;
}

.preview-whatsapp-topo small {
  margin-top: 4px;
  color: #d1fae5;
}

.preview-whatsapp-conversa {
  padding: 24px 18px;
}

.balao-whatsapp {
  margin-left: auto;
  max-width: 90%;
  border-radius: 12px 4px 12px 12px;
  padding: 13px 15px;
  background: #d9fdd3;
  color: #172033;
  white-space: pre-line;
  line-height: 1.5;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
}

@media (max-width: 1000px) {
  .grade-cobranca {
    grid-template-columns: 1fr;
  }

  .painel-preview-whatsapp {
    min-height: 350px;
  }
}

.cards-automacoes {
  grid-template-columns:
    repeat(4, minmax(180px, 1fr));
}

.badge.erro-status {
  background: #fee2e2;
  color: #b91c1c;
}

.erro-disparo {
  max-width: 300px;
  color: #b91c1c;
  font-size: 12px;
  word-break: break-word;
}

.tabela-container a {
  color: #1d4ed8;
  text-decoration: none;
}

@media (max-width: 1000px) {
  .cards-automacoes {
    grid-template-columns:
      repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-automacoes {
    grid-template-columns: 1fr;
  }
}

.cards-cobrancas {
  grid-template-columns:
    repeat(4, minmax(190px, 1fr));
}

.acoes-cobranca-tabela {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.acoes-cobranca-tabela .acao-card {
  flex: initial;
  min-width: 85px;
}

@media (max-width: 1000px) {
  .cards-cobrancas {
    grid-template-columns:
      repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-cobrancas {
    grid-template-columns: 1fr;
  }
}

.whatsapp-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 20px;
  border: 1px solid #d1fae5;
  border-radius: 20px;
  padding: 24px;
  background:
    linear-gradient(
      135deg,
      #ecfdf5,
      white 65%
    );
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.whatsapp-status-principal {
  display: flex;
  align-items: center;
  gap: 16px;
}

.whatsapp-status-principal h2 {
  margin-bottom: 5px;
}

.whatsapp-status-principal p {
  color: #64748b;
}

.whatsapp-status-icone {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-weight: 900;
}

.whatsapp-status-icone.conectado {
  background:
    linear-gradient(
      135deg,
      #16a34a,
      #059669
    );
}

.whatsapp-status-icone.desconectado {
  background:
    linear-gradient(
      135deg,
      #dc2626,
      #991b1b
    );
}

.whatsapp-status-dados {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(120px, 1fr));
  gap: 14px;
}

.whatsapp-status-dados > div {
  border-radius: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.8);
}

.whatsapp-status-dados small,
.whatsapp-status-dados strong {
  display: block;
}

.whatsapp-status-dados small {
  margin-bottom: 6px;
  color: #64748b;
}

.texto-conectado {
  color: #15803d;
}

.texto-desconectado {
  color: #b91c1c;
}

.cards-whatsapp {
  grid-template-columns:
    repeat(4, minmax(180px, 1fr));
}

.grade-whatsapp {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    360px;
  gap: 20px;
  margin-bottom: 20px;
}

.whatsapp-info-conteudo {
  padding: 22px;
}

.whatsapp-info-conteudo p {
  margin-bottom: 16px;
  color: #64748b;
  line-height: 1.6;
}

.whatsapp-info-conteudo ul {
  display: grid;
  gap: 11px;
  padding-left: 20px;
  color: #475569;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (max-width: 1050px) {
  .whatsapp-status-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-status-dados {
    width: 100%;
  }

  .grade-whatsapp {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 750px) {
  .cards-whatsapp {
    grid-template-columns: repeat(2, 1fr);
  }

  .whatsapp-status-dados {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 550px) {
  .cards-whatsapp {
    grid-template-columns: 1fr;
  }
}

.botao-pix {
  background:
    linear-gradient(
      135deg,
      #0891b2,
      #0d9488
    );
  color: white;
}

.grade-pix {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    380px;
  gap: 20px;
  align-items: start;
}

.painel-qrcode-pix {
  display: flex;
  align-items: center;
  flex-direction: column;
  border: 1px solid #ccfbf1;
  border-radius: 20px;
  padding: 28px;
  background:
    linear-gradient(
      135deg,
      #f0fdfa,
      white
    );
  text-align: center;
  box-shadow:
    0 15px 35px
    rgba(15, 23, 42, 0.08);
}

.painel-qrcode-pix h2 {
  margin-bottom: 20px;
}

.painel-qrcode-pix img {
  width: min(100%, 320px);
  border-radius: 14px;
  padding: 10px;
  background: white;
}

.painel-qrcode-pix strong {
  margin-top: 18px;
  font-size: 17px;
}

.painel-qrcode-pix small {
  margin-top: 5px;
  color: #64748b;
}

@media (max-width: 950px) {
  .grade-pix {
    grid-template-columns: 1fr;
  }
}

.acoes-pix {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.confirmacao-pagamento-pix {
  margin-top: 26px;
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  padding: 21px;
  background:
    linear-gradient(
      135deg,
      #ecfdf5,
      white
    );
}

.confirmacao-pagamento-pix h2 {
  margin-bottom: 7px;
}

.confirmacao-pagamento-pix p {
  max-width: 700px;
  color: #64748b;
  line-height: 1.6;
}

.confirmacao-pagamento-pix form {
  margin-top: 20px;
}

.grade-confirmacao-pix {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 16px;
}

.botao-confirmar-pagamento {
  width: 100%;
  background:
    linear-gradient(
      135deg,
      #059669,
      #16a34a
    );
  color: white;
  box-shadow:
    0 10px 22px
    rgba(5, 150, 105, 0.22);
}

@media (max-width: 650px) {
  .acoes-pix {
    flex-direction: column;
  }

  .acoes-pix form,
  .acoes-pix .botao {
    width: 100%;
  }

  .grade-confirmacao-pix {
    grid-template-columns: 1fr;
  }
}

.cards-pix-geral {
  grid-template-columns:
    repeat(4, minmax(190px, 1fr));
}

.painel-pix-lista {
  margin-bottom: 20px;
}

.txid-codigo {
  display: inline-block;
  max-width: 230px;
  overflow: hidden;
  border-radius: 7px;
  padding: 6px 8px;
  background: #f1f5f9;
  color: #334155;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acoes-pix-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.acoes-pix-lista form {
  display: inline-flex;
}

.acoes-pix-lista button {
  border: 0;
  cursor: pointer;
}

.painel-webhooks-pix {
  margin-top: 20px;
}

@media (max-width: 1000px) {
  .cards-pix-geral {
    grid-template-columns:
      repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .cards-pix-geral {
    grid-template-columns: 1fr;
  }
}

.consulta-mercado-pago {
  margin-top: 20px;
}

.botao-consultar-mp {
  width: 100%;
  background:
    linear-gradient(
      135deg,
      #009ee3,
      #087db5
    );
  color: white;
  box-shadow:
    0 10px 22px
    rgba(0, 158, 227, 0.20);
}
