/* Fidelidade e Clube do Cliente (Fase 6). Reaproveita .cu-*, .tk-* e .cp-* de customers/tasks/campaigns. */

.ly-view.is-hidden { display: none; }
button.cu-card { cursor: pointer; }

.ly-program .ly-rule { margin: 2px 0; font-size: 0.95rem; }
.ly-program.is-closed { opacity: 0.75; }
.ly-card { border-left-color: #12B76A; }
.ly-card.is-benefit { background: #F6FEF9; box-shadow: inset 0 0 0 1px #6CE9A6; }
.ly-benefit { color: #067647; font-weight: 800; }
.ly-count { margin: 2px 0; font-size: 0.92rem; }

/* cartao visual: bolinhas de selo */
.ly-dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.ly-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #D0D5DD; background: #fff; display: inline-block; }
.ly-dot.is-on { background: #12B76A; border-color: #067647; }
.ly-bar { height: 10px; border-radius: 999px; background: #EAECF0; overflow: hidden; margin: 6px 0; }
.ly-bar span { display: block; height: 100%; background: #12B76A; }

.ly-customer-pick { position: relative; }
.ly-results { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-surface); max-height: 220px; overflow-y: auto; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12); }
.ly-results.is-hidden, .ly-chosen.is-hidden { display: none; }
.ly-results button { width: 100%; text-align: left; border: none; background: none; font: inherit; padding: 10px; border-radius: 8px; cursor: pointer; min-height: 44px; }
.ly-results button:hover { background: var(--color-surface-soft); }
.ly-results small { color: var(--color-muted); }
.ly-none { padding: 8px; color: var(--color-muted); font-size: 0.88rem; }
.ly-chosen { margin: 6px 0 0; padding: 6px 10px; border-radius: 8px; background: #ECFDF3; color: #067647; font-weight: 700; font-size: 0.9rem; }

.ly-mini { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.ly-mini small { color: var(--color-muted); }
.ly-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ly-cancelled { opacity: 0.6; text-decoration: line-through; }
.ly-cancelled small { text-decoration: none; display: block; }
.ly-table td, .ly-table th { vertical-align: top; }

@media (max-width: 768px) {
  .ly-dot { width: 26px; height: 26px; }
  #ly-view-programs .tk-card-actions .primary-action, #ly-view-programs .tk-card-actions .secondary-action,
  #ly-card-list .tk-card-actions .primary-action, #ly-card-list .tk-card-actions .secondary-action { min-height: 44px; flex: 1 1 auto; }
  #ly-stamp-btn { width: 100%; min-height: 44px; }

  #ly-redemption-list .table-wrap, #ly-report .table-wrap, #ly-history-body .table-wrap { overflow: visible; border: none; }
  .ly-table, .ly-table tbody { display: block; width: 100%; }
  .ly-table thead { display: none; }
  .ly-table tr { display: block; border: 1px solid var(--color-border); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: var(--color-surface); }
  .ly-table td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; border: none; padding: 5px 0; text-align: right; min-width: 0; }
  .ly-table td::before { content: attr(data-label); flex: 0 0 34%; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--color-muted); }
  .ly-table td.cp-actions { justify-content: flex-start; flex-wrap: wrap; padding-top: 10px; }
  .ly-table td.cp-actions::before { display: none; }
  .ly-table td.cp-actions .primary-action, .ly-table td.cp-actions .secondary-action { min-height: 44px; flex: 1 1 auto; }
}
