.betTable {
  display: flex;
  flex-direction: column;
  width: 100%;

  margin: 0 auto;
  font-family: "Roboto", sans-serif;
  background-color: #f7f7f7;
}

.section {
  margin-bottom: 2px;
}

.header {
  background-color: #2c3e50;
  color: white;
  padding: 6px 10px;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
}

.subHeader {
  background-color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  color: #333;
  border-bottom: 1px solid #d7d7d7;
}

.optionWrapper {
  background-color: #fff;
  border-bottom: 1px solid #d7d7d7;
}

.optionRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
}

.label {
  flex: 1;
  color: #333;
}

.betOptions {
  display: flex;
  gap: 2px;
}

.betBox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;

  min-width: 60px;
  height: 40px;
  font-weight: bold;
  cursor: pointer;
}

.back {
  background-color: #72bbef;
  color: black;
}

.lay {
  background-color: #fAA9BA;
  color: black;
}

.no {
  background-color: #ff4040;
  color: black;
}

.yes {
  background-color: #72bbef;
  color: black;
}

.suspended {
  background-color: #333;
  color: white;
  position: relative;
}

.suspendedText {
  font-size: 10px;
  font-weight: bold;
  color: #ff4040;
  transform: rotate(-45deg);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.odds {
  font-size: 14px;
}

.volume {
  font-size: 10px;
  color: black;
  opacity: 0.8;
}

.betLimits {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 10px;
  color: #097c93;
  line-height: 1.2;
  font-weight: bold;
}

.fancy1Wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background-color: #fff;
}

.fancy1Wrapper .optionRow {
  background-color: #f7f7f7;
}

@media (max-width: 768px) {
  .header {
    font-size: 12px;
    padding: 5px 8px;
  }

  .subHeader {
    font-size: 10px;
    padding: 3px 8px;
  }

  .optionRow {
    font-size: 12px;
    padding: 5px 8px;
  }

  .betBox {
    padding: 5px 10px;
    min-width: 50px;
    height: 35px;
  }

  .odds {
    font-size: 12px;
  }

  .volume {
    font-size: 9px;
  }

  .betLimits {
    font-size: 9px;
  }

  .fancy1Wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header {
    font-size: 10px;
    padding: 4px 6px;
  }

  .subHeader {
    font-size: 9px;
    padding: 2px 6px;
  }

  .optionRow {
    font-size: 10px;
    padding: 4px 6px;
  }

  .betBox {
    padding: 4px 8px;
    min-width: 45px;
    height: 30px;
  }

  .odds {
    font-size: 10px;
  }

  .volume {
    font-size: 8px;
  }

  .betLimits {
    font-size: 8px;
  }
}

.tableHeader {
  display: flex;
  justify-content: space-between;

  border-bottom: 1px solid #ccc;
  font-size: 12px;
  font-weight: bold;
}

.headerLabel {
  flex: 1;
}

.headerOptions {
  display: flex;
  gap: 2px;
  width: 122px;
  /* Match betOptions width */
  justify-content: center;
}

.headerCell {
  width: 60px;
  text-align: center;
  padding: 4px 0;
  color: black;
}

.backHeader {
  background-color: #72bbef;
}

.layHeader {
  background-color: #fAA9BA;
}

.noHeader {
  background-color: #fAA9BA;
  /* Pink for No */
}

.yesHeader {
  background-color: #72bbef;
  /* Blue for Yes */
}

.headerLimits {
  width: 80px;
  /* Approximate width for limits */
}

.betOptionsWrapper {
  width: 122px;
  display: flex;
  justify-content: center;
}

.betOptions {
  display: flex;
  gap: 2px;
}

.suspendedBox {
  width: 100%;
  background-color: #333;
  color: #ff4040;
  font-weight: bold;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fancy1HeaderRow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background-color: #fff;
}

.fancy1Wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background-color: #fff;
}

@media (max-width: 768px) {

  .headerOptions,
  .betOptionsWrapper {
    width: 102px;
  }

  .headerCell {
    width: 50px;
  }

  .fancy1HeaderRow,
  .fancy1Wrapper {
    grid-template-columns: 1fr;
  }

  .fancy1HeaderRow>div:nth-child(2) {
    display: none;
  }

  .headerLimits {
    display: none;
    /* Hide limits header space on mobile if needed */
  }

  .betLimits {
    display: none;
    /* Hide per-row limits on mobile */
  }
}

@media (max-width: 480px) {

  .headerOptions,
  .betOptionsWrapper {
    width: 92px;
  }

  .headerCell {
    width: 45px;
  }
}