/* =========================================
   INÍCIO dos estilos para o LOGIN
   ========================================= */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #8B0000;
    
}


header {
    background-color: #8B0000; /* Vermelho escuro */
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-size: 40px;
    font-weight: bold;
}

.login-container {
    max-width: 350px;
    margin: 10px auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
}

.home{
	text-align: center;
}

h1{

	color: #8B0000;
}

h1 b{
	color: #666;
	
}

h2 {
    text-align: left;
    color: #333;
}

label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

input[type="text"],
input[type="email"], 
input[type="password"] {
    width: 100%;
	line-height: 30px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
	text-indent: 10px;
}

button {

    padding: 10px;
    background-color: #8B0000;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #a30000;
}

.erro {
    color: red;
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 500px) {
    .login-container {
        margin: 20px;
    }
    
    .menu{
	    width: 1000px;
    }
    .menu ul{
	    width: 100%;
    }
}
/* =========================================
   FINAL dos estilos para o LOGIN
   ========================================= */
   
   
/* =========================================
   INÍCIO dos estilos para o PAINEL
   ========================================= */
.topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 30px;
    font-weight: bold;
    line-height: 40px;
}

.logo span{
	font-size: 40px;
}

.usuario {
    font-size: 14px;
}

.usuario a.sair {
    color: white;
    text-decoration: none;
    margin-left: 8px;
}

.icone_home{
	font-size: 250px;
	width: 100%;
	display: block;
	text-align: center;
}

.menu {
    background-color: #333; /* Cinza escuro */
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.menu li {
    border-right: 1px solid #555;
}

.menu a {
    display: block;
    padding: 20px 15px;
    color: white;
    text-decoration: none;
}

.menu a:hover {
    background-color: #8B0000;
}

main {
    padding: 20px;
    background-color: #f4f4f4;
    min-height: 100vh;
}
/* =========================================
   FINAL dos estilos para o PAINEL
   ========================================= */
   
   
/* =========================================
INÍCIO dos estilos para USUÁRIOS
========================================= */

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

.btn, .btn-sm, .btn-danger, .btn-cinza {
    display: inline-block;
    padding: 8px 12px;
    background: #8B0000; /* vermelho */
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}
.btn:hover { background: #a30000; }

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.btn-danger {
    background: #b22222;
}
.btn-danger:hover {
    background: #c53030;
}

.btn-cinza {
    background: #555; /* cinza escuro */
}
.btn-cinza:hover {
    background: #666;
}

.alerta {
    background: #fff3cd;
    color: #856404;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid #ffeeba;
}

/* =========================================
   INÍCIO dos estilos para tabelas responsivas
   ========================================= */
.tabela-responsiva {
    width: 100%;
    overflow-x: auto;
}

.tabela-responsiva table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px; /* Evita quebra extrema */
}

.tabela-responsiva th,
.tabela-responsiva td {
    border: 1px solid #ddd; /* Linhas visíveis */
    padding: 8px;
    text-align: left;
}

.tabela-responsiva th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.tabela-responsiva tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tabela-responsiva tr:hover {
    background-color: #f1f1f1;
}
/* =========================================
   FINAL dos estilos para tabelas responsivas
   ========================================= */


.tabela {
    width: 100%;
    border-collapse: collapse;
    background: #fff; /* fundo branco */
}

.tabela th, .tabela td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.tabela thead th {
    background: #f6f6f6; /* cinza claro */
    color: #000;         /* fonte preta */
}

.tabela tr:nth-child(even) {
    background: #fafafa; /* faixa cinza clarinha */
}

.formulario {
    max-width: 520px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,.08);
}

.formulario label { 
    display:block; 
    font-weight: bold; 
    margin-top: 10px; 
}

.formulario input[type="text"],
.formulario input[type="password"],
.formulario select {
    width: 100%;
    border:1px solid #ddd;
    border-radius: 6px;
    margin-top: 6px;
}

.acoes-form {
    margin-top: 14px; 
    display:flex; 
    gap:10px;
}

/* =========================================
   FINAL dos estilos para USUÁRIOS
   ========================================= */

/* =========================================
   INÍCIO dos estilos para IMPORTAR CSV
   ========================================= */
input[type="file"] {
    margin-top: 6px;
}
/* =========================================
   FINAL dos estilos para IMPORTAR CSV
   ========================================= */

/* =========================================
   INÍCIO dos estilos para LISTA DE CLIENTES
   ========================================= */
.filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.filtros select,
.filtros input[type="text"] {
    padding: 5px;
    font-size: 14px;
}

/* Contêiner responsivo para rolagem lateral */
.tabela-container {
    width: 100%;
    overflow-x: auto;
}

/* Estilo da tabela */
.tabela-clientes {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px; /* Evita quebra exagerada em telas pequenas */
}

.tabela-clientes th,
.tabela-clientes td {
    border: 1px solid #ddd; /* Linhas visíveis */
    padding: 8px;
    text-align: left;
}

.tabela-clientes th {
    background-color: #f4f4f4;
    font-weight: bold;
}

/* Alternar cor das linhas */
.tabela-clientes tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover nas linhas */
.tabela-clientes tr:hover {
    background-color: #f1f1f1;
}
/* =========================================
   FINAL dos estilos para LISTA DE CLIENTES
   ========================================= */
   
/* INÍCIO estilos Nova Campanha */
.form-grupo {
    margin-bottom: 15px;
    width: 80%;
}

.form-grupo label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.form-grupo input[type="text"],
.form-grupo input[type="email"],
.form-grupo textarea,
.form-grupo select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filtros select{
	height: 30px;
}

