/* ==========================================================
   LotteryCheckerPro – Saved Wheels
   ========================================================== */

.lcpro-saved-wheels {
  max-width: 100%;
  padding: 12px;
}

.lcpro-saved-wheels h2 {
  text-align: center;
  margin-bottom: 16px;
}

/* -------------------------
   Table wrapper (mobile)
-------------------------- */
.lcpro-saved-table-wrap {
  overflow-x: auto;
}

/* Table base */
.lcpro-saved-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.lcpro-saved-table th,
.lcpro-saved-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}

/* Header */
.lcpro-saved-table th {
  background: #f1f5f9;
  font-weight: 600;
}

/* -------------------------
   Action buttons
-------------------------- */
.lcpro-saved-table td:last-child {
  white-space: nowrap;
}

.lcpro-saved-table button {
  margin: 2px;
  padding: 6px 10px;
  font-size: 0.8rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.lcpro-view-wheel { background:#0073aa; color:#fff; }
.lcpro-share-wheel { background:#6c757d; color:#fff; }
.lcpro-check-wheel { background:#28a745; color:#fff; }
.lcpro-delete-wheel { background:#dc3545; color:#fff; }

/* -------------------------
   Mobile: convert table to cards
-------------------------- */

@media (max-width: 640px) {

  /* DO NOT hide the table */
  .lcpro-saved-table {
    display: block;
  }

  /* Hide only the header */
  .lcpro-saved-table thead {
    display: none;
  }

  .lcpro-saved-table tbody,
  .lcpro-saved-table tr {
    display: block;
    width: 100%;
  }

  .lcpro-saved-table tr {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
    background: #fff;
  }

  .lcpro-saved-table td {
    display: flex;
    justify-content: space-between;
    border: none;
    padding: 6px 0;
    font-size: 0.85rem;
  }

  .lcpro-saved-table td::before {
    font-weight: 600;
    color: #555;
  }

  .lcpro-saved-table td:nth-child(1)::before { content: "ID"; }
  .lcpro-saved-table td:nth-child(2)::before { content: "Lottery"; }
  .lcpro-saved-table td:nth-child(3)::before { content: "Number Pool"; }
  .lcpro-saved-table td:nth-child(4)::before { content: "Tickets"; }
  .lcpro-saved-table td:nth-child(5)::before { content: "Created"; }
 /* .lcpro-saved-table td:nth-child(6)::before { content: "Actions"; }*/

  .lcpro-saved-table td:last-child {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 8px;
  }
}


/* -------------------------
   Saved Wheels navigation
-------------------------- */
.lcpro-saved-nav {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.lcpro-saved-nav .lcpro-btn {
  display: inline-flex;
  width: auto;
  padding: 10px 18px;
}

/* -------------------------
   Wheel cost summary
-------------------------- */
.lcpro-wheel-cost {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #333;
}

/* -------------------------
   Bottom navigation
-------------------------- */
.lcpro-check-nav {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.lcpro-check-nav .lcpro-btn {
  display: inline-flex;
  width: auto;              /* ?? prevents full-width */
  padding: 10px 18px;
  font-weight: 600;
}
