.container {
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif;
  background: #cceeff;
  border: 1px solid #ccc;
  width: 100%;
}

.containerBack {
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif;
  border: 1px solid #ccc;
  width: 100%;
  width: 100%;
  background: var(--bg-back) !important;
}

.containerLay {
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif;
  border: 1px solid #ccc;
  width: 100%;
  width: 100%;
  background: var(--bg-lay) !important;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.containerBack .header {
  background-color: var(--color-secondary);
  color: var(--color-text-on-secondary);
}

.containerLay .header {
  background-color: var(--color-secondary);
  color: var(--color-text-on-secondary);
}

.title {
  font-weight: bold;
}

.closeButton {
  background: none;
  border: none;
  color: var(--color-black);
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.columnHeaders {
  display: flex;
  padding: 4px 12px;
  background: #b4b4b4;
  font-weight: bold;
  font-size: 13px;
  color: #000;
  border-bottom: 1px solid #ccc;
}

.betForHeader {
  flex: 2;
}

.oddsHeader {
  flex: 1;
  text-align: center;
}

.stakeHeader {
  flex: 1;
  text-align: center;
}

.profitHeader {
  flex: 1;
  text-align: right;
}

.bettingRow {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  gap: 8px;
}

.betFor {
  flex: 2;
  font-weight: bold;
  font-size: 14px;
  color: #000;
}

.oddsContainer {
  flex: 1;
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid #ccc;
  border-radius: 2px;
}

.oddsButton {
  background: var(--color-secondary);
  color: var(--color-text-on-secondary);
  border: none;
  width: 24px;
  height: 28px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oddsInput {
  width: 100%;
  border: none;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  outline: none;
  height: 28px;
}

.stakeContainer {
  flex: 1;
}

.stakeInput {
  width: 100%;
  height: 28px;
  border: 1px solid #ccc;
  padding: 0 4px;
  font-size: 14px;
  outline: none;
  border-radius: 2px;
}

.notconvert {
  display: none;
}

.profit {
  flex: 1;
  text-align: right;
  font-weight: bold;
  font-size: 14px;
}

.quickAmounts {
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.clearAction {
  display: none;
}

.quickAmountRow {
  display: flex;
  gap: 4px;
}

.quickAmountButton {
  flex: 1;
  background: #ccc;
  border: 1px solid #bbb;
  padding: 6px 0;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  color: #000;
  transition: background 0.2s;
}

.quickAmountButton:hover {
  background: #bbb;
}

.clearButtonContainer {
  display: flex;
  justify-content: flex-end;
  padding: 4px 12px 0;
}

.actionButtons {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}

.leftActionButtons {
  flex: 1;
}

.rightActionButtons {
  display: flex;
  gap: 8px;
}

.clearButton {
  background: none;
  border: none;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}


.editButton {
  background: var(--bg-info);
  color: var(--color-text-inverse);
  border: none;
  padding: 8px 0;
  font-weight: bold;
  cursor: pointer;
  width: 40%;
  font-size: 14px;
}

.resetButton {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 8px 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

.submitButton {
  background: var(--bg-success);
  color: var(--color-text-inverse);
  border: none;
  padding: 8px 20px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

.submitButton:disabled {
  background: #7cae80;
  cursor: not-allowed;
}

.profit_loss {
  background: #e3f2fd;
  padding: 8px 12px;
  font-size: 13px;
  border-top: 1px solid #ccc;
}

.profitGreen {
  color: green;
  font-weight: bold;
}

.lossRed {
  color: red;
  font-weight: bold;
}

.validationErrors {
  background: #fff3cd;
  color: #856404;
  padding: 8px 12px;
  font-size: 13px;
  border-top: 1px solid #ffeeba;
}

/* ============================
   MOBILE LAYOUT (like screenshot)
   ============================ */
@media (max-width: 768px) {

  .container,
  .containerBack,
  .containerLay {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: none;
    background: #66a9e9;
    /* outer blue */
  }

  .containerBack .header {
    background-color: #1c87ce;
  }

  .actionButtons {
    display: none;
  }


  .header {
    padding: 10px 9px;
    font-size: 16px;
  }


  .columnHeaders {
    display: none;
    /* hide desktop table headers */
  }

  .bettingRow {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    margin: 10px 12px 6px;
    padding: 10px;
    border-radius: 4px;
    background: #72bbef;
    /* light inner card */
    display: none;
  }

  .betFor {
    flex: unset;
    font-size: 13px;

  }

  .notconvert {
    display: block;
  }

  .clearButtonContainer {
    display: none;

  }

  /* Add labels above odds / stake like "Odds" and "Amount" */
  .oddsContainer,
  .stakeContainer {
    position: relative;
  }

  .oddsContainer::before,
  .stakeContainer::before {
    position: absolute;
    top: -16px;
    left: 0;
    font-size: 12px;
    font-weight: bold;
    color: #000;
  }

  .oddsContainer::before {
    content: "Odds";
  }

  .stakeContainer::before {
    content: "Amount";
  }

  .oddsContainer {
    background: #ffffff;
    border-radius: 2px;
  }

  .stakeInput {
    background: #ffffff;
  }

  .profit {
    text-align: right;
    margin-top: 4px;
    font-size: 14px;
  }

  .quickAmounts {
    padding: 4px 12px 0;
    gap: 3px;
  }

  .quickAmountRow {
    gap: 3px;
  }

  .quickAmountButton {
    padding: 5px 0;
    font-size: 14px;
    background: #374a62;
    /* dark blue blocks */
    border: none;
    color: #fff;
    border-radius: 0;
  }

  .quickAmountButton:hover {
    background: #2b3a4b;
  }

  .clearButtonContainer {
    justify-content: flex-start;
    padding: 6px 12px 0;
  }

  .clearButton {
    font-size: 14px;
  }

  .actionButtons {
    padding: 8px 12px 10px;
    align-items: stretch;
  }

  .leftActionButtons {
    flex: 1;
    display: flex;
  }

  .rightActionButtons {
    flex: 2;
    display: flex;
    gap: 0;
  }


  .editButton,
  .resetButton,
  .submitButton {
    flex: 1;
    border-radius: 0;
    padding: 10px 0;
    font-size: 14px;
  }

  .resetButton {
    margin: 0 2px;
  }

  .profit_loss {
    margin: 0 12px 10px;
    border-radius: 0;
    background: #cfe4fb;
    border: 1px solid #b6cbe2;
    border-top: none;
    font-size: 14px;
  }

  .profit_loss>div {
    display: flex;
    justify-content: space-between;
    padding: 2px 0;
  }

  .validationErrors {
    margin: 0 12px 10px;
    border-radius: 0;
  }
}

.actionBar {

  display: none;
}

/* "Clear" as text link on the left */
.clearButton {
  background: none;
  border: none;
  color: #0d47a1;
  text-decoration: underline;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
  min-width: 50px;
}

.clearButton:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Right side buttons container */
.actionBarButtons {
  display: flex;
  flex: 1;
  gap: 1px;
}

/* Make all three buttons share space nicely */
.editButton,
.resetButton,
.submitButton {
  flex: 1;
  border: none;
  padding: 8px 24px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

/* Individual colors (you already had these, keep or tweak) */
.editButton {
  background: #097c93;
  color: #ffffff;
}

.resetButton {
  background: #d32f2f;
  color: #ffffff;
}

.submitButton {
  background: #388e3c;
  color: #ffffff;
}

.submitButton:disabled {
  background: #7cae80;
  cursor: not-allowed;
}

/* Optional: nicer layout on mobile */
@media (max-width: 768px) {
  .actionBar {
    flex-direction: row;
    align-items: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 12px;
    gap: 32px;
  }


  .clearButton {
    align-self: center;
  }

  .actionBarButtons {
    flex: 1;
  }

  .editButton,
  .resetButton,
  .submitButton {
    padding: 8px 0;
    font-size: 14px;
  }
}