/* ========== Main Table Container ========== */
.betTable4 {
  width: 100%;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-text-main);
  margin: auto;
}

/* ========== Table Styling ========== */
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.tableHeaderRow {
  background-color: var(--color-bg-row);
}

.playerName {
  width: 16rem;
  text-align: start;
  padding-left: 0.3rem;
  height: 32px;
  border: 1px solid #d7d7d7;
}

.backHeader,
.backCell {
  width: 5.5rem;
  background-color: var(--bg-back);
  font-weight: bold;
  color: var(--color-text-main);
  border: 1px solid #ddd;
}

.layHeader,
.layCell {
  width: 5.5rem;
  background-color: var(--bg-lay);
  font-weight: bold;
  color: #333;
  border: 1px solid #ddd;
}

.tableRow {
  border-bottom: 1px solid #ddd;
}

.mainCell {
  width: 16rem;
  text-align: start;
  padding-left: 0.5rem;
  background-color: #f7f7f7;
  height: 46px;
  font-weight: bold;
  color: var(--color-text-main);
  border: 1px solid #ddd;
}

.backCell,
.layCell {
  text-align: start;
  padding: 8px 0;
  cursor: pointer;
}

.lockedCell {
  width: 30%;
  background-color: var(--color-overlay-lock);
  text-align: center;
  border: 1px solid #ddd;
  padding: 8px 0;
}

.grayBackground {
  background-color: var(--color-overlay-lock) !important;
}

/* ========== Under/Over Lock Section ========== */
.section2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1.2px solid #ddd;
  /* padding: 8px; */
  flex: 1 1 45%;
  gap: 1rem;
}

.fancyWrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border: 1.5px solid #ddd;
  padding: 8px;
  margin-top: 10px;
}

/* ========== Players Grid & Suit Bets ========== */
.teenPattiTable {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--color-bg-primary);
  padding: 16px;
  width: 100%;
}

.playersGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--color-bg-alt);
  margin-bottom: 16px;
  width: 100%;
}

.playerSection {
  background: var(--color-bg-primary);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.suitsRow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.suitBet,
.oddEven {
  background: var(--bg-back);
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  width: 100%;
}

.suitBlack {
  color: #000;
  font-size: 1.25rem;
}

.suitRed {
  color: #ef4444;
  font-size: 1.25rem;
}

.odds {
  font-weight: 500;
}

/* ========== Cards Section ========== */
.cardsRow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  width: 100%;
}

.card {

  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
}

.cardContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

.cardSuits {
  display: flex;
  gap: 2px;
  font-size: 0.75rem;
}

.cardSuits .black {
  color: #000;
}

.cardSuits .red {
  color: #ef4444;
}

/* ========== Tablet ========== */
@media (max-width: 768px) {
  .table {
    width: 100%;
  }

  .playerName {
    width: 12rem;
  }

  .backHeader,
  .layHeader,
  .backCell,
  .layCell,
  .lockedCell,
  .mainCell {
    width: 4rem;
    padding: 6px 0;
    font-size: 14px;
    padding-left: 0.3rem;
  }

  .cardsRow {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }

  .suitBet,
  .oddEven {
    padding: 10px;
    font-size: 0.875rem;
  }
}

/* ========== Mobile ========== */
@media (max-width: 480px) {
  .playerName {
    width: 60%;
  }

  .table {
    width: 100%;
  }

  .backHeader,
  .layHeader,
  .backCell,
  .layCell,
  .lockedCell,
  .mainCell {
    width: 20%;
    padding: 2px 0;
    font-size: 12px;
  }

  .section2 {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    /* padding: 6px; */
  }

  .lockedCell {
    width: 60px;
    height: 40px;
    padding: 4px;
  }

  .fancyWrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cardsRow {
    grid-template-columns: repeat(4, 1fr);
  }

  .suitBet,
  .oddEven {
    padding: 8px;
    font-size: 0.75rem;
  }

  /* ✅ Fix: Show only 2 bets per row for Player A */
  .playersGrid .playerSection:first-child .suitsRow {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Casino Table Structure */
.casinoTable {
  background-color: var(--color-bg-alt);
  color: var(--color-text-main);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 5px;
  width: 100%;
}

.casinoTableLeftBox {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 0;
  padding-top: 10px;
  width: 100%;
  border-left: 1px solid var(--table-border, #d7d7d7);
  border-right: 1px solid var(--table-border, #d7d7d7);
  border-top: 1px solid var(--table-border, #d7d7d7);
  background-color: var(--color-bg-row);
}

@media (max-width: 768px) {
  .casinoTableLeftBox {
    width: calc(50% - 2px);
  }
}

/* Casino Table Full Box - for suits and odd/even */
.casinoTableFullBox {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 4px;
  border: 0;
  width: 100%;
}

.mt3 {
  margin-top: 1rem !important;
}

.casinoTableFullBox .casinoOddsBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  font-weight: bold;
  border-left: 1px solid var(--table-border, #d7d7d7);
  cursor: pointer;
  min-height: 46px;
  flex: 1 1 calc(16.66% - 4px);
  min-width: calc(16.66% - 4px);
  max-width: calc(16.66% - 4px);
  position: relative;
  margin: 2px;
}

/* Mobile view - 2 columns */
@media (max-width: 768px) {
  .casinoTableFullBox .casinoOddsBox {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
    max-width: calc(50% - 4px);
  }
}

.casinoOddsBox {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 0;
  font-weight: bold;
  border-left: 1px solid var(--table-border, #d7d7d7);
  cursor: pointer;
  min-height: 46px;
  width: 49%;
  position: relative;
  margin-bottom: 5px;
}

.casinoOdds {
  display: block;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}

/* Back (Blue) Background */
.back {
  background-color: var(--bg-back) !important;
}

/* Suspended Box (Locked) */
.suspendedBox {
  position: relative;
  pointer-events: none;
  cursor: not-allowed;
  background-color: var(--color-overlay-lock) !important;
}

.suspendedBox::before {
  content: "";
  background-image: url(../../../assets/img/lock.svg);
  background-size: 17px 17px;
  filter: invert(1);
  -webkit-filter: invert(1);
  background-repeat: no-repeat;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  pointer-events: none;
}

.suspendedBox::after {
  content: "";
  background-color: #373636d6;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  cursor: not-allowed;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 0;
}

.suspendedBox .casinoOdds {
  position: relative;
  z-index: 0;
  opacity: 0.6;
}

.teenpatti20OtherOdds {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-top: 5px;
}

.teenpatti20OtherOdds .casinoTableLeftBox {
  width: calc(50% - 2px);
}

.casinoBoxContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  margin-top: 5px;
}

/* Exposure styling */
.exposure {
  font-size: 10px;
  font-weight: bold;
  margin-top: 2px;
  line-height: 1;
}