/* ==========================
   ESTILO GERAL - FlowTICK
   ========================== */
.btn-mini {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #fff !important;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-mini:hover {
    opacity: 0.85;
}

/* Cores padrão FlowTICK */
.btn-mini-edit   { background: #6c757d; }  /* cinza */ 
.btn-mini-delete { background: #dc3545; }  /* vermelho */
.btn-mini-off    { background: #6c757d; }  /* cinza */
.btn-mini-on     { background: #6c757d; }  /* cinza */
.btn-mini-eye    { background: #6c757d; }  /* cinza */


/* Cores padrão FlowTICK */
/*.btn-mini-edit   { background: #0d6efd; }  /* azul */
/*.btn-mini-delete { background: #dc3545; }  /* vermelho */
/*.btn-mini-off    { background: #ca6510; }  /* laranja */
/*.btn-mini-on     { background: #198754; }  /* verde */
/*.btn-mini-eye    { background: #6c757d; }  /* cinza */
   
.btn-acao-icon {
    background: #0d6efd;
    color: #fff !important;
    border-radius: 6px;
    padding: 6px;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: 0.2s;
}

.btn-acao-icon:hover {
    background: #0a58ca;
}

/* Fundo principal com degradê */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  /*background: linear-gradient(to right, #2c1d82, #550af1);*/
  color: #fff;
}
/* ==========================
   CONTEÚDO PRINCIPAL (Parte dos Dados)
   ========================== */
.form-principal {
  margin-left: 195px;
  padding: 20px;
  top: 0px;
  max-width: 100%;
}
.conteudo-principal {
  margin-left: 195px;
  padding: 20px;
  top: 0px;
  max-width: 100%;
}

.top-bar {
  background-color: #2c1d82;
  padding: 12px 20px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  text-align: right;
  margin-bottom: 25px;
}

.ft-buttons {
  margin-top: 15px; /* antes devia estar tipo 60px, reduza */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-left: 20px;
}

.ft-btn {
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 24px;
  font-size: 15px;
  transition: background 0.2s;
}

.ft-btn-red {
  background-color: #b81c1c;
  color: #fff;
}

.ft-btn-red:hover {
  background-color: #e42222;
}

.ft-btn-orange {
  background-color: #e3672d;
  color: #fff;
}

.ft-btn-orange:hover {
  background-color: #e0865c;
}

.ft-btn-azulmarinho {
  background-color: #1b3370;
  color: #fff;
}

.ft-btn-azulmarinho:hover {
  background-color: #e0865c;
}


.ft-btn-blue {
  background-color: #1b3370;
  color: #fff;
}

.ft-btn-blue:hover {
  background-color: #0f48a1;
}


.ft-btn-green {
  background-color: #17a000;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 24px;
  font-size: 15px;
  transition: background 0.2s;
}

.ft-btn-green:hover {
  background-color: #7ef567;
  color: #0a0a0a;
}
.ft-btn-white {
  background-color: #f0f0f0;
  color: #000;
}

.ft-btn-white:hover {
  background-color: #f0f0f0;
}

*/
/* ==========================
   CONTAINER BRANCO (Abrir Ticket)
   ========================== */
.ft-card {
  background: #fff;
  color: #000;
  border-radius: 10px;
  padding: 25px;
  /*max-width: 500px;*/
  margin: 20px auto;
  top: 0px;
  max-width: 100% !important;
 }

/* Labels e inputs */
.ft-label {
  display: block;
  font-weight: 300;
  margin-top: 0px;
}

.ft-input,
.ft-select,
.ft-textarea {
  width: 70%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
  font-size: 14px;
}

.ft-textarea {
  resize: vertical;
  min-height: 80px;
}
.mesma_linha {
  display: flex;
  align-items: flex-end;
}

/* Botões gerais */
button,
input[type="submit"] {
  background-color: #1b3370;
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

button:hover,
input[type="submit"]:hover {
  background-color: #0f48a1;
}

/* Botões secundários em preto */
.btn-cinza,
.btn-preto {
  background-color: #2c1d82; /*Aul escuro */
  color: #fff; /*Branco*/
}

.btn-cinza:hover,
.btn-preto:hover {
  background-color: #000; 
}

/* Botão de voltar */
.ft-back {
  display: inline-block;
  margin-top: 10px;
  color: #333;
  text-decoration: none;
}

.ft-back:hover {
  text-decoration: underline;
}

/* ==========================
   RESPONSIVIDADE
   ========================== */
@media (max-width: 768px) {
  .conteudo-principal {
    margin-left: 0;
    padding: 15px;
	top: 0px;
  }
  .menu-lateral {
    position: relative;
    width: 100%;
    height: auto;
  }
  .top-bar {
    text-align: center;
  }
  .ft-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
/* Itens do menu lateral */
.menu-links a {
  display: block;
  padding: 6px 18px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: all 0.2s ease-in-out;
}

/* Hover - leve brilho e destaque */
.menu-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #00bfff; /* azul ciano elegante */
  padding-left: 22px; /* dá uma leve sensação de movimento */
}

/* Item ativo */
.menu-links a.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 3px solid #00bfff;
  font-weight: 600;
}
/* ===== TOPO ===== */
.topo-info {
  position: relative;
  z-index: 10; /* fica acima do menu lateral */
  /*margin-left: 235px; /* ajusta conforme a largura do menu lateral */
  margin-left: 215px; /* ajusta conforme a largura do menu lateral */
  background-color: #241a78;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.topo-info .saudacao-usuario h2 {
  background-color:#241a78;
  color: #fff;
  font-size: 20px;
  margin: 0;
 }

.topo-info .saudacao-usuario p {
  font-size: 14px;
  margin: 0;
}

.topo-info .dados-empresa {
  text-align: right;
  font-size: 14px;
  line-height: 1.4;
}

/* ===== MENU LATERAL ===== */
/*.menu-lateral {
  width: 220px;
  height: 100vh;
  background: linear-gradient(to bottom, #2c1d82, #550af1);
  padding: 25px 0;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
}*/
html, body { height: 100%; }
/* ==========================
   Espaço do Menu Principal (Lado Esquerdo
   ========================== */
.menu-lateral{
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;                 /* <- garante altura total da viewport */
  width: 215px;	             /* <- define o Tamanho (largura) do Menu */
  background: linear-gradient(to bottom, #2c1d82, #550af1);
  padding: 25px 0 28px;      /* <- respiro p/ ver o último item (“Finalizar Sessão”) */
  overflow-y: auto;          /* <- rolagem interna do menu */
  overscroll-behavior: contain; /* <- não “rouba” a rolagem da página */
  z-index: 1000;             /* <- fica acima do conteúdo */
}

.menu-lateral .children.open {
  max-height: 5000px; /* 👈 libera todo o conteúdo do menu */
}

.menu-lateral .logo {
  text-align: center;
  margin-bottom: 25px;
}

.menu-lateral .logo img {
  width: 110px;
}

/* ===== MENU LINKS ===== */
.menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-links li {
  margin: 2px 0;
}

.menu-links a {
  display: block;
  padding: 8px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: 0.2s ease;
}

.menu-links a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 3px solid #00bfff;
  padding-left: 24px;
}

.menu-links a.active {
  background-color: rgba(255, 255, 255, 0.2);
  border-left: 3px solid #00bfff;
  font-weight: 600;
}

/* ==========================
   AJUSTE DE CORES PARA FUNDO BRANCO
   ========================== */
body {
  background-color: #fff; /* Fundo branco */
  color: #222; /* Texto padrão mais escuro */
}

/* Corrige a cor dos títulos e labels que sumiram no fundo branco */
h1, h2, h3, h4, h5, h6,
label, .ft-label, .titulo, .form-label {
  color: #222 !important;
  font-weight: 600;
}

/* Caso existam textos dentro de cartões brancos, mantém contraste adequado */
.ft-card {
  background: #fff;
  color: #222;
  max-width: 100% !important
}

/* ==========================
   AJUSTE BOTÃO SALVAR (somente página de abrir ticket)
   ========================== */
.tkt-abrir-ticket .ft-btn.ft-btn-blue,
form[action*="tkt_abrir_ticket.php"] .ft-btn.ft-btn-blue {
  display: block;
  width: fit-content;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* ==========================
   AJUSTES DE TABELA - LISTAGEM DE TICKETS
   ========================== */
.table-flowtick {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  font-size: 14px;
  background: #fff;
  color: #222;
  border-radius: 8px;
  overflow: hidden;
}

.table-flowtick thead {
  background: #1b3370;
  color: #fff;
  text-align: left;
}

.table-flowtick th,
.table-flowtick td {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
}

.table-flowtick tbody tr:hover {
  background-color: #f4f7ff;
}

.table-flowtick tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.table-flowtick th:first-child,
.table-flowtick td:first-child {
  border-left: none;
}

.table-flowtick th:last-child,
.table-flowtick td:last-child {
  border-right: none;
}

.table-flowtick .status-aberto {
  color: #1b3370;
  font-weight: 600;
}

.table-flowtick .status-andamento {
  color: #e48b17;
  font-weight: 600;
}

.table-flowtick .status-finalizado {
  color: #2d862d;
  font-weight: 600;
}

.table-flowtick .status-cancelado {
  color: #b81c1c;
  font-weight: 600;
}

/* Botão Exportar Excel dentro do card */
.btn-excel {
  background-color: #1d6f42;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}

.btn-excel:hover {
  background-color: #25a25a;
}

/* Mensagem quando não há tickets */
.sem-tickets {
  text-align: center;
  padding: 25px;
  color: #777;
  font-style: italic;
}

/* ==============================
   FlowTICK - Layout de Listagens (Tabelas)
   ============================== */
.ft-card-full {
  background: #fff;
  color: #000;
  border-radius: 10px;
  padding: 25px;
  margin: 20px auto;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ft-card-full table {
  width: 100%;
  border-collapse: collapse;
  max-width: 100% !important
}

.ft-card-full th {
  background: #f2f2f2;
  text-align: left;
  padding: 10px;
  font-weight: 600;
  max-width: 100% !important
}

.ft-card-full td {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  max-width: 100% !important
}

.ft-card-full tr:hover {
  background-color: #f8f8ff;
}

ft-btn-meustick {
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  padding: 12px 24px;
  font-size: 22px;
  transition: background 0.2s;
}
.ft-btn-meustick-cinza {
  background-color: #ccd4e0;
  color: #fff;
}

.ft-btn-meustick-cinza:hover {
  background-color: #0f48a1;
}

.ft-btn-meustick-white {
  background-color: #f0f0f0;
  color: #000;
}

.ft-btn-meustick-white:hover {
  background-color: #f0f0f0;
}

/*ABA*/
.aba {
  /*Deixa os botões na mesma Linha*/
  display: flex;
  align-items: flex-end;
}

.aba_branco {
  text-align: center;
  color: #0d6efd;
  background-color: white;
  border: 1px solid #dee2e6;
  border-bottom: none;
  padding: 6px 12px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  margin-bottom: -1px;
  white-space: nowrap;
  margin-right: -1px; /* para colar as bordas entre botões */
}

.aba_branco:hover {
  /*background-color: #f8f9fa; /* leve destaque no hover */
  border-color: gray;
  border-bottom: none;
  
}

.aba_branco.ativo {
  background-color: white;
  border-color: #dee2e6 #dee2e6 white; /* remove borda inferior da aba ativa */
  font-weight: bold;
  z-index: 1; /* aba ativa fica por cima */
}

.submenu {
  max-height: none; /* garante expansão completa */
}
.submenu li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.submenu li:last-child {
  border-bottom: none;
}

.menu-icon-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dcdcdc;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.menu-icon-item:hover {
  color: #ffd700;
  padding-left: 6px;
}

/* Ícones herdam cor e mudam juntos */
.menu-icon-item svg {
  stroke: currentColor;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

/* Divisor opcional entre os itens */
.submenu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.submenu li:last-child {
  border-bottom: none;
}

.menu-links > li > a.active,
.menu-icon-item.active {
  color: #ffd700;
  font-weight: bold;
}

.menu-links > li > a.active svg,
.menu-icon-item.active svg {
  stroke: #ffd700;
}

.ft-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 25px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  min-width: 200px;
}

.btn-wrapper {
  align-self: flex-end;
}

.ft-filter-row .ft-label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
  color: #333;
}

.ft-filter-row .ft-input,
.ft-filter-row .ft-select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.ft-filter-row button {
  margin-top: 4px;
  height: 38px;
}


/* ===== Estilo exclusivo para o botão "Localizar Ticket" ===== */
/* ===== Botão "Localizar Ticket" centralizado ===== */
/* ===== Botão "Localizar Ticket" centralizado e estilizado ===== */
.btn-localizar-ticket {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px; /* espaço entre ícone e texto */
  font-size: 16px !important;
  font-weight: 600;
  padding: 10px 24px;
  height: 42px;
  line-height: 1;
  text-align: center;
  vertical-align: middle;

  /* Cores exclusivas */
  background-color: #168ef7 !important; /* azul */
  color: #fff !important;
  border: none;

  /* Efeito suave */
  transition: all 0.2s ease;
}

.btn-localizar-ticket:hover {
  transform: scale(1.03);
  background-color: #083b99 !important; /* azul mais escuro no hover */
}

/* ===== SETINHAS ANIMADAS E MELHORIAS NOS MENUS ===== */
.menu-link {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: 0.2s ease;
}

/* Efeito hover */
.menu-link:hover {
  color: #ffd700;
}

/* Seta única animada */
.menu-link .arrow {
  font-size: 11px;
  margin-left: 6px;
  transition: transform 0.25s ease;
  opacity: 0.8;
}

/* Quando o submenu está aberto */
.has-submenu.open .menu-link .arrow {
  transform: rotate(180deg);
  opacity: 1;
}

/* Submenu com leve transição */
.submenu {
  display: none;
  list-style: none;
  padding-left: 12px;
  margin: 5px 0;
  background-color: #18235c;
  border-left: 3px solid #ff8800;
  border-radius: 6px;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

.has-submenu.open .submenu {
  display: block;
  max-height: 800px; 
}

/* Itens dentro do submenu */
.submenu a {
  color: #dcdcdc;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  transition: all 0.2s ease;
  justify-content: space-between; /* separa texto e badge */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.submenu a:hover {
  background-color: #2a3788;
  color: #ffd700;
  padding-left: 22px;
}

/* Item ativo dentro do submenu */
.submenu a.active {
  color: #ffd700;
  font-weight: bold;
}

.submenu a span:first-child {
  white-space: nowrap;         /* impede quebra */
  overflow: hidden;
  text-overflow: ellipsis;     /* corta bonito */
}

/* Ícones SVG no submenu */
.submenu a svg {
  stroke: currentColor;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: stroke 0.2s ease;
}

.has-submenu .menu-link::after {
  content: "▼";
  font-size: 11px;
  margin-left: 6px;
  transition: transform 0.25s ease;
}
.has-submenu.open .menu-link::after {
  transform: rotate(180deg);
}

/* =====================================
   PAGINAÇÃO - FlowTICK
   ===================================== */
.tabela-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #333;
}
.ft-select-perpage-form select.ft-select-perpage {
  padding: 4px 6px;
  margin: 0 4px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 14px;
}
.ft-pagination {
  margin-top: 10px;
  text-align: center;
}
.ft-pagination .btn-page {
  display: inline-block;
  margin: 0 3px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #e7e7e7;
  color: #000;
  text-decoration: none;
  font-size: 14px;
}
.ft-pagination .btn-page:hover {
  background: #1b3370;
  color: #fff;
}
.ft-pagination .btn-page.active {
  background: #1b3370;
  color: #fff;
  font-weight: 600;
}
.ft-pagination .btn-page.disabled {
  background: #ddd;
  color: #999;
  pointer-events: none;
}

/* =====================================
   ABAS (TABS) - FlowTICK
   ===================================== */
.ft-tabs{
  display:flex;
  gap:8px;
  padding:8px;
  border-radius:12px;
  background:#eef2ff;         /* faixa clarinha */
  margin:0 0 16px 0;
  align-items:stretch;
}
.ft-tab{
  display:inline-block;
  padding:10px 16px;
  border:1px solid #dcdcdc;
  border-radius:10px;
  background:#f0f0f0;
  color:#000;
  text-decoration:none;
  font-weight:600;
  font-size:16px;
  line-height:1;
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.ft-tab:hover{
  background:#e6e6e6;
}
.ft-tab.active{
  background:#1b3370;
  border-color:#1b3370;
  color:#fff;
}


/* =====================================
   ABAS DE NAVEGAÇÃO - FlowTICK (layout alinhado)
   ===================================== */
.botao-container {
  display: flex;
  /*justify-content: flex-start;*/
  justify-content: space-between;
  align-items: center;
  gap: 6px;               /* espaço entre as abas */
  margin-bottom: 20px;
  /*flex-wrap: wrap;        /* quebra se precisar */
  flex-wrap: nowrap;
  overflow-x: auto;
}

.botao-container input.styled.aba_branco {
  font-size: 16px !important;
  padding: 8px 14px !important;
  margin-right: 6px;
  flex: 1 1 auto;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.botao-container input.styled.aba_branco {
 
}
.botao-container input.styled.aba_branco:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
/* Botões da coluna Ações – manter alinhados e com mesmo tamanho */
.ft-acoes .btn-acao{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:30px;
  min-width:90px;      /* mesmo tamanho p/ Ativar e Inativar */
  padding:0 10px;
  border-radius:10px;
  background:#0f2d66;  /* azul padrão */
  color:#fff;
  text-decoration:none;
  font-weight:600;
  margin-right:8px;
}
.ft-acoes .btn-acao i{ font-style:normal }

/* Variações de cor para a ação principal */
.ft-acoes .btn-acao.btn-red{   background:#c82333; }  /* Inativar */
.ft-acoes .btn-acao.btn-green{ background:#218838; }  /* Ativar  */

/* ===== Alinhamento dos botões de ação nas tabelas ===== */
.ft-acoes {
  text-align: center;
  vertical-align: middle !important;
  padding: 4px 0 !important;
  white-space: nowrap;
}

.ft-acoes .btn-acao {
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;       /* altura padrão dos botões */
  min-width: 90px;    /* largura consistente */
  margin: 0 2px;      /* leve espaço entre eles */
}

/* Botão “Motivo” – pequeno para não quebrar layout */
.btn-motivo{
  display:inline-flex;
  align-items:center;
  gap:6px;
  height:26px;
  padding:0 10px;
  border-radius:8px;
  background:#1f3b7a;  /* azul escuro */
  color:#fff;
  border:none;
  font-size:12px;
  font-weight:600;
  cursor:pointer;
  margin-left:8px;      /* aproxima do badge sem colar */
  vertical-align:middle;
}

.ft-btn-topo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #007bff;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ft-btn-topo:hover {
  background-color: #0056b3;
  text-decoration: none;
}

.ft-btn-topo i {
  font-size: 14px;
}

.ft-grid-duo {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: center;
}

.ft-btn-topo_laranja {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f0a030;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ft-btn-topo_laranja:hover {
  background-color: #b3ab98;
  text-decoration: none;
}


.ft-btn-topo_cinza {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #99948d;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}


.ft-btn-topo_cinza:hover {
  background-color: #736e63;
  text-decoration: none;
}


.ft-btn-nivel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #0b1385;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ft-btn-topo_nivel:hover {
  background-color: #b3ab98;
  text-decoration: none;
}


.ft-btn-estrutura {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f0a030;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.ft-btn-estrutura:hover {
  background-color: #b3ab98;
  text-decoration: none;
}

/* ===============================
   BADGES DE SEVERIDADE - FlowTICK
   =============================== */
.badge-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  min-width: 60px;
  text-align: center;
}

.badge-red {
  background-color: #dc3545; /* Alta */
}

.badge-yellow {
  background-color: #ffc107; /* Média */
  color: #000;
}

.badge-green {
  background-color: #28a745; /* Baixa */
}

/* ====== Ajuste visual - Tabelas de Listagem ====== */
table.table {
  font-size: 13px;
  line-height: 1.3;
}

table.table th,
table.table td {
  padding: 6px 10px;
  vertical-align: middle;
}

/* =========================================================
   FLOWTICK CLEAN 2025 – Botões e Ações Padronizados
   ========================================================= */
/* ===== Célula de Ações ===== */
.ft-acoes {
  text-align: center;
  vertical-align: middle !important;
  white-space: nowrap;
  padding: 4px 0 !important;
}

/* ===== Botões de Ação ===== */
.btn-acao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;          /* altura enxuta e igual para todos */
  min-width: 90px;       /* largura padronizada */
  padding: 0 10px;       /* lateral reduzida */
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

/* ===== Botão Azul (Alterar) - igual ao FILTRAR ===== */
.btn-acao:first-child {
  background-color: #1b3370;  /* azul escuro FlowTICK */
  color: #fff;
}
.btn-acao:first-child:hover {
  background-color: #0f48a1;  /* hover igual ao botão Filtrar */
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* ===== Botão Vermelho (Inativar) ===== */
.btn-acao.sec {
  background-color: #c82333;
  color: #fff;
}
.btn-acao.sec:hover {
  background-color: #a71d2a;
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* ===== Botão Verde (Ativar) ===== */
.btn-acao.sec[style*='background:#218838'],
.btn-acao.sec.btn-green {
  background-color: #218838 !important;
  color: #fff;
}
.btn-acao.sec[style*='background:#218838']:hover,
.btn-acao.sec.btn-green:hover {
  background-color: #1e7e34 !important;
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* ===== Ícones ===== */
.btn-acao i {
  font-size: 12px;
  opacity: 0.9;
  position: relative;
  top: -1px;
}

/* ===== Ajuste visual entre os botões ===== */
.ft-acoes .btn-acao + .btn-acao {
  margin-left: 4px;
}
/* ======== FlowTICK – Ajustes herdados do styles_meustickets.css ======== */

.btn-abrir_final {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #084298;
  border: none;
  color: #fff;
  width: 30px;          /* largura do quadrado */
  height: 30px;         /* altura do quadrado */
  padding: 0;           /* remove gordura */
  border-radius: 6px;
  transition: background 0.2s;
  text-decoration: none;
  font-size: 13px;
  margin: auto;
}
.btn-abrir_final:hover {
  background-color: #585a5e;
  color: #fff;
}

.table th.sorted {
  background-color: #1b3370;
  color: #fff;
}

.tabela-info {
  text-align: left;
  font-size: 13px;
  color: #333;
  background: #f8f9fa;
  border-top: 1px solid #ddd;
  padding: 10px 14px;
  margin-top: -5px;
  border-radius: 0 0 6px 6px;
  font-weight: 500;
}

/* Status e botões */
.status-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 6px 8px;
  color: #fff;
  font-weight: 600;
  font-size: 9px;
  min-width: 40px;
  text-align: center;
  line-height: 1.2;
  margin: auto;
}

.status-box .prioridade {
  font-weight: 500;
  font-size: 12px;
  margin-top: 2px;
}


.table-striped tbody tr:nth-of-type(odd) {
  background-color: #f3f3f3;
}

.table-striped tbody tr:nth-of-type(even) {
  background-color: #e9e9e9;
}

/* Cabeçalho */
.table th {
  background-color: #f8f9fa;
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
  cursor: pointer;
  vertical-align: middle;
}

.table th .sort-icon {
  font-size: 0.8em;
  color: #aaa;
  margin-left: 4px;
}

.table th:hover .sort-icon {
  color: #000;
}

.btn-estrutura{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:30px;
  min-width:90px;      
  padding:0 10px;
  border-radius:10px;
  background:#0f2d66;  /* azul padrão */
  color:#fff;
  text-decoration:none;
  font-weight:600;
  margin-right:8px;
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;       /* altura padrão dos botões */
  min-width: 60px;    /* largura consistente */
  margin: 0 2px;      /* leve espaço entre eles */
}

.ft-botao-container {
  display: flex;
  justify-content: left; /* centraliza o botão */
  margin: 15px 0 25px 0;   /* espaçamento superior e inferior */
}

.ft-btn-vermelho {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color:#a71d2a; /* Vermelho elegante */
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 12px 26px;  /* altura e largura equilibradas */
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}



.ft-btn-vermelho:hover {
  background-color: #c82333;
  transform: scale(1.03);
}


.ft-btn-preto {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color:#000000; /* preto */
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 12px 26px;  /* altura e largura equilibradas */
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}



.ft-btn-preto:hover {
  background-color: #9c8c8e; /*cinza*/
  transform: scale(1.03);
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}
.botao-container {
  display: flex;
  align-items: flex-end;
}


.cfg-container{
  max-width: 880px;
  margin: 0 auto;
}

.cfg-box{
  background:#fff;
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:10px;
  border:1px solid #ececf3;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
}

.cfg-box-compact{
  padding:12px 16px;
}

.cfg-title{
  font-size:15px;
  font-weight:700;
  margin-bottom:10px;
  color:#1d2340;
}

.cfg-grid-2{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:12px;
  align-items:center;
}

.cfg-row{
  margin-bottom:0;
}

.cfg-row label{
  display:block;
  font-weight:700;
  margin-bottom:8px;
  color:#1f2940;
}

.cfg-readonly{
  background:#f6f7fb;
  height:34px;
  padding:6px 10px;
}

.cfg-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  border-top:1px solid #f0f1f6;
}

.cfg-item:first-of-type{
  border-top:none;
  padding-top:0;
}

.cfg-item-titulo{
  font-size:14px;
  font-weight:700;
  color:#20263f;
  margin-bottom:2px;
}

.cfg-item-desc{
  font-size:12px;
  line-height:1.5;
  color:#666d85;
}

.cfg-item-texto{
  flex:1;
  min-width:0;
}

.cfg-switch{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  font-size:13px;
  font-weight:700;
  color:#394150;
  margin-top:2px;
}

.cfg-switch input[type="checkbox"]{
  transform:scale(1.05);
}

/* ==========================================
   PERFIL DA EMPRESA
========================================== */

.cfg-container{
  max-width: 880px;
  margin: 0 auto;
}

.cfg-topbar{
  display:grid;
  grid-template-columns:80px 1fr;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}

.cfg-idempresa{
  max-width:80px;
}

.cfg-box{
  background:#fff;
  border-radius:14px;
  padding:14px 16px;
  margin-bottom:10px;
  border:1px solid #ececf3;
  box-shadow:0 4px 14px rgba(0,0,0,.04);
}

.cfg-box-compact{
  padding:12px 16px;
}

.cfg-title{
  font-size:15px;
  font-weight:700;
  margin-bottom:10px;
  color:#1d2340;
}

.cfg-grid-2{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:12px;
  align-items:center;
}

.cfg-row{
  margin-bottom:0;
}

.cfg-row label{
  display:block;
  font-weight:700;
  margin-bottom:8px;
  color:#1f2940;
}

.cfg-readonly{
  background:#f6f7fb;
  height:34px;
  padding:6px 10px;
}

.cfg-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  border-top:1px solid #f0f1f6;
}

.cfg-item:first-of-type{
  border-top:none;
  padding-top:0;
}

.cfg-item-titulo{
  font-size:14px;
  font-weight:700;
  color:#20263f;
  margin-bottom:2px;
}

.cfg-item-desc{
  font-size:12px;
  line-height:1.5;
  color:#666d85;
}

.cfg-item-texto{
  flex:1;
  min-width:0;
}

.cfg-switch{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
  font-size:13px;
  font-weight:700;
  color:#394150;
  margin-top:2px;
}

.cfg-switch input[type="checkbox"]{
  transform:scale(1.05);
}

@media (max-width: 768px){
  .cfg-grid-2,
  .cfg-topbar{
    grid-template-columns:1fr;
  }

  .cfg-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .cfg-idempresa{
    max-width:100%;
  }
}

/* ==========================================
   FLOWTICK TOAST ENTERPRISE
========================================== */

.ft-toast-stack{
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.ft-toast-enterprise{
  position: relative;
  min-width: 320px;
  max-width: 430px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px 18px 16px;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 14px 38px rgba(0,0,0,.18);
  opacity: 0;
  transform: translateY(-14px) scale(.98);
  transition: all .32s ease;
  overflow: hidden;
  pointer-events: auto;
  backdrop-filter: blur(4px);
}

.ft-toast-enterprise.show{
  opacity: 1;
  transform: translateY(0) scale(1);
}

.ft-toast-enterprise.hide{
  opacity: 0;
  transform: translateY(-12px) scale(.98);
}

.ft-toast-enterprise.sucesso{
  background: linear-gradient(135deg, #178f47 0%, #22b35f 100%);
}

.ft-toast-enterprise.erro{
  background: linear-gradient(135deg, #c73535 0%, #ef5350 100%);
}

.ft-toast-icon{
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}

.ft-toast-body{
  flex: 1;
  min-width: 0;
}

.ft-toast-title{
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: .2px;
}

.ft-toast-text{
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,.96);
  word-break: break-word;
}

.ft-toast-close{
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: -2px 0 0 0;
  transition: transform .2s ease, opacity .2s ease;
}

.ft-toast-close:hover{
  transform: scale(1.08);
  opacity: .85;
}

.ft-toast-progress{
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: rgba(255,255,255,.28);
  overflow: hidden;
}

.ft-toast-progress::after{
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: rgba(255,255,255,.9);
  transform-origin: left center;
  animation: ftToastProgress 4.2s linear forwards;
}

.ft-toast-enterprise.erro .ft-toast-progress::after{
  background: rgba(255,255,255,.95);
}

@keyframes ftToastProgress{
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 640px){
  .ft-toast-stack{
    top: 14px;
    right: 12px;
    left: 12px;
  }

  .ft-toast-enterprise{
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

/* ==========================================================
   PAINEL DO GESTOR - LAYOUT OTIMIZADO
   ========================================================== */
.ft-container {
  margin-left: 265px;
  padding: 25px 40px 60px;
  max-width: calc(100% - 265px);
  background: #f9f9f9;
  box-sizing: border-box;
}

.ft-titulo {
  font-size: 1.7em;
  font-weight: 600;
  color: #222;
  margin-bottom: 25px;
}

.ft-cards-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* suporte usa 4 cards */
  gap:20px;
  margin-top: 10px;
}

/* responsivo */
@media (max-width: 1200px){
  .ft-cards-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px){
  .ft-cards-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px){
  .ft-cards-grid{ grid-template-columns: 1fr; }
}
.ft-card { min-width: 0; }

/* =====================
   CARDS PEQUENOS (KPIs)
   ===================== */
.ft-card-small {
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

/* Textos dos cards */
.ft-card-small h3 {
  margin: 0 0 4px 0;
  font-size: 1em;
  font-weight: 600;
  color: #fff;
}

.ft-card-num {
  font-size: 2.0em;
  font-weight: bold;
  line-height: 1;
  margin: 0;
  color: #fff;
}

.ft-card-small small {
  font-size: 0.8em;
  opacity: 0.9;
  color: #fff;
}

/* Card branco (Total) */
.ft-card-small.white {
  background: #fff;
}
.ft-card-small.white h3,
.ft-card-small.white .ft-card-num,
.ft-card-small.white small {
  color: #222 !important;
}

/* Hover */
.ft-card-small:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =====================
   LAYOUTS GERAIS
   ===================== */
.ft-grid-2 { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 25px; 
  margin-top: 25px;
  align-items: stretch;
}

.ft-grid-3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:25px;
  margin-top:25px;
  align-items:stretch;
}

@media (max-width: 992px) {
  .ft-grid-3 { grid-template-columns: 1fr; }
}


.ft-card { 
  background: #fff; 
  border-radius: 10px; 
  padding: 20px; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ft-container ul { list-style: none; margin: 0; padding: 0; }
.ft-container ul li { border-bottom: 1px solid #eee; padding: 6px 0; font-size: 14px; }
.ft-container ul li small { color: #888; }

/* Área de gráficos */
.graf-area {
  flex: 1;
  width: 100%;
  min-height: 220px;
  max-height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas {
  width: 100% !important;
  height: 220px !important;
}

body {
  margin: 0;
  overflow-x: hidden;
}

@media (max-width: 992px) {
  .ft-container { margin-left: 0; max-width: 100%; }
  .ft-grid-2 { grid-template-columns: 1fr; }
  canvas { height: 200px !important; }
}

.ft-has-tip { position: relative; }

.ft-has-tip::after{
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: pre-line;

  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.3;

  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
  z-index: 9999;
  min-width: 180px;
  text-align: left;
}

.ft-has-tip::before{
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: rgba(0,0,0,0.85);

  opacity: 0;
  transition: opacity .15s ease;
  z-index: 9999;
}

.ft-has-tip:hover::after,
.ft-has-tip:hover::before{
  opacity: 1;
}

.tabela-zebra {
    border-collapse: collapse;
    width: 100%;
}

.tabela-zebra tbody tr:nth-child(odd) {
    background-color: #dbeafe; /* cor solicitada */
}

.tabela-zebra tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.tabela-zebra tbody tr {
    border-bottom: 1px solid #94a3b8; /* traço somente inferior */
}	
.tabela-container {
    max-height: 350px;      /* altura fixa */
    overflow-y: auto;       /* scroll vertical */
    overflow-x: hidden;     /* evita scroll horizontal */
}	
.ft-alert-acao{
  background:#fff3cd;
  border:1px solid #ffe69c;
  color:#664d03;
  border-radius:10px;
  padding:12px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin: -10px 0 18px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.ft-alert-acao-btn{
  background:#0b5ed7;
  color:#fff;
  text-decoration:none;
  padding:8px 12px;
  border-radius:8px;
  font-weight:600;
  white-space:nowrap;
}
.ft-alert-acao-btn:hover{ opacity:.92; }

.ft-scroll-list{
  max-height: 260px;     /* ajuste aqui se quiser mais alto */
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 6px;    /* espaço p/ não “comer” texto no scroll */
}


.ft-table-zebra tbody tr:nth-child(odd){ background:#f8fafc; }
.ft-table-zebra tbody tr:hover{ background:#eef2ff; }

/* garante que o card do topo não empurre conteúdo pro meio */
.ft-card-topo{
  justify-content: flex-start !important;
}


/* tabela bonita */
.ft-table{
  width:100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ft-table th, .ft-table td{
  padding:10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.ft-table thead th{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  font-weight: 700;
}


/* ===== PADRÃO ÚNICO (Topo do Dashboard) ===== */
.ft-box{
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.ft-box-scroll{
  max-height: 220px;
  overflow-y: auto;
}

.ft-list{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ft-list thead th{
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

.ft-list td{
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}

.ft-list tbody tr:nth-child(odd){ background:#f8fafc; }
.ft-list tbody tr:hover{ background:#eef2ff; }

.ft-td-ticket{ width: 90px; white-space: nowrap; }
.ft-td-badge{ width: 80px; text-align: right; }


/* badge fixo HOJE */
.ft-badge{
  display:inline-block;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.3px;
  background:#fd7e14;
  color:#fff;

}

/* linha clicável padrão */
.ft-tr-click{ cursor:pointer; }
.ft-tr-click:active{ transform: translateY(1px); }

/* remove “buraco” no card */
.ft-card-topo{ justify-content:flex-start !important; }

.suporte-wrap{max-width:1320px;margin:0 auto}
.sup-topo{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}
.sup-topo h1{margin:0;font-size:2.15rem;font-weight:700;color:#1f1f1f}

.sup-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:none;border-radius:12px;padding:12px 18px;font-weight:700;text-decoration:none;cursor:pointer;transition:.2s ease}
.sup-btn:hover{opacity:.94;transform:translateY(-1px)}
.sup-btn-primary{background:#173f86;color:#fff}
.sup-btn-light{background:#fff;color:#173f86;border:1px solid #d9dfef}

.sup-alert{border-radius:12px;padding:14px 16px;margin-bottom:16px;font-weight:600}
.sup-alert-erro{background:#fdecec;color:#a12626;border:1px solid #f4c7c7}
.sup-alert-ok{background:#eaf7ee;color:#1e6b39;border:1px solid #ccead5}

.sup-grid{display:grid;grid-template-columns:380px 1fr;gap:20px;align-items:start}
.sup-card{background:#fff;border-radius:16px;box-shadow:0 2px 10px rgba(0,0,0,.06);padding:20px}
.sup-card h3{margin:0 0 14px 0;font-size:1.2rem;color:#1f1f1f}

.sup-kv{display:flex;flex-direction:column;gap:10px;margin-top:8px}
.sup-kv div{color:#5f6b7a;line-height:1.45}
.sup-kv b{color:#24324a}

.sup-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.sup-chip{display:inline-block;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:800;letter-spacing:.2px}
.sup-chip-neutral{background:#eef1fb;color:#173f86}

.sup-chat-card{background:#efeae2;border-radius:16px;box-shadow:0 2px 10px rgba(0,0,0,.06);overflow:hidden}
.sup-chat-header{background:#fff;border-bottom:1px solid #e6e6e6;padding:18px 20px}
.sup-chat-title{font-size:1.15rem;font-weight:700;color:#1f1f1f;margin:0}
.sup-chat-sub{color:#667085;margin-top:5px;font-size:.95rem}

.sup-chat-body{padding:20px;max-height:560px;overflow-y:auto;display:flex;flex-direction:column;gap:14px}
.msg-row{display:flex}
.msg-row.flowtick{justify-content:flex-start}
.msg-row.cliente{justify-content:flex-end}

.msg-bubble{max-width:78%;border-radius:16px;padding:12px 14px 10px;box-shadow:0 1px 2px rgba(0,0,0,.08);position:relative;word-wrap:break-word}
.msg-row.flowtick .msg-bubble{background:#fff;border-top-left-radius:6px}
.msg-row.cliente .msg-bubble{background:#d9fdd3;border-top-right-radius:6px}

.msg-head{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.msg-autor{font-size:.92rem;font-weight:700;color:#1f1f1f}
.msg-tag{display:inline-block;padding:3px 8px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.2px}
.msg-tag-cliente{background:#173f86;color:#fff}
.msg-tag-flow{background:#eef2f7;color:#4b5565}
.msg-texto{white-space:pre-wrap;color:#253041;line-height:1.45;font-size:.97rem}
.msg-data{margin-top:8px;text-align:right;font-size:.78rem;color:#667085}

.sup-chat-footer{background:#f8f9fb;border-top:1px solid #e6e6e6;padding:16px}
.sup-form label{display:block;margin-bottom:8px;font-weight:700;color:#24324a}
.sup-textarea{width:100%;min-height:110px;border:1px solid #d9dfef;border-radius:12px;padding:13px 14px;font-size:1rem;background:#fff;transition:border-color .2s ease, box-shadow .2s ease;outline:none;box-sizing:border-box;resize:vertical}
.sup-textarea:focus{border-color:#2d6cdf;box-shadow:0 0 0 3px rgba(45,108,223,.12)}
.sup-form-actions{display:flex;justify-content:space-between;gap:10px;margin-top:12px;flex-wrap:wrap;align-items:center}
.sup-status-note{font-size:.9rem;color:#667085}

@media (max-width:1050px){.sup-grid{grid-template-columns:1fr}}

/* =========================
   TOOLBAR + SWITCH (ÚNICO)
========================= */
.ft-conv-toolbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    margin:16px 0 14px;
}

.ft-conv-switch{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.ft-conv-switch-label{
    font-size:14px;
    font-weight:700;
    color:#24324a;
}

.ft-conv-switch a{
    text-decoration:none;
    padding:8px 12px;
    border-radius:10px;
    font-size:13px;
    font-weight:700;
    border:1px solid #d9dfef;
    background:#fff;
    color:#173f86;
    transition:.2s ease;
}

.ft-conv-switch a:hover{
    transform:translateY(-1px);
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

.ft-conv-switch a.active{
    background:linear-gradient(135deg,#1c1e80,#4a1bc7);
    color:#fff;
    border-color:transparent;
}

/* =========================
   WHATSAPP STYLE
========================= */
.ft-wa-card{
    background:#efeae2;
    border-radius:16px;
    box-shadow:0 2px 10px rgba(0,0,0,.06);
    overflow:hidden;
    margin-top:16px;
}

.ft-wa-header{
    background:#fff;
    border-bottom:1px solid #e6e6e6;
    padding:18px 20px;
}

.ft-wa-title{
    font-size:1.1rem;
    font-weight:700;
    color:#1f1f1f;
    margin:0;
}

.ft-wa-sub{
    color:#667085;
    margin-top:5px;
    font-size:.94rem;
}

/*.ft-wa-body{ /*Este aqui tem o SCROOL (barra de rolagem) */
/*    padding:20px;
    max-height:620px;
    overflow-y:auto;
    display:flex;
    flex-direction:column;
    gap:14px;
}*/

.ft-wa-body{  /* Este aqui nao tem a Barra de Roglagem expande naturalmente */
    padding:20px;
    height:auto;
    overflow-y:visible;
    display:flex;
    flex-direction:column;
    gap:14px;
}

.ft-msg-row{display:flex}
.ft-msg-row.eu{justify-content:flex-end}
.ft-msg-row.outro{justify-content:flex-start}

.ft-msg-bubble{
    max-width:78%;
    border-radius:16px;
    padding:12px 14px 10px;
    box-shadow:0 1px 2px rgba(0,0,0,.08);
    position:relative;
    word-wrap:break-word;
}

.ft-msg-row.outro .ft-msg-bubble{
    background:#fff;
    border-top-left-radius:6px;
}

.ft-msg-row.eu .ft-msg-bubble{
    background:#d9fdd3;
    border-top-right-radius:6px;
}

.ft-msg-head{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:6px;
    flex-wrap:wrap;
}

.ft-msg-autor{
    font-size:.92rem;
    font-weight:700;
    color:#1f1f1f;
}

.ft-msg-tag{
    display:inline-block;
    padding:3px 8px;
    border-radius:999px;
    font-size:10px;
    font-weight:800;
    letter-spacing:.2px;
}

.ft-msg-tag-eu{background:#173f86;color:#fff}
.ft-msg-tag-outro{background:#eef2f7;color:#4b5565}

.ft-msg-texto{
    white-space:pre-wrap;
    color:#253041;
    line-height:1.45;
    font-size:.96rem;
}

.ft-msg-data{
    margin-top:8px;
    text-align:right;
    font-size:.78rem;
    color:#667085;
}

.ft-msg-arquivos{
    margin-top:10px;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.ft-msg-arquivos a{
    text-decoration:none;
    color:#173f86;
    font-weight:600;
    font-size:.9rem;
    word-break:break-word;
}

.ft-msg-foto{
    margin-top:10px;
}

.ft-msg-foto img{
    max-width:220px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.14);
    display:block;
}
		
		
		
.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
	margin-left: auto;
}

.menu-link .menu-badge {
    margin-left: auto;
}	


.ft-btn-add-responsavel {
  width: auto !important;
  align-self: flex-start;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
}
.btn-whatsapp-ticket {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: all .2s ease;
}

.btn-whatsapp-ticket i {
    color: #fff !important;
    font-size: 14px;
    line-height: 1;
}

.btn-whatsapp-ticket:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}					  
</style>		