.filtros select#filtro-bairro{
	width: 500px;
}

.filtros {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.btn-vermelho {
    background: #c62828;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-vermelho:hover {
    background: #b71c1c;
}
/* FINAL estilos Nova Campanha */

/* INÍCIO estilos Campanhas */
.btn-cinza {
    background: #616161;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
}
.btn-cinza:hover {
    background: #424242;
}
/* FINAL estilos Campanhas */

/* INÍCIO estilos Detalhe Campanha */
.status-bolinha {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.btn-verde {
    background: #4caf50;
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}
.btn-verde:hover {
    background: #388e3c;
}

.status-select {
    padding: 4px;
    margin-left: 5px;
}
/* FINAL estilos Detalhe Campanha */

/* =========================================
   INÍCIO dos estilos para BLOQUEIO/ATENDIMENTO
   ========================================= */
.chip {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.chip-verde { background: #e8f5e9; color: #256029; border: 1px solid #c8e6c9; }
.chip-cinza { background: #eeeeee; color: #424242; border: 1px solid #e0e0e0; }
.chip-livre { background: #fff3e0; color: #bf360c; border: 1px solid #ffe0b2; }

.btn-vermelho, .btn-cinza {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    margin: 5px;
}
.btn-vermelho { background: #c62828; color: #fff; }
.btn-vermelho:hover { background: #b71c1c; }
.btn-cinza { background: #616161; color: #fff; }
.btn-cinza:hover { background: #424242; }
/* =========================================
   FINAL dos estilos para BLOQUEIO/ATENDIMENTO
   ========================================= */


/* =========================================
   INÍCIO dos estilos para RESUMO DA CAMPANHA
   ========================================= */
.resumo-campanha {
    margin: 10px 0 16px 0;
}

.resumo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.resumo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-left-width: 4px;
    padding: 10px;
    border-radius: 8px;
}

.resumo-item.total {
    border-left-color: #424242;
}

.resumo-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex-shrink: 0;
}

.resumo-item .txt .tit {
    font-size: 12px;
    line-height: 1.1;
    text-transform: capitalize; /* "em conversa" */
}

.resumo-item .txt .num {
    font-size: 18px;
    font-weight: 700;
    margin-top: 2px;
}
/* =========================================
   FINAL dos estilos para RESUMO DA CAMPANHA
   ========================================= */

/* =========================================
   INÍCIO dos estilos para BOTÃO AZUL (Exportar)
   ========================================= */
.btn-azul {
    background: #1976d2;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}
.btn-azul:hover {
    background: #1565c0;
}
/* =========================================
   FINAL dos estilos para BOTÃO AZUL (Exportar)
   ========================================= */

/* INÍCIO estilos Editar Campanha */
#form-campanha-editar .form-grupo {
    margin-bottom: 12px;
}
#form-campanha-editar input[type="text"],
#form-campanha-editar textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
}
#form-campanha-editar .acoes-form .btn-vermelho,
#form-campanha-editar .acoes-form .btn-cinza {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
}
#form-campanha-editar .btn-cinza { background: #616161; color: #fff; }
#form-campanha-editar .btn-cinza:hover { background: #424242; }
/* FINAL estilos Editar Campanha */


/* =========================================
   INÍCIO dos estilos para NOTAS (campanha)
   ========================================= */
.nota-texto {
    width: 100%;
    min-width: 220px;
    min-height: 60px;
    resize: vertical;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 6px;
}
.btn-nota-salvar {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.nota-texto:disabled,
.btn-nota-salvar:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.nota-texto:disabled { opacity: 0.8; }
/* =========================================
   FINAL dos estilos para NOTAS (campanha)
   ========================================= */

/* =========================================
   INÍCIO dos estilos para PAGINAÇÃO/ORDENAÇÃO
   ========================================= */
.paginacao-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.paginacao-controles {
  display: flex;
  align-items: center;
  gap: 6px;
}
.paginacao-controles select {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.th-sort {
  user-select: none;
}
.th-sort:hover {
  text-decoration: underline;
}
/* =========================================
   FINAL dos estilos para PAGINAÇÃO/ORDENAÇÃO
   ========================================= */

/* INÍCIO dos estilos para ordenação */
.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px; /* espaço para a seta */
}
.sortable::after {
    content: '';
    position: absolute;
    right: 5px;
    font-size: 0.8em;
    color: #888;
}
.sortable.asc::after {
    content: '▲';
}
.sortable.desc::after {
    content: '▼';
}
/* FINAL dos estilos para ordenação */

/* INÍCIO – ajuda de placeholders */
.placeholders-help {
  margin-top: 6px;
}
.placeholders-help summary {
  cursor: pointer;
  color: #444;
}
.placeholders-help code {
  display: inline-block;
  background: #f1f1f1;
  padding: 2px 6px;
  border-radius: 4px;
  margin: 2px 4px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}
/* FINAL – ajuda de placeholders */

/* INÍCIO – alertas simples */
.alert { padding: 10px 12px; border-radius: 6px; margin: 8px 0 12px; }
.alert-ok { background: #e8f5e9; color: #256029; border: 1px solid #c8e6c9; }
.alert-erro { background: #ffebee; color: #b71c1c; border: 1px solid #ffcdd2; }
/* FINAL – alertas simples */


/* INÍCIO – estilos para o Rodapé */

footer p{
	color: #fff;
	text-align: center;
	padding: 10px 0 30px 0;
}

footer p a{
	color: #aeff53;
	font-weight: bold;
	text-decoration: none;
}

/* FINAL – estilos para o Rodapé */

