.group-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.group-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.group-card:hover {
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.group-card h3 { margin-bottom: 4px; }
.group-card p {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin-bottom: 8px;
}
.group-form { max-width: 500px; }

.chevron {
  border: solid var(--color-text);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 4px;
  transition: transform 0.2s;
  cursor: pointer;
  opacity: 0.5;
}
.chevron:hover { opacity: 1; }
.chevron.open { transform: rotate(45deg); }
.chevron.closed { transform: rotate(-135deg); }
.part-toggle { text-decoration: none; }
.part-toggle:hover { text-decoration: underline; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
}
.page-link {
  color: var(--color-primary);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.page-link:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.page-info {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.filter-member {
  color: var(--color-primary);
  text-decoration: none;
  cursor: pointer;
}
.filter-member:hover {
  text-decoration: underline;
}
.filter-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  background: #dbeafe;
  color: #1e40af;
  border-radius: var(--radius);
}
.filter-clear {
  color: var(--color-danger);
  text-decoration: none;
  margin-left: auto;
}
.filter-clear:hover {
  text-decoration: underline;
}
.row-active {
  background: #eff6ff !important;
}
.row-dimmed {
  opacity: 0.45;
}

/* ── Mobile: hide Tipo & Participantes, detail on tap ─── */
@media (max-width: 767px) {
  .mov-table thead th:nth-child(3),
  .mov-table thead th:nth-child(5),
  .mov-table tbody td:nth-child(3),
  .mov-table tbody td:nth-child(5) {
    display: none;
  }
  .mov-table tbody tr[data-detail],
  .members-table tbody tr[data-detail-email],
  .log-table tbody tr[data-detail] {
    cursor: pointer;
  }
  .members-table .hide-mobile,
  .log-table .hide-mobile {
    display: none;
  }
  .mov-table th,
  .mov-table td,
  .saldos-table th,
  .saldos-table td,
  .log-table th,
  .log-table td {
    padding: 8px 6px;
    font-size: 0.8125rem;
  }
  .mov-table td:nth-child(2) {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .saldos-table td:last-child {
    white-space: nowrap;
  }
  .pag-label {
    display: none;
  }
  .draws-table tbody tr[data-detail-draw] { cursor: pointer; }
  .draws-table th,
  .draws-table td { padding: 8px 6px; font-size: 0.8125rem; }
  .draws-table .hide-mobile { display: none; }
}

.mov-detail-row { display: none; }
.mov-detail-row.visible { display: table-row; }
.mov-detail-row td {
  padding: 8px 16px;
  background: var(--color-surface-alt, #f3f4f6);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--color-border);
}
.mov-detail-item {
  display: inline-block;
  margin-right: 20px;
}
.mov-detail-label {
  color: var(--color-muted);
}
