/* ============================
   BASE
============================ */
body {
  background: #f0f8f2;
  font-family: "Segoe UI", sans-serif;
}

/* ============================
   NAVBAR
============================ */
.navbar-repeatcard {
  background: #ffffff;
  padding: 12px 20px;
  border-bottom: 1px solid #dbece2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 32px;
}

.title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #1b4332;
}

.btn-logout {
  border: 2px solid #d9534f;
  background: white;
  color: #d9534f;
  border-radius: 10px;
  padding: 6px 18px;
  font-weight: 600;
}
.btn-logout:hover {
  background: #d9534f;
  color: white;
}


/* ============================
   CARDS
============================ */
.card-rc {
  background: #ffffff;
  padding: 22px;
  border-radius: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

/* Badge do email */
.email-badge {
  background: #d8f3dc;
  padding: 8px 16px;
  border-radius: 24px;
  font-weight: 600;
  color: #1b4332;
}

/* Sections */
.section-title {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: #1b4332;
}

/* Icones */
.how-icon {
  font-size: 2rem;
  color: #1b4332;
  margin-bottom: 10px;
}


/* ============================
   ABAS (TABS)
============================ */
.nav-tabs .nav-link {
  font-weight: 600;
  color: #1b4332;
  border-radius: 0;
}
.nav-tabs .nav-link.active {
  background: #1b4332;
  color: white;
  border-color: #1b4332;
}


/* ============================
   TABELAS
============================ */
.table {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.table thead {
  background: #d8f3dc;
  color: #1b4332;
  font-weight: 700;
}

.table-hover tbody tr:hover {
  background: #eefaf2;
}

.table td, .table th {
  padding: 14px;
  vertical-align: middle;
}


/* ============================
   BOTÕES PRINCIPAIS
============================ */
.btn-main {
  background: #1b4332;
  color: white;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
}
.btn-outline-main {
  border: 2px solid #1b4332;
  background: white;
  color: #1b4332;
  padding: 6px 16px;
  border-radius: 10px;
  font-weight: 600;
}
.btn-outline-main:hover {
  background: #1b4332;
  color: white;
}

/* Inputs */
input.form-control {
  border-radius: 10px;
}


/* ============================
   QR CODE
============================ */
#qrcode {
  padding: 10px;
  background: white;
  border-radius: 16px;
  display: inline-block;
}


/* ============================
   TABELAS EMPTY
============================ */
.text-muted {
  color: #6c757d !important;
}

/* styles.css - trecho com os estilos relevantes para cliente.html (adicione ao seu arquivo existente) */

/* NAVBAR REPEATCARD */
.navbar-repeatcard {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 18px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.logo { height:28px; object-fit:contain; }
.title { font-weight:700; color:#144b3b; font-size:1.25rem; }

/* Cards padrão */
.card-rc {
  background:#fff;
  border-radius:12px;
  padding:22px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* Botões principais */
.btn-main {
  background:#1b4332;
  color:#fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
}
.btn-outline-main {
  border: 2px solid #144b3b;
  color: #144b3b;
  background: transparent;
  padding: 8px 14px;
  border-radius: 8px;
}

/* Table styles */
.table {
  width:100%;
  border-collapse: collapse;
}
.table thead th {
  border-bottom: 1px solid #e9f3ef;
  padding: 12px 8px;
  font-weight: 800;
  color: #0f3b2b;
}
.table tbody td {
  padding: 14px 8px;
  border-bottom: 1px solid #f1f3f2;
  color:#1b4332;
}

/* points classes */
.points-plus { color: #0a7029; font-weight:700; }
.points-minus { color: #c21b1b; font-weight:700; }

/* inputs */
.form-control {
  border-radius: 8px;
  padding: 10px 14px;
  border:1px solid #ddd;
}

/* small responsive */
@media (max-width: 700px) {
  .table-search { width: 100%; }
  .nav-tabs .nav-link { font-size: 0.95rem; }
}

/* =========================
   EMPRESA – AJUSTE VISUAL
   NÃO ALTERA HTML / JS
   ========================= */

/* Container principal */
main.container,
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

/* Cards (mesmo visual do cliente) */
.card,
.tab-panel,
.panel,
section {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Títulos */
h1, h2, h3 {
  color: #1b4332;
  font-weight: 700;
}

h1 {
  font-size: 28px;
  margin-bottom: 16px;
}

h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

/* Inputs */
input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d8e2dc;
  font-size: 14px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: #1b4332;
  box-shadow: 0 0 0 2px rgba(27, 67, 50, 0.15);
}

/* Botões */
button {
  background-color: #1b4332;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background-color: #163a2a;
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Botões secundários */
button.outline,
.tab-btn {
  background: #ffffff;
  color: #1b4332;
  border: 2px solid #1b4332;
}

button.outline:hover,
.tab-btn:hover {
  background: #1b4332;
  color: #ffffff;
}

/* Grupo de botões */
.button-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

thead {
  background: #e9f5ee;
}

th {
  text-align: left;
  padding: 12px;
  font-weight: 700;
  color: #1b4332;
}

td {
  padding: 12px;
  border-bottom: 1px solid #edf2f4;
}

tbody tr:hover {
  background: #f8fbf9;
}

/* Filtros acima das tabelas */
input::placeholder {
  color: #9db4a9;
}

/* Labels e textos auxiliares */
label,
.small-text {
  font-size: 13px;
  color: #5c6f68;
}

/* Header com botão sair */
.header,
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

/* Botão sair */
#logoutBtn,
.btn-logout {
  background: #ffffff;
  color: #c1121f;
  border: 2px solid #c1121f;
}

#logoutBtn:hover,
.btn-logout:hover {
  background: #c1121f;
  color: #ffffff;
}

/* Espaçamentos gerais */
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

/* Responsivo */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  table {
    font-size: 13px;
  }

  button {
    width: 100%;
  }
}

/* =========================
   NAVBAR + LOGO RepeatCard
   ========================= */

.rc-nav {
  min-height: 64px;          /* dá respiro vertical */
  display: flex;
  align-items: center;
}

.rc-brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.rc-brand img {
  height: 32px;              /* ligeiramente maior */
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .rc-nav {
    min-height: 56px;
  }

  .rc-brand img {
    height: 26px;
  }
}

/* ================================
   Logo / Navbar (cliente.html)
   Alinhado ao padrão do index
================================ */
.navbar-repeatcard{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
}

/* logo clicável */
.navbar-repeatcard .rc-brand{
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* logo */
.navbar-repeatcard .rc-brand img {
  height: 32px;        /* tamanho correto desktop */
  max-height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* mobile */
@media (max-width: 768px) {
  .navbar-repeatcard .rc-brand img {
    height: 26px;
    max-height: 26px;
  }
}

.navbar-repeatcard {
  justify-content: space-between;
}

.navbar-repeatcard .rc-brand {
  flex-shrink: 0;
}

/* responsivo */
@media (max-width: 768px){
  .navbar-repeatcard{
    padding: 12px 16px;
  }
  .navbar-repeatcard .rc-brand img{
    height: 26px;
  }
  .navbar-repeatcard .rc-page-title{
    font-size: 18px;
  }
}

/* mobile */
@media (max-width: 768px) {
  .navbar-repeatcard .rc-brand img {
    height: 26px;
    max-height: 26px;
  }
}

/* Seções empilhadas do cliente */
.rc-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.rc-section-title {
  font-weight: 800;
  color: #1b4332;
  margin: 0;
}
