/* Tabelas, estados vazios e carregamento (prefixo c-).

   <div class="card c-table-wrap"><table>…</table></div>
   (a <table> direta do .c-table-wrap já recebe o estilo de .c-table)
   <div class="c-empty"><p>Nenhum lead.</p><small>…</small></div> */

.c-table-wrap {
  overflow: auto;
  max-width: 100%;
}

.c-table,
.c-table-wrap > table {
  width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.c-table th,
.c-table-wrap > table th,
.c-table td,
.c-table-wrap > table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  vertical-align: middle;
}

.c-table th,
.c-table-wrap > table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 36px;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom-color: var(--line-strong);
  background: var(--fill-hover);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #8f8a80;
}

.c-table th:first-child,
.c-table-wrap > table th:first-child,
.c-table td:first-child,
.c-table-wrap > table td:first-child {
  padding-left: 16px;
}

.c-table th:last-child,
.c-table-wrap > table th:last-child,
.c-table td:last-child,
.c-table-wrap > table td:last-child {
  padding-right: 16px;
}

.c-table tbody tr:last-child td,
.c-table-wrap > table tbody tr:last-child td {
  border-bottom: none;
}

.c-table tbody tr:hover td,
.c-table-wrap > table tbody tr:hover td {
  background: #faf8f3;
}

.c-table .num,
.c-table-wrap > table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.c-table .nowrap,
.c-table-wrap > table .nowrap {
  white-space: nowrap;
}

.c-table td .meta,
.c-table-wrap > table td .meta {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Linhas mais altas (listas com duas linhas por célula). */
.c-table--roomy td,
.c-table-wrap--roomy > table td {
  height: 54px;
}

.c-table-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

/* ── Estado vazio, erro e carregamento ─────────────────────────────── */
.c-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.c-empty p {
  margin: 0;
  font-size: 14px;
}

.c-empty small {
  font-size: 12.5px;
  opacity: 0.8;
}

.c-empty svg {
  width: 32px;
  height: 32px;
  opacity: 0.35;
}

/* Versão em caixa tracejada, dentro de formulários e listas curtas. */
.c-empty--box {
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  font-size: 13px;
}

.c-skel {
  height: 1em;
  border-radius: 6px;
  background: linear-gradient(90deg, #e8e6e1 25%, #f0ede8 50%, #e8e6e1 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.c-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
