/* Mis consultas — under Consultar placa. */

.mc-page .mc-gate {
  margin-top: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card, 12px);
  background: var(--surface, #fff);
  display: grid;
  gap: .75rem;
}

/* Author display:grid beats the UA [hidden] rule — signed-in users kept seeing OTP. */
.mc-page .mc-gate[hidden],
.mc-page .mc-list[hidden],
.mc-page .placa-quota[hidden],
.mc-page .placa-auth-row[hidden],
.mc-page .placa-auth-err[hidden] {
  display: none !important;
}

.mc-page .placa-auth-wa {
  margin-top: .15rem;
}

.mc-list {
  margin-top: 1.25rem;
}

.mc-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}

.mc-list-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.mc-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .65rem;
}

.mc-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem 1rem;
  align-items: center;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card, 12px);
  background: var(--surface, #fff);
}

.mc-item-meta {
  display: grid;
  gap: .2rem;
}

.mc-item-plate {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.mc-item-sub {
  color: var(--muted);
  font-size: .9rem;
}

.mc-empty {
  margin: .5rem 0 0;
  color: var(--muted);
}

@media (max-width: 520px) {
  .mc-item {
    grid-template-columns: 1fr;
  }
}
