/* ===== BASE ===== */
body{
  font-family:Arial,Helvetica,sans-serif;
  background:#f4f6f8;
  margin:0;
  padding:20px;
}

.container{max-width:860px;margin:0 auto}
h1{margin:0 0 16px 0}

/* ===== CARD PADRAO ===== */
.card{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  padding:16px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

/* ===== FORM ===== */
label{display:block;margin-top:8px;font-weight:600;font-size:13px}

input,textarea,select{
  width:100%;
  padding:10px;
  border:1px solid #cfcfcf;
  border-radius:10px;
  margin-top:6px;
  box-sizing:border-box;
}

button,.btn{
  padding:10px 14px;
  border:none;
  border-radius:10px;
  background:#0b3b66;
  color:#fff;
  font-weight:700;
  cursor:pointer;
}

hr{border:0;border-top:1px solid #eee;margin:14px 0}
.muted{color:#6b7280;font-size:12.5px}

/* ===== LISTA ===== */
.tickets{
  display:flex;
  flex-direction:column;
  gap:14px;
  margin-top:12px;
}

/* ===== TICKET (PADRAO / CLIENTE) ===== */
.ticket{
  background:#fff;
  border:1px solid #d9e2ef;
  border-left:6px solid #0b3b66;
  border-radius:14px;
  padding:14px;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}

.ticket-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.pid{font-weight:900;color:#0b3b66}

/* ===== STATUS ===== */
.status{
  font-weight:800;
  font-size:12px;
  padding:6px 12px;
  border-radius:999px;
  text-transform:uppercase;
  white-space:nowrap;

  /* 👇 ADICIONE ISSO */
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}


.status[data-status="ABERTO"]{background:#fff4cc;color:#9c6b00}
.status[data-status="EM ANDAMENTO"]{background:#e8f0ff;color:#0b3a66}
.status[data-status="AGENDADO"]{background:#fff0e6;color:#b45309}
.status[data-status="FINALIZADO"]{background:#e6f6ea;color:#1f7a3f}

/* ===== DESCRICAO ===== */
.desc{
  margin-top:10px;
  white-space:pre-wrap;
  line-height:1.45;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:10px 12px;
}

/* ================================================= */
/* =============== AJUSTE SOMENTE ADMIN ============= */
/* ================================================= */

body.admin .ticket{
  padding:10px;
  border-left-width:4px;
}

body.admin .ticket-head{
  align-items:flex-start;
  cursor:pointer;
}

body.admin .pid{
  font-size:14px;
}

body.admin .status{
  font-size:11px;
  padding:4px 10px;
}

body.admin input,
body.admin select{
  padding:8px;
  font-size:13px;
}

body.admin textarea{
  min-height:60px;
  padding:8px;
  font-size:13px;
}

body.admin button{
  padding:7px 12px;
  font-size:13px;
}

/* ===== ABRIR / FECHAR NO ADMIN ===== */
body.admin .ticket-details{
  display:none;
}

body.admin .ticket.is-open .ticket-details{
  display:block;
}

/* ===== LOGO ===== */
.brand{display:flex;justify-content:center;margin:6px 0 10px}
.brand img{max-height:150px;width:auto}

/* ===== BOTAO VOLTAR ===== */
.top-actions{display:flex;justify-content:center;margin:6px 0 14px}

.btn-back{
  background:#0b3b66;
  color:#fff;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  padding:6px 16px;
  border-radius:20px;
}

.btn-back:hover{background:#094070}

/* ===== RODAPE ===== */
.footer{margin-top:18px;color:#888;font-size:12px}

/* ===== CLIENTE – ABRIR / FECHAR (SANFONA) ===== */
body:not(.admin) .ticket-details{
  display:none !important;
}

body:not(.admin) .ticket.is-open .ticket-details{
  display:block !important;
}

body:not(.admin) .ticket-head{
  cursor:pointer;
}

/* (opcional) deixa um hover leve no cabeçalho do ticket */
body:not(.admin) .ticket-head:hover{
  opacity: .95;
}
/* ===== SUPORTE WHATSAPP (CLIENTE) ===== */
.support-whatsapp{
  margin: 24px auto 10px;
  max-width: 860px;
}

.support-whatsapp a{
  display: flex;
  align-items: center;
  gap: 14px;
  background: #0b3b66;
  color: #fff;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.support-whatsapp img{
  width: 48px;
  height: 48px;
}

.support-whatsapp strong{
  font-size: 15px;
}

.support-whatsapp span{
  font-weight: 700;
  color: #25d366;
}

.support-whatsapp a:hover{
  background: #094070;
}
/* ===== ACESSO PAINEL ADMIN ===== */
.admin-access{
  display: flex;
  justify-content: center;
  margin: 6px 0 10px;
}

.btn-admin{
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #d1d5db;
}

.btn-admin:hover{
  background: #0b3b66;
  color: #fff;
  border-color: #0b3b66;
}

