/* ============================================================
   QUART'Z ADMIN — ADMIN-EXPORTAR.CSS
   Estilos da página de exportação de listas.
   ============================================================ */

/* ── BLOCO DE EXPORT ────────────────────────────────────────── */

.export-bloco {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--stone);
  background: #fff;
  overflow: hidden;
}

/* ── OPÇÃO DE EXPORT (linha com checkbox) ───────────────────── */

.export-opcao {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border-bottom: 1px solid rgba(212,197,176,0.4);
  cursor: pointer;
  transition: background 0.15s;
}
.export-opcao:last-of-type { border-bottom: none; }
.export-opcao:hover { background: var(--washi); }

/* Checkbox customizado */
.export-opcao__check-wrap {
  position: relative;
  flex-shrink: 0;
}

.export-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.export-check__box {
  width: 18px;
  height: 18px;
  border: 1px solid var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.export-check:checked + .export-check__box {
  background: var(--void);
  border-color: var(--void);
}

.export-check:checked + .export-check__box::after {
  content: '';
  display: block;
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--washi);
  border-bottom: 1.5px solid var(--washi);
  transform: rotate(-45deg) translateY(-1px);
}

/* Info da opção */
.export-opcao__info { flex: 1; min-width: 0; }

.export-opcao__titulo {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--void);
  letter-spacing: 0.03em;
}

.export-opcao__sub {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 200;
  color: var(--ash);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

/* Quantidade */
.export-opcao__qtd {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ash);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
}

/* Botão dentro do bloco */
.export-btn {
  margin: 12px 14px;
  width: calc(100% - 28px);
}

/* Hint */
.export-hint {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 200;
  color: var(--stone);
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0 14px 14px;
  line-height: 1.5;
}

/* ── BLOCO DESABILITADO (nenhum checkbox selecionado) ───────── */

.export-bloco--disabled .export-btn {
  opacity: 0.4;
  pointer-events: none;
}

/* ── HISTÓRICO DE EXPORTS ───────────────────────────────────── */

.historico-lista {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--stone);
  background: #fff;
  overflow: hidden;
}

.historico-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid rgba(212,197,176,0.4);
  gap: 12px;
}
.historico-item:last-child { border-bottom: none; }

.historico-item__info { flex: 1; min-width: 0; }

.historico-item__nome {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--void);
  letter-spacing: 0.03em;
}

.historico-item__data {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 200;
  color: var(--stone);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.historico-item__baixar {
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amadeirado);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 0;
  transition: opacity 0.2s;
}
.historico-item__baixar:hover { opacity: 0.7; }
.historico-item__baixar i { font-size: 11px; }

/* ── DESKTOP ─────────────────────────────────────────────── */

@media (min-width: 1024px) {

  /* Duas colunas: emails + whatsapp lado a lado, pedidos embaixo */
  .export-grid-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 2.5rem;
  }

  .export-grid-desktop .secao {
    padding-left: 0;
    padding-right: 0;
  }

  .export-bloco {
    height: 100%;
  }

}
