.messagesContainer {
  width: 100%;
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif;
}

.bettingPnl {
  margin-top: 10px;
  padding: 0 10px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pageTitle {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

.pL15 {
  padding-left: 15px !important;
}

.mT10 {
  margin-top: 10px;
}

.textRight {
  text-align: right;
}

.textCenter {
  text-align: center;
}

/* Date Picker Styles */
.mxDatepicker {
  position: relative;
  display: inline-block;
  width: 100%;
  color: #73879c;
  font: 14px / 1.5 'Helvetica Neue', Helvetica, Arial, 'Microsoft Yahei', sans-serif;
}

.mxDatepicker * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

.mxInputWrapper {
  position: relative;
  width: 90%;
}

.mxClearWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  right: 35px;
  z-index: 1;
  width: 25px;
}

.mxClearIcon {
  font-size: 14px;
  color: #666;
  cursor: pointer;
  display: block;
}

.mxClearIcon:hover {
  color: #000;
}

.mxInput {
  display: inline-block;
  width: 100%;
  height: 19px !important;
  padding: 10px 35px 6px 8px;
  font-size: 12px !important;
  line-height: 1.4;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  font-family: "Lato", Avenir, Verdana, Nunito, sans-serif;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Hide default date picker icons */
.mxInput[type="date"]::-webkit-calendar-picker-indicator,
.mxInput[type="date"]::-webkit-inner-spin-button,
.mxInput[type="date"]::-webkit-clear-button {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
}

/* Firefox - Hide default date picker icon */
.mxInput[type="date"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.mxInput[type="date"]::-moz-calendar-picker-indicator {
  display: none;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 0;
  height: 0;
}

.mxInput:focus {
  outline: 0;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  background-color: #fff;
}

.mxInputAppend {
  position: absolute;
  top: 8px;
  right: -12px;
  width: 20px;
  height: 0%;
  /* min-height: 29px; */
  padding: 4px;
  pointer-events: auto;
  cursor: pointer;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-sizing: border-box;
  background-color: transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.mxCalendarIcon {
  width: 20px;
  height: 20px;
  color: #555;
  stroke-width: 1.5px;
  stroke: currentColor;
  fill: none;
  display: block;
  cursor: pointer;
  pointer-events: auto;
  flex-shrink: 0;
}

.mxCalendarIcon rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5px;
}

.mxCalendarIcon line {
  stroke: currentColor;
  stroke-width: 1.5px;
  stroke-linecap: round;
}

.mxCalendarIcon:hover {
  opacity: 0.7;
}

/* Button Styles */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
}

.btnBlock {
  display: block;
  width: 100%;
}

.btnPrimary {
  background-color: #183f45;
  color: #ffffff;
  border-color: #183f45;
}

.btnPrimary:hover {
  background-color: #0f2a2f;
  border-color: #0f2a2f;
  color: #ffffff;
}

.btnPrimary:focus {
  box-shadow: 0 0 0 0.2rem rgba(24, 63, 69, 0.5);
}

.mR5 {
  margin-right: 5px;
}

/* Table Styles - Scoped to Messages component only */
.tableResponsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.messagesTable {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  border-collapse: collapse;
  font-size: 12px !important;
  border: none;
}

.messagesTable thead th,
.tableHeader {
  vertical-align: bottom;
  border-bottom: 2px solid #dee2e6;
  border-top: none;
  border-left: none;
  border-right: none;
  padding: 0.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  border:2px solid #dee2e6;
}

.messagesTable tbody td,
.tableCell {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid #dee2e6;
  border-left: none;
  border-right: none;
  border-bottom: none;
  font-size: 12px;
  border:2px solid #dee2e6;
}

.messagesTable tbody tr:first-child td {
  border-top: 1px solid #dee2e6;
}

/* Form Styles */
form {
  padding: 0;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #495057;
  font-size: 14px;
}

/* Row and Column Styles */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding-right: 15px;
  padding-left: 15px;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 8px;
    padding-left: 8px;
    margin-bottom: 10px;
  }
  
  .mxDatepicker {
    width: 100%;
  }
  
  .mxInput {
    padding: 6px 30px 6px 6px;
    font-size: 16px !important; /* Prevent zoom on iOS */
    height: 32px !important;
  }
  
  .mxInputAppend {
    width: 28px;
    padding: 3px;
    min-height: 32px;
  }
  
  .mxCalendarIcon {
    width: 18px;
    height: 18px;
  }
  
  form label {
    font-size: 12px;
    margin-bottom: 0.3rem;
  }
  
  .row {
    margin-right: -8px;
    margin-left: -8px;
  }
  
  .col-12 {
    padding-right: 8px;
    padding-left: 8px;
  }
}

@media (max-width: 480px) {
  .col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    /* padding-right: 5px; */
    padding-left: 5px;
  }
  
  .mxInput {
    padding: 12px 8px 0px 5px;
    font-size: 13px !important; /* Prevent zoom on iOS */
    height: 32px !important;
  }
  
  .mxInputAppend {
    width: 26px;
    padding: 2px;
    min-height: 32px;
  }
  
  .mxCalendarIcon {
    width: 16px;
    height: 16px;
  }
  
  .row {
    margin-right: -5px;
    margin-left: -5px;
  }
  
  .col-12 {
    padding-right: 5px;
    padding-left: 5px;
  }
}

/* iPhone and iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .mxInput {
    font-size: 16px !important; /* Prevent zoom on iOS Safari/Chrome */
    appearance: none;
    -webkit-appearance: none;
    border-radius: 4px;
  }
  
  .mxInput:focus {
    font-size: 16px !important;
  }
  
  .mxInputWrapper {
    -webkit-tap-highlight-color: transparent;
  }
  
  .mxInputAppend {
    -webkit-tap-highlight-color: transparent;
    min-height: 32px;
  }
  
  .mxCalendarIcon {
    -webkit-tap-highlight-color: transparent;
  }
}

/* iPhone Chrome specific */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
  .mxInput {
    font-size: 12px !important;
    appearance: none;
    -webkit-appearance: none;
  }
  
  .mxInput:focus {
    font-size: 12px !important;
  }
}